Skip to content

Commit

Permalink
Add 'mimick' label to tests which use Mimick (#466)
Browse files Browse the repository at this point in the history
Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay committed Apr 29, 2024
1 parent 862c6eb commit ebb174d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ if(BUILD_TESTING)
ament_add_gtest(test_strerror
test/test_strerror.cpp
)
ament_add_test_label(test_strerror mimick)
if(TARGET test_strerror)
target_link_libraries(test_strerror ${PROJECT_NAME} mimick)
endif()
Expand All @@ -336,6 +337,7 @@ if(BUILD_TESTING)
test/test_filesystem.cpp
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
ament_add_test_label(test_filesystem mimick)
if(TARGET test_filesystem)
target_link_libraries(test_filesystem ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
target_compile_definitions(test_filesystem PRIVATE BUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}")
Expand Down Expand Up @@ -460,6 +462,7 @@ if(BUILD_TESTING)
ament_add_gtest(test_time
test/test_time.cpp
ENV ${memory_tools_test_env_vars})
ament_add_test_label(test_time mimick)
if(TARGET test_time)
target_link_libraries(test_time ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
endif()
Expand Down Expand Up @@ -522,6 +525,7 @@ if(BUILD_TESTING)
RCUTILS_LOGGING_USE_STDOUT=1
RCUTILS_COLORIZED_OUTPUT=1
)
ament_add_test_label(test_logging_custom_env mimick)
if(TARGET test_logging_custom_env)
target_link_libraries(test_logging_custom_env ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools mimick)
endif()
Expand All @@ -539,6 +543,7 @@ if(BUILD_TESTING)
RCUTILS_LOGGING_USE_STDOUT=0
RCUTILS_COLORIZED_OUTPUT=0
)
ament_add_test_label(test_logging_custom_env2 mimick)
if(TARGET test_logging_custom_env2)
target_link_libraries(test_logging_custom_env2 ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools mimick)
endif()
Expand Down

0 comments on commit ebb174d

Please sign in to comment.