Skip to content

Commit ebb174d

Browse files
authored
Add 'mimick' label to tests which use Mimick (#466)
Signed-off-by: Scott K Logan <[email protected]>
1 parent 862c6eb commit ebb174d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ if(BUILD_TESTING)
311311
ament_add_gtest(test_strerror
312312
test/test_strerror.cpp
313313
)
314+
ament_add_test_label(test_strerror mimick)
314315
if(TARGET test_strerror)
315316
target_link_libraries(test_strerror ${PROJECT_NAME} mimick)
316317
endif()
@@ -336,6 +337,7 @@ if(BUILD_TESTING)
336337
test/test_filesystem.cpp
337338
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
338339
)
340+
ament_add_test_label(test_filesystem mimick)
339341
if(TARGET test_filesystem)
340342
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
341343
target_compile_definitions(test_filesystem PRIVATE BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
@@ -460,6 +462,7 @@ if(BUILD_TESTING)
460462
ament_add_gtest(test_time
461463
test/test_time.cpp
462464
ENV ${memory_tools_test_env_vars})
465+
ament_add_test_label(test_time mimick)
463466
if(TARGET test_time)
464467
target_link_libraries(test_time ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
465468
endif()
@@ -522,6 +525,7 @@ if(BUILD_TESTING)
522525
RCUTILS_LOGGING_USE_STDOUT=1
523526
RCUTILS_COLORIZED_OUTPUT=1
524527
)
528+
ament_add_test_label(test_logging_custom_env mimick)
525529
if(TARGET test_logging_custom_env)
526530
target_link_libraries(test_logging_custom_env ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools mimick)
527531
endif()
@@ -539,6 +543,7 @@ if(BUILD_TESTING)
539543
RCUTILS_LOGGING_USE_STDOUT=0
540544
RCUTILS_COLORIZED_OUTPUT=0
541545
)
546+
ament_add_test_label(test_logging_custom_env2 mimick)
542547
if(TARGET test_logging_custom_env2)
543548
target_link_libraries(test_logging_custom_env2 ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools mimick)
544549
endif()

0 commit comments

Comments
 (0)