Skip to content

Commit 10fbde8

Browse files
authored
Add coverage for wait_set_policies (#1316)
* Add mocking utils for rclcpp Signed-off-by: Stephen Brawner <[email protected]> * Add coverage for wait_set_policies Signed-off-by: Stephen Brawner <[email protected]> * Address PR feedback Signed-off-by: Stephen Brawner <[email protected]> * Fix windows issues Signed-off-by: Stephen Brawner <[email protected]> * Add test comment Signed-off-by: Stephen Brawner <[email protected]>
1 parent 14c53e1 commit 10fbde8

File tree

8 files changed

+1560
-0
lines changed

8 files changed

+1560
-0
lines changed

rclcpp/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<test_depend>ament_cmake_gtest</test_depend>
3636
<test_depend>ament_lint_auto</test_depend>
3737
<test_depend>ament_lint_common</test_depend>
38+
<test_depend>mimick_vendor</test_depend>
3839
<test_depend>rmw</test_depend>
3940
<test_depend>rmw_implementation_cmake</test_depend>
4041
<test_depend>rosidl_default_generators</test_depend>

rclcpp/test/CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,30 @@ if(TARGET test_subscription_options)
573573
target_link_libraries(test_subscription_options ${PROJECT_NAME})
574574
endif()
575575

576+
ament_add_gtest(test_dynamic_storage rclcpp/wait_set_policies/test_dynamic_storage.cpp)
577+
if(TARGET test_dynamic_storage)
578+
ament_target_dependencies(test_dynamic_storage "rcl" "test_msgs")
579+
target_link_libraries(test_dynamic_storage ${PROJECT_NAME})
580+
endif()
581+
582+
ament_add_gtest(test_storage_policy_common rclcpp/wait_set_policies/test_storage_policy_common.cpp)
583+
if(TARGET test_storage_policy_common)
584+
ament_target_dependencies(test_storage_policy_common "rcl" "test_msgs")
585+
target_link_libraries(test_storage_policy_common ${PROJECT_NAME} mimick)
586+
endif()
587+
588+
ament_add_gtest(test_static_storage rclcpp/wait_set_policies/test_static_storage.cpp)
589+
if(TARGET test_static_storage)
590+
ament_target_dependencies(test_static_storage "rcl" "test_msgs")
591+
target_link_libraries(test_static_storage ${PROJECT_NAME})
592+
endif()
593+
594+
ament_add_gtest(test_thread_safe_synchronization rclcpp/wait_set_policies/test_thread_safe_synchronization.cpp)
595+
if(TARGET test_thread_safe_synchronization)
596+
ament_target_dependencies(test_thread_safe_synchronization "rcl" "test_msgs")
597+
target_link_libraries(test_thread_safe_synchronization ${PROJECT_NAME})
598+
endif()
599+
576600
ament_add_gtest(test_rclcpp_gtest_macros utils/test_rclcpp_gtest_macros.cpp)
577601
if(TARGET test_rclcpp_gtest_macros)
578602
target_link_libraries(test_rclcpp_gtest_macros ${PROJECT_NAME})

0 commit comments

Comments
 (0)