Skip to content

Test parameter behavior for rclpy nodes#293

Merged
nuclearsandwich merged 2 commits intomasterfrom
test-cli/test-rclpy-nodes
Aug 29, 2018
Merged

Test parameter behavior for rclpy nodes#293
nuclearsandwich merged 2 commits intomasterfrom
test-cli/test-rclpy-nodes

Conversation

@nuclearsandwich
Copy link
Copy Markdown
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
Copy Markdown
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.


# Execute python files using same python used to start this test
if command[0][-3:] == '.py':
self._command = list(self._command)
Copy link
Copy Markdown
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
Copy Markdown
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.

PYTHON_EXECUTABLE "${_PYTHON_EXECUTABLE}"
ENV
INITIAL_PARAMS_RCLCPP=$<TARGET_FILE:initial_params_rclcpp>
INITIAL_PARAMS_RCLPY=test/initial_params.py
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@nuclearsandwich
Copy link
Copy Markdown
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.

2 participants