Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/ros2_medkit_gateway/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ if(BUILD_TESTING)

# Add GTest
find_package(ament_cmake_gtest REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(example_interfaces REQUIRED)

ament_add_gtest(test_gateway_node test/test_gateway_node.cpp)
target_link_libraries(test_gateway_node gateway_lib)
Expand Down Expand Up @@ -461,6 +463,12 @@ if(BUILD_TESTING)
ament_add_gtest(test_health_handlers test/test_health_handlers.cpp)
target_link_libraries(test_health_handlers gateway_lib)

# Add operation handler tests
ament_add_gtest(test_operation_handlers test/test_operation_handlers.cpp)
target_link_libraries(test_operation_handlers gateway_lib)
medkit_target_dependencies(test_operation_handlers rclcpp rclcpp_action std_srvs example_interfaces)
set_tests_properties(test_operation_handlers PROPERTIES ENVIRONMENT "ROS_DOMAIN_ID=72")

# Demo update backend plugin (.so for integration tests)
add_library(test_update_backend MODULE
test/demo_nodes/test_update_backend.cpp
Expand Down Expand Up @@ -589,6 +597,7 @@ if(BUILD_TESTING)
test_data_handlers
test_auth_handlers
test_health_handlers
test_operation_handlers
test_plugin_loader
test_plugin_manager
test_log_manager
Expand Down
2 changes: 2 additions & 0 deletions src/ros2_medkit_gateway/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<test_depend>ament_cmake_clang_format</test_depend>
<test_depend>ament_cmake_clang_tidy</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>example_interfaces</test_depend>
<test_depend>rclcpp_action</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
Loading
Loading