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

add_rostest ARGS only takes the first argument #790

Closed
efernandez opened this issue Apr 12, 2016 · 2 comments
Closed

add_rostest ARGS only takes the first argument #790

efernandez opened this issue Apr 12, 2016 · 2 comments
Labels

Comments

@efernandez
Copy link
Contributor

add_rostest(test/testlaunchfile.test argument1:=vaule1 argument2:=value2)

when used in https://github.com/ros/ros_comm/blob/kinetic-devel/tools/rostest/cmake/rostest-extras.cmake.em#L55

generates

-- run_tests.py: execute commands
  /opt/ros/indigo/share/rostest/cmake/../../../bin/rostest --pkgdir=/home/efernandez/ws/src/package_name --package=package_name --results-filename test_package_name__argument1_value1.xml --results-base-dir /home/efernandez/ws/build/package_name/test_results /home/efernandez/ws/src/package_name/test/testlaunchfile.test argument1:=value1
  argument2:=value2

Note that after the first argument, there's a new line. Maybe that's the problem.

@efernandez
Copy link
Contributor Author

It seems that cmake_parse_arguments is used properly, to take multiple arguments. So maybe the problem is when they're used to run the rostest command.

https://github.com/ros/ros_comm/blob/kinetic-devel/tools/rostest/cmake/rostest-extras.cmake.em#L18

https://cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html

According to that link, _rostest_ARGS should have "argument1:=vaule1;argument2:=value2" for my example. Probably there's an issue with the ;, which should be replaced with ?!

@dirk-thomas Any idea?

FYI @mikepurvis

@dirk-thomas
Copy link
Member

Please see #791 for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants