Skip to content

Commit aae375b

Browse files
ahcordeYadunund
andauthored
Set envars to run tests with rmw_zenoh_cpp with multicast discovery (#2776)
Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Yadunund <[email protected]>
1 parent 1564fc2 commit aae375b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rclcpp/test/rclcpp/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,14 @@ endif()
674674
function(test_on_all_rmws)
675675
set(rmw_implementation_env_var RMW_IMPLEMENTATION=${rmw_implementation})
676676

677+
# If the rmw_implementation is rmw_zenoh_cpp, run the tests with multicast discovery enabled.
678+
# Note: This is a temporary change that will be reverted before we branch into Kilted.
679+
if(rmw_implementation STREQUAL "rmw_zenoh_cpp")
680+
list(APPEND rmw_implementation_env_var
681+
ZENOH_CONFIG_OVERRIDE=scouting/multicast/enabled=true
682+
)
683+
endif()
684+
677685
ament_add_gmock_test(test_qos_event
678686
TEST_NAME test_qos_event${target_suffix}
679687
ENV ${rmw_implementation_env_var}

0 commit comments

Comments
 (0)