Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Use CMake macro for behavior test configuration (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyackzan authored Oct 8, 2024
1 parent 6bd5ca5 commit 18d42ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ install(
install(DIRECTORY config DESTINATION share/${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
add_subdirectory(test)
target_compile_options(call_my_service PRIVATE -fprofile-arcs -ftest-coverage)
target_link_options(call_my_service PRIVATE -fprofile-arcs -ftest-coverage)
moveit_pro_behavior_test(call_my_service)
endif()

# Export the behavior plugins defined in this package so they are available to
Expand Down
6 changes: 1 addition & 5 deletions src/example_behaviors/translate_pose_solution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ install(
install(DIRECTORY config DESTINATION share/${PROJECT_NAME})

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
add_subdirectory(test)
target_compile_options(translate_pose PRIVATE -fprofile-arcs -ftest-coverage)
target_link_options(translate_pose PRIVATE -fprofile-arcs -ftest-coverage)
moveit_pro_behavior_test(translate_pose)
endif()

# Export the behavior plugins defined in this package so they are available to
Expand Down
2 changes: 1 addition & 1 deletion src/external_dependencies/picknik_registration
5 changes: 1 addition & 4 deletions src/picknik_ur_site_config/behaviors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ ament_target_dependencies(trigger_pstop_reset_service
${THIS_PACKAGE_INCLUDE_DEPENDS})

if(BUILD_TESTING)
add_subdirectory(test)
# Add coverage flags behavior
target_compile_options(trigger_pstop_reset_service PRIVATE -fprofile-arcs -ftest-coverage)
target_link_options(trigger_pstop_reset_service PRIVATE -fprofile-arcs -ftest-coverage)
moveit_pro_behavior_test(trigger_pstop_reset_service)
endif()

# Install Libraries
Expand Down

0 comments on commit 18d42ce

Please sign in to comment.