Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test parameter behavior for rclpy nodes #293

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

nuclearsandwich
Copy link
Member

Adds an rclpy node to the test fixtures so that our tests cover both client libraries.

For these tests to succeed they must be run along with ros2/rclpy#225

Connects to ros2/rclpy#202

@nuclearsandwich nuclearsandwich added the in review Waiting for review (Kanban column) label Aug 29, 2018
@nuclearsandwich nuclearsandwich self-assigned this Aug 29, 2018
@dirk-thomas dirk-thomas mentioned this pull request Aug 29, 2018
6 tasks
@nuclearsandwich
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

First round of CI. There's a supplemental repos file that includes the necessary rclpy branch.

@@ -40,6 +40,7 @@ def __init__(self, command):

# Execute python files using same python used to start this test
if command[0][-3:] == '.py':
self._command = list(self._command)
Copy link
Member Author

@nuclearsandwich nuclearsandwich Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed because the tuples that get passed as commands are immutable.

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI failures look like they are due to missing commits from master branch on rclpy. LGTM assuming next CI is green.

@@ -37,6 +37,7 @@ if(BUILD_TESTING)
PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
ENV
INITIAL_PARAMS_RCLCPP=$<TARGET_FILE:initial_params_rclcpp>
INITIAL_PARAMS_RCLPY=test/initial_params.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what I would have expected the working directory to be when the test is run. If this passes I guess that means it is the top level source directory containing CMakeLists.txt.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll see how it fares in CI. At the very least it #worksonmymachine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I think it's also reasonable to set the source directory either via CMAKE_CURRENT_LIST_DIR or some other preferred variable for source paths.

@nuclearsandwich
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@nuclearsandwich
Copy link
Member Author

Testing again using CMAKE_CURRENT_LIST_DIR to get the absolute source directory path rather than leaving it to the chance of the current directory.

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@nuclearsandwich nuclearsandwich merged commit 33ef7fe into master Aug 29, 2018
@nuclearsandwich nuclearsandwich deleted the test-cli/test-rclpy-nodes branch August 29, 2018 19:31
@nuclearsandwich nuclearsandwich removed the in review Waiting for review (Kanban column) label Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants