-
Notifications
You must be signed in to change notification settings - Fork 166
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
Parse CLI parameters and YAML files #508
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,13 +43,16 @@ set(rcl_add_custom_gtest_INCLUDED TRUE) | |
# :type LIBRARIES: list of strings | ||
# :param AMENT_DEPENDENCIES: list of depends to pass ament_target_dependencies | ||
# :type AMENT_DEPENDENCIES: list of strings | ||
# | ||
# :param WORKING_DIRECTORY: the working directory for invoking the | ||
# executable in, default defined by ``ament_add_test()`` | ||
# :type WORKING_DIRECTORY: string | ||
|
||
# @public | ||
# | ||
macro(rcl_add_custom_gtest target) | ||
cmake_parse_arguments(_ARG | ||
"SKIP_TEST;TRACE" | ||
"TIMEOUT" | ||
"TIMEOUT;WORKING_DIRECTORY" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't look like this new parameter is being used anywhere. Do we really need this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A leftover from a previous attempt. I rolled back all the changes to this file in c1f4c3c |
||
"SRCS;ENV;APPEND_ENV;APPEND_LIBRARY_DIRS;INCLUDE_DIRS;LIBRARIES;AMENT_DEPENDENCIES" | ||
${ARGN}) | ||
if(_ARG_UNPARSED_ARGUMENTS) | ||
|
@@ -72,10 +75,13 @@ macro(rcl_add_custom_gtest target) | |
if(_ARG_TIMEOUT) | ||
set(_ARG_TIMEOUT "TIMEOUT" ${_ARG_TIMEOUT}) | ||
endif() | ||
if(_ARG_WORKING_DIRECTORY) | ||
set(_ARG_WORKING_DIRECTORY "WORKING_DIRECTORY" ${_ARG_WORKING_DIRECTORY}) | ||
endif() | ||
|
||
# Pass args along to ament_add_gtest(). | ||
ament_add_gtest(${target} ${_ARG_SRCS} ${_ARG_ENV} ${_ARG_APPEND_ENV} ${_ARG_APPEND_LIBRARY_DIRS} | ||
${_ARG_SKIP_TEST} ${_ARG_TIMEOUT}) | ||
${_ARG_SKIP_TEST} ${_ARG_TIMEOUT} ${_ARG_WORKING_DIRECTORY}) | ||
# Check if the target was actually created. | ||
if(TARGET ${target}) | ||
if(_ARG_TRACE) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is still a valid sentence to leave in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch! Re-added it in c1f4c3c