Increase test coverage of rclcpp_lifecycle to 96% (#1298)
* Increase test coverage of rclcpp_lifecycle to 96% Signed-off-by: Stephen Brawner <brawner@gmail.com> * PR Fixup Signed-off-by: Stephen Brawner <brawner@gmail.com> * test_depend Signed-off-by: Stephen Brawner <brawner@gmail.com> * rcutils test_depend Signed-off-by: Stephen Brawner <brawner@gmail.com> * More windows warnings Signed-off-by: Stephen Brawner <brawner@gmail.com>
This commit is contained in:
parent
ed7a23731a
commit
e920175dae
7 changed files with 921 additions and 14 deletions
|
@ -56,16 +56,27 @@ if(BUILD_TESTING)
|
|||
ament_target_dependencies(test_lifecycle_node
|
||||
"rcl_lifecycle"
|
||||
"rclcpp"
|
||||
"rcutils"
|
||||
)
|
||||
target_link_libraries(test_lifecycle_node ${PROJECT_NAME})
|
||||
target_link_libraries(test_lifecycle_node ${PROJECT_NAME} mimick)
|
||||
endif()
|
||||
ament_add_gtest(test_lifecycle_publisher test/test_lifecycle_publisher.cpp)
|
||||
if(TARGET test_lifecycle_publisher)
|
||||
ament_target_dependencies(test_lifecycle_publisher
|
||||
"rcl_lifecycle"
|
||||
"rclcpp"
|
||||
"test_msgs"
|
||||
)
|
||||
target_link_libraries(test_lifecycle_publisher ${PROJECT_NAME})
|
||||
endif()
|
||||
ament_add_gtest(test_lifecycle_service_client test/test_lifecycle_service_client.cpp)
|
||||
if(TARGET test_lifecycle_service_client)
|
||||
ament_target_dependencies(test_lifecycle_service_client
|
||||
"rcl_lifecycle"
|
||||
"rclcpp"
|
||||
"rcutils"
|
||||
)
|
||||
target_link_libraries(test_lifecycle_service_client ${PROJECT_NAME})
|
||||
target_link_libraries(test_lifecycle_service_client ${PROJECT_NAME} mimick)
|
||||
endif()
|
||||
ament_add_gtest(test_state_machine_info test/test_state_machine_info.cpp)
|
||||
if(TARGET test_state_machine_info)
|
||||
|
@ -104,8 +115,12 @@ if(BUILD_TESTING)
|
|||
ament_target_dependencies(test_transition_wrapper
|
||||
"rcl_lifecycle"
|
||||
"rclcpp"
|
||||
"rcutils"
|
||||
)
|
||||
target_link_libraries(test_transition_wrapper ${PROJECT_NAME} mimick)
|
||||
target_compile_definitions(test_transition_wrapper
|
||||
PUBLIC RCUTILS_ENABLE_FAULT_INJECTION
|
||||
)
|
||||
target_link_libraries(test_transition_wrapper ${PROJECT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue