@@ -31,6 +31,7 @@ endif()
3131ament_add_gtest(
3232 test_exceptions
3333 exceptions/test_exceptions.cpp)
34+ ament_add_test_label(test_exceptions mimick)
3435if (TARGET test_exceptions)
3536 target_link_libraries (test_exceptions ${PROJECT_NAME} mimick)
3637endif ()
@@ -52,10 +53,12 @@ if(TARGET test_any_subscription_callback)
5253 target_link_libraries (test_any_subscription_callback ${PROJECT_NAME} ${test_msgs_TARGETS} )
5354endif ()
5455ament_add_gtest(test_client test_client.cpp)
56+ ament_add_test_label(test_client mimick)
5557if (TARGET test_client)
5658 target_link_libraries (test_client ${PROJECT_NAME} mimick ${rcl_interfaces_TARGETS} ${test_msgs_TARGETS} )
5759endif ()
5860ament_add_gtest(test_clock test_clock.cpp)
61+ ament_add_test_label(test_clock mimick)
5962if (TARGET test_clock)
6063 target_link_libraries (test_clock ${PROJECT_NAME} mimick ${rcl_interfaces_TARGETS} ${test_msgs_TARGETS} )
6164endif ()
@@ -69,6 +72,7 @@ if(TARGET test_create_timer)
6972 target_include_directories (test_create_timer PRIVATE ./)
7073endif ()
7174ament_add_gtest(test_generic_client test_generic_client.cpp)
75+ ament_add_test_label(test_generic_client mimick)
7276if (TARGET test_generic_client)
7377 target_link_libraries (test_generic_client ${PROJECT_NAME}
7478 mimick
@@ -80,6 +84,7 @@ if(TARGET test_generic_client)
8084 )
8185endif ()
8286ament_add_gtest(test_client_common test_client_common.cpp)
87+ ament_add_test_label(test_client_common mimick)
8388if (TARGET test_client_common)
8489 target_link_libraries (test_client_common ${PROJECT_NAME}
8590 mimick
@@ -106,6 +111,7 @@ function(test_add_callback_groups_to_executor_for_rmw_implementation)
106111endfunction ()
107112call_for_each_rmw_implementation(test_add_callback_groups_to_executor_for_rmw_implementation)
108113ament_add_gtest(test_expand_topic_or_service_name test_expand_topic_or_service_name.cpp)
114+ ament_add_test_label(test_expand_topic_or_service_name mimick)
109115if (TARGET test_expand_topic_or_service_name)
110116 target_link_libraries (test_expand_topic_or_service_name ${PROJECT_NAME} mimick rcl::rcl rmw::rmw)
111117endif ()
@@ -137,6 +143,7 @@ if(TARGET test_intra_process_buffer)
137143endif ()
138144
139145ament_add_gtest(test_loaned_message test_loaned_message.cpp)
146+ ament_add_test_label(test_loaned_message mimick)
140147target_link_libraries (test_loaned_message ${PROJECT_NAME} mimick ${test_msgs_TARGETS} )
141148
142149ament_add_gtest(test_memory_strategy test_memory_strategy.cpp)
@@ -146,6 +153,7 @@ ament_add_gtest(test_message_memory_strategy test_message_memory_strategy.cpp)
146153target_link_libraries (test_message_memory_strategy ${PROJECT_NAME} ${test_msgs_TARGETS} )
147154
148155ament_add_gtest(test_node test_node.cpp TIMEOUT 240)
156+ ament_add_test_label(test_node mimick)
149157if (TARGET test_node)
150158 target_link_libraries (test_node ${PROJECT_NAME} mimick rcpputils::rcpputils rmw::rmw ${test_msgs_TARGETS} )
151159endif ()
@@ -157,6 +165,7 @@ if(TARGET test_node_interfaces__get_node_interfaces)
157165endif ()
158166ament_add_gtest(test_node_interfaces__node_base
159167 node_interfaces/test_node_base.cpp)
168+ ament_add_test_label(test_node_interfaces__node_base mimick)
160169if (TARGET test_node_interfaces__node_base)
161170 target_link_libraries (test_node_interfaces__node_base ${PROJECT_NAME} mimick rcl::rcl rmw::rmw)
162171endif ()
@@ -168,6 +177,7 @@ endif()
168177ament_add_gtest(test_node_interfaces__node_graph
169178 node_interfaces/test_node_graph.cpp
170179 TIMEOUT 120)
180+ ament_add_test_label(test_node_interfaces__node_graph mimick)
171181if (TARGET test_node_interfaces__node_graph)
172182 target_link_libraries (test_node_interfaces__node_graph ${PROJECT_NAME} mimick rcl::rcl ${test_msgs_TARGETS} )
173183endif ()
@@ -178,21 +188,25 @@ if(TARGET test_node_interfaces__node_interfaces)
178188endif ()
179189ament_add_gtest(test_node_interfaces__node_parameters
180190 node_interfaces/test_node_parameters.cpp)
191+ ament_add_test_label(test_node_interfaces__node_parameters mimick)
181192if (TARGET test_node_interfaces__node_parameters)
182193 target_link_libraries (test_node_interfaces__node_parameters ${PROJECT_NAME} mimick rcpputils::rcpputils)
183194endif ()
184195ament_add_gtest(test_node_interfaces__node_services
185196 node_interfaces/test_node_services.cpp)
197+ ament_add_test_label(test_node_interfaces__node_services mimick)
186198if (TARGET test_node_interfaces__node_services)
187199 target_link_libraries (test_node_interfaces__node_services ${PROJECT_NAME} mimick rcl::rcl)
188200endif ()
189201ament_add_gtest(test_node_interfaces__node_timers
190202 node_interfaces/test_node_timers.cpp)
203+ ament_add_test_label(test_node_interfaces__node_timers mimick)
191204if (TARGET test_node_interfaces__node_timers)
192205 target_link_libraries (test_node_interfaces__node_timers ${PROJECT_NAME} mimick rcl::rcl)
193206endif ()
194207ament_add_gtest(test_node_interfaces__node_topics
195208 node_interfaces/test_node_topics.cpp)
209+ ament_add_test_label(test_node_interfaces__node_topics mimick)
196210if (TARGET test_node_interfaces__node_topics)
197211 target_link_libraries (test_node_interfaces__node_topics ${PROJECT_NAME} mimick rcl::rcl ${test_msgs_TARGETS} )
198212endif ()
@@ -203,6 +217,7 @@ if(TARGET test_node_interfaces__node_type_descriptions)
203217endif ()
204218ament_add_gtest(test_node_interfaces__node_waitables
205219 node_interfaces/test_node_waitables.cpp)
220+ ament_add_test_label(test_node_interfaces__node_waitables mimick)
206221if (TARGET test_node_interfaces__node_waitables)
207222 target_link_libraries (test_node_interfaces__node_waitables ${PROJECT_NAME} mimick rcl::rcl)
208223endif ()
@@ -238,10 +253,12 @@ if(TARGET test_node_global_args)
238253 target_link_libraries (test_node_global_args ${PROJECT_NAME} )
239254endif ()
240255ament_add_gtest(test_node_options test_node_options.cpp)
256+ ament_add_test_label(test_node_options mimick)
241257if (TARGET test_node_options)
242258 target_link_libraries (test_node_options ${PROJECT_NAME} mimick rcl::rcl)
243259endif ()
244260ament_add_gtest(test_init_options test_init_options.cpp)
261+ ament_add_test_label(test_init_options mimick)
245262if (TARGET test_init_options)
246263 target_link_libraries (test_init_options ${PROJECT_NAME} mimick rcl::rcl)
247264endif ()
@@ -270,6 +287,7 @@ if(TARGET test_parameter_map)
270287 target_link_libraries (test_parameter_map ${PROJECT_NAME} rcl::rcl rcl_yaml_param_parser::rcl_yaml_param_parser rcutils::rcutils)
271288endif ()
272289ament_add_gtest(test_publisher test_publisher.cpp TIMEOUT 120)
290+ ament_add_test_label(test_publisher mimick)
273291if (TARGET test_publisher)
274292 target_link_libraries (test_publisher ${PROJECT_NAME} mimick rcl::rcl rcutils::rcutils ${test_msgs_TARGETS} )
275293endif ()
@@ -335,6 +353,7 @@ function(test_qos_event_for_rmw_implementation)
335353 ament_add_gmock(test_qos_event${target_suffix} test_qos_event.cpp
336354 ENV ${rmw_implementation_env_var}
337355 )
356+ ament_add_test_label(test_qos_event${target_suffix} mimick)
338357 if (TARGET test_qos_event${target_suffix} )
339358 target_link_libraries (test_qos_event${target_suffix} ${PROJECT_NAME} mimick rcutils::rcutils rmw::rmw ${test_msgs_TARGETS} )
340359 endif ()
@@ -362,15 +381,18 @@ if(TARGET test_serialized_message)
362381 target_link_libraries (test_serialized_message ${PROJECT_NAME} rcpputils::rcpputils ${test_msgs_TARGETS} )
363382endif ()
364383ament_add_gtest(test_service test_service.cpp)
384+ ament_add_test_label(test_service mimick)
365385if (TARGET test_service)
366386 target_link_libraries (test_service ${PROJECT_NAME} mimick ${rcl_interfaces_TARGES} ${test_msgs_TARGETS} )
367387endif ()
368388ament_add_gmock(test_service_introspection test_service_introspection.cpp)
389+ ament_add_test_label(test_service_introspection mimick)
369390if (TARGET test_service_introspection)
370391 target_link_libraries (test_service_introspection ${PROJECT_NAME} mimick ${service_msgs_TARGETS} ${test_msgs_TARGETS} )
371392endif ()
372393# Creating and destroying nodes is slow with Connext, so this needs larger timeout.
373394ament_add_gtest(test_subscription test_subscription.cpp TIMEOUT 120)
395+ ament_add_test_label(test_subscription mimick)
374396if (TARGET test_subscription)
375397 target_link_libraries (test_subscription ${PROJECT_NAME} mimick ${test_msgs_TARGETS} )
376398endif ()
@@ -421,6 +443,7 @@ endif()
421443
422444ament_add_gtest(test_timer test_timer.cpp
423445 APPEND_LIBRARY_DIRS "${append_library_dirs} " )
446+ ament_add_test_label(test_timer mimick)
424447if (TARGET test_timer)
425448 target_link_libraries (test_timer ${PROJECT_NAME} mimick rcl::rcl)
426449endif ()
@@ -439,6 +462,7 @@ endif()
439462
440463ament_add_gtest(test_utilities test_utilities.cpp
441464 APPEND_LIBRARY_DIRS "${append_library_dirs} " )
465+ ament_add_test_label(test_utilities mimick)
442466if (TARGET test_utilities)
443467 target_link_libraries (test_utilities ${PROJECT_NAME} mimick rcl::rcl)
444468endif ()
@@ -497,6 +521,7 @@ endif()
497521
498522ament_add_gtest(test_static_single_threaded_executor executors/test_static_single_threaded_executor.cpp
499523 APPEND_LIBRARY_DIRS "${append_library_dirs} " )
524+ ament_add_test_label(test_static_single_threaded_executor mimick)
500525if (TARGET test_static_single_threaded_executor)
501526 target_link_libraries (test_static_single_threaded_executor ${PROJECT_NAME} mimick ${test_msgs_TARGETS} )
502527endif ()
@@ -515,6 +540,7 @@ endif()
515540
516541ament_add_gtest(test_executor_notify_waitable executors/test_executor_notify_waitable.cpp
517542 APPEND_LIBRARY_DIRS "${append_library_dirs} " TIMEOUT 120)
543+ ament_add_test_label(test_executor_notify_waitable mimick)
518544if (TARGET test_executor_notify_waitable)
519545 target_link_libraries (test_executor_notify_waitable ${PROJECT_NAME} mimick rcpputils::rcpputils)
520546endif ()
@@ -532,6 +558,7 @@ endif()
532558
533559ament_add_gtest(test_guard_condition test_guard_condition.cpp
534560 APPEND_LIBRARY_DIRS "${append_library_dirs} " )
561+ ament_add_test_label(test_guard_condition mimick)
535562if (TARGET test_guard_condition)
536563 target_link_libraries (test_guard_condition ${PROJECT_NAME} mimick)
537564endif ()
@@ -565,6 +592,7 @@ if(TARGET test_dynamic_storage)
565592endif ()
566593
567594ament_add_gtest(test_storage_policy_common wait_set_policies/test_storage_policy_common.cpp)
595+ ament_add_test_label(test_storage_policy_common mimick)
568596if (TARGET test_storage_policy_common)
569597 target_link_libraries (test_storage_policy_common ${PROJECT_NAME} mimick ${test_msgs_TARGETS} )
570598endif ()
@@ -597,11 +625,13 @@ endif()
597625ament_add_gtest(test_executor test_executor.cpp
598626 APPEND_LIBRARY_DIRS "${append_library_dirs} "
599627 TIMEOUT 120)
628+ ament_add_test_label(test_executor mimick)
600629if (TARGET test_executor)
601630 target_link_libraries (test_executor ${PROJECT_NAME} mimick)
602631endif ()
603632
604633ament_add_gtest(test_graph_listener test_graph_listener.cpp)
634+ ament_add_test_label(test_graph_listener mimick)
605635if (TARGET test_graph_listener)
606636 target_link_libraries (test_graph_listener ${PROJECT_NAME} mimick)
607637endif ()
@@ -613,6 +643,7 @@ function(test_subscription_content_filter_for_rmw_implementation)
613643 ENV ${rmw_implementation_env_var}
614644 TIMEOUT 120
615645 )
646+ ament_add_test_label(test_subscription_content_filter${target_suffix} mimick)
616647 if (TARGET test_subscription_content_filter${target_suffix} )
617648 target_link_libraries (test_subscription_content_filter${target_suffix} ${PROJECT_NAME} mimick ${test_msgs_TARGETS} )
618649 endif ()
0 commit comments