@@ -85,11 +85,10 @@ if(BUILD_TESTING)
85
85
function (custom_test target with_message_argument )
86
86
set (rmw_implementation_env_var RMW_IMPLEMENTATION=${rmw_implementation} )
87
87
# If the rmw_implementation is rmw_zenoh_cpp, run the tests with multicast discovery enabled.
88
+ # Note: This is a temporary change that will be reverted before we branch into Kilted.
88
89
if (rmw_implementation STREQUAL "rmw_zenoh_cpp" )
89
90
list (APPEND rmw_implementation_env_var
90
- ZENOH_ROUTER_CHECK_ATTEMPTS=-1
91
91
ZENOH_CONFIG_OVERRIDE=scouting/multicast/enabled=true
92
- RUST_LOG=z=error
93
92
)
94
93
endif ()
95
94
if (with_message_argument )
@@ -103,9 +102,8 @@ if(BUILD_TESTING)
103
102
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
104
103
APPEND_LIBRARY_DIRS "${append_library_dirs} "
105
104
ENV
106
- RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
107
- ${rmw_implementation_env_var}
108
- )
105
+ RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
106
+ ${rmw_implementation_env_var} )
109
107
set_tests_properties (
110
108
"${target}${target_suffix} __${TEST_MESSAGE_TYPE} "
111
109
PROPERTIES REQUIRED_FILES "$<TARGET_FILE:${target} >"
@@ -119,9 +117,8 @@ if(BUILD_TESTING)
119
117
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
120
118
APPEND_LIBRARY_DIRS "${append_library_dirs} "
121
119
ENV
122
- RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
123
- ${rmw_implementation_env_var}
124
- )
120
+ RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
121
+ ${rmw_implementation_env_var} )
125
122
set_tests_properties (
126
123
"${target}${target_suffix} "
127
124
PROPERTIES REQUIRED_FILES "$<TARGET_FILE:${target} >"
@@ -143,21 +140,19 @@ if(BUILD_TESTING)
143
140
function (custom_test_c target )
144
141
set (rmw_implementation_env_var RMW_IMPLEMENTATION=${rmw_implementation} )
145
142
# If the rmw_implementation is rmw_zenoh_cpp, run the tests with multicast discovery enabled.
143
+ # Note: This is a temporary change that will be reverted before we branch into Kilted.
146
144
if (rmw_implementation STREQUAL "rmw_zenoh_cpp" )
147
145
list (APPEND rmw_implementation_env_var
148
- ZENOH_ROUTER_CHECK_ATTEMPTS=-1
149
146
ZENOH_CONFIG_OVERRIDE=scouting/multicast/enabled=true
150
- RUST_LOG=z=error
151
147
)
152
148
endif ()
153
-
154
149
ament_add_gtest (
155
150
"${target}${target_suffix} " ${ARGN}
156
151
TIMEOUT 90
157
152
APPEND_LIBRARY_DIRS "${append_library_dirs} "
158
153
ENV
159
- RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
160
- ${rmw_implementation_env_var} )
154
+ RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
155
+ ${rmw_implementation_env_var} )
161
156
if (TARGET ${target}${target_suffix} )
162
157
rosidl_get_typesupport_target (c_typesupport_target "${PROJECT_NAME} " "rosidl_typesupport_c" )
163
158
target_link_libraries (${target}${target_suffix}
@@ -500,18 +495,15 @@ if(BUILD_TESTING)
500
495
endif ()
501
496
502
497
macro (serialize )
503
- message (STATUS "Creating tests for '${rmw_implementation} '" )
504
498
set (rmw_implementation_env_var RMW_IMPLEMENTATION=${rmw_implementation} )
505
499
# If the rmw_implementation is rmw_zenoh_cpp, run the tests with multicast discovery enabled.
500
+ # Note: This is a temporary change that will be reverted before we branch into Kilted.
506
501
if (rmw_implementation STREQUAL "rmw_zenoh_cpp" )
507
502
list (APPEND rmw_implementation_env_var
508
- ZENOH_ROUTER_CHECK_ATTEMPTS=-1
509
503
ZENOH_CONFIG_OVERRIDE=scouting/multicast/enabled=true
510
- RUST_LOG=z=error
511
504
)
512
505
endif ()
513
506
set (serialize_target_name "test_serialize${target}${target_suffix} " )
514
-
515
507
ament_add_gtest (
516
508
${serialize_target_name} test /test_message_serialization.cpp
517
509
TIMEOUT 30
@@ -536,24 +528,21 @@ if(BUILD_TESTING)
536
528
endmacro ()
537
529
538
530
macro (pub_sub_serialized )
539
- message (STATUS "Creating tests for '${rmw_implementation} '" )
540
531
set (rmw_implementation_env_var RMW_IMPLEMENTATION=${rmw_implementation} )
541
532
# If the rmw_implementation is rmw_zenoh_cpp, run the tests with multicast discovery enabled.
533
+ # Note: This is a temporary change that will be reverted before we branch into Kilted.
542
534
if (rmw_implementation STREQUAL "rmw_zenoh_cpp" )
543
535
list (APPEND rmw_implementation_env_var
544
- ZENOH_ROUTER_CHECK_ATTEMPTS=-1
545
536
ZENOH_CONFIG_OVERRIDE=scouting/multicast/enabled=true
546
- RUST_LOG=z=error
547
537
)
548
538
endif ()
549
539
set (target_name "test_publisher_subscriber_serialized${target}${target_suffix} " )
550
-
551
540
ament_add_gtest (
552
541
${target_name} test /test_publisher_subscriber_serialized.cpp
553
542
TIMEOUT 30
554
543
ENV
555
- RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
556
- ${rmw_implementation_env_var}
544
+ RCL_ASSERT_RMW_ID_MATCHES=${rmw_implementation}
545
+ ${rmw_implementation_env_var}
557
546
)
558
547
if (TARGET ${target_name} )
559
548
add_dependencies (${target_name} ${PROJECT_NAME} )
0 commit comments