-
Notifications
You must be signed in to change notification settings - Fork 131
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
Run tests in current binary directory, not global source directory #206
Conversation
Those CI failures aren't as bad as I figured. Want me to go ahead with |
Yes, because that is what matches CMake standard behavior. |
Switch to CMAKE_CURRENT_BINARY_DIR for consistency with CTest Signed-off-by: Dan Rose <[email protected]>
This removed the dependency on pytest and prevents an anticipated breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
More inline with how other packages do it and avert an anticipated breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
Prevent anticipated breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
Avert breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
I am sorry but I misread the value. I thought the goal was to change it to I don't think changing the value to |
...That's why I asked 👎 This PR can hold off until F. The supporting PRs can be safely merged now anyway. |
How about creating a separate PR to change it to |
Now that I've done the supporting work for |
Wouldn't that be necessary to build Eloquent using your sub project approach? |
I'm happy to use this branch as-is with my Eloquent tree, even if it's not slated for Eloquent release |
More inline with how other packages do it and avert an anticipated breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
Avert breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
Prevent anticipated breakage from ament/ament_cmake#206 Signed-off-by: Dan Rose <[email protected]>
) Switch to CMAKE_CURRENT_BINARY_DIR for consistency with CTest Signed-off-by: Dan Rose <[email protected]>
) Switch to CMAKE_CURRENT_BINARY_DIR for consistency with CTest Signed-off-by: Dan Rose <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]>
…ctory (#206)" This reverts commit 4354d62. Signed-off-by: Steven! Ragnarök <[email protected]>
* Add runner option to ament_add_test (#174) * ament_cmake allow speficiation of a different test runner - By default, still uses run_test.py - Example use case: ament_cmake_ros can use a test runner that sets a ROS_DOMAIN_ID Signed-off-by: Pete Baughman <[email protected]> * ament_cmake move run_test.py to a python module - This should let us see the history Signed-off-by: Pete Baughman <[email protected]> * ament_cmake refactor run_test.py into an importable python module - Adds an ament_cmake_test python package Signed-off-by: Pete Baughman <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * improve handling of encoding (#181) Signed-off-by: Dirk Thomas <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * use deterministic order for updated env vars (#196) Signed-off-by: Dirk Thomas <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * Run tests in current binary directory, not global source directory (#206) Switch to CMAKE_CURRENT_BINARY_DIR for consistency with CTest Signed-off-by: Dan Rose <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * remove status attribute from result XML, add skipped tag instead (#218) Signed-off-by: Dirk Thomas <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * Declare AMENT_TEST_RESULTS_DIR as a PATH (#221) Signed-off-by: Dan Rose <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * Generate xunit files valid for the junit10.xsd Signed-off-by: Jose Luis Rivero <[email protected]> Signed-off-by: Steven! Ragnarök <[email protected]> * Revert "Run tests in current binary directory, not global source directory (#206)" This reverts commit 4354d62. Signed-off-by: Steven! Ragnarök <[email protected]> Co-authored-by: Peter Baughman <[email protected]> Co-authored-by: Dirk Thomas <[email protected]> Co-authored-by: Dan Rose <[email protected]> Co-authored-by: Jose Luis Rivero <[email protected]>
For consistency with CMake
add_test
, run tests in the project binary directory, not the top-level CMakeLists.txt