Skip to content

Test rmw linking of rclcpp examples - #105

Closed
dhood wants to merge 13 commits into
ros2:masterfrom
dhood:test-linking
Closed

dhood wants to merge 13 commits into
ros2:masterfrom
dhood:test-linking

Conversation

@dhood

@dhood dhood commented Apr 14, 2016 •

Copy link
Copy Markdown
Member

Regression test for fda5938. If fda5938 is reverted, the test_output tests pass, but the test_linking tests fail (on windows 10, trusty, and yosemite).

todo:

  • check linking of default executables against default rmw implementation

@wjwwood wjwwood added the in progress Actively being worked on (Kanban column) label Apr 14, 2016
add_two_ints_server
add_two_ints_client
add_two_ints_client_async)

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.

is there anything I can call to access a list of all executables instead of writing them out myself?
I wanted to append names to a list when custom_executable is called, but I'm having issues with scope

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You could reuse the list already in the CMake code as example_output_tests.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Even though custom_executable is a function, you should be able to do list(APPEND ...) on a variable already set outside of the function. The other option is that you can do set(x ${x} PARENT_SCOPE), where x is the variable you want to export up one level (out of a function for example).

@dirk-thomas dirk-thomas Apr 14, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

custom_executable is a function and therefore doesn't (normally) affect the callers scope. What are you trying to achieve?

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.

I was trying to use a list separate to example_output_tests since there might be things you want to check the linking of but not the output.

I wasn't able to do the list(APPEND inside custom_executable even with PARENT_SCOPE because it's called from within call_for_each_rmw_implementation, so things were starting to get messy.

@tfoote

tfoote commented May 3, 2016

Copy link
Copy Markdown
Contributor

We think that #106 is sufficient. We'll close this and reopen it from your fork if necessary.

@tfoote tfoote closed this May 3, 2016
@tfoote tfoote removed the in progress Actively being worked on (Kanban column) label May 3, 2016
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.

4 participants