moveit_task_constructor/capabilities/test/CMakeLists.txt
Marq Rasmussen 584197ab76
Some checks failed
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[CLANG_TIDY:pedantic IMAGE:rolling-source]) (push) Has been cancelled
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[DOCKER_RUN_OPTS:-e PRELOAD=libasan.so.8 -e LSAN_OPTIONS="suppressions=$PWD/.github/workflows/lsan.suppressio… (push) Has been cancelled
CI / ${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }} (map[IMAGE:rolling-source NAME:ccov TARGET_CMAKE_ARGS:-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"]) (push) Has been cancelled
Format / pre-commit (push) Has been cancelled
Let Task::preempt() cancel execute() (#684)
2025-05-29 20:31:15 +02:00

16 lines
571 B
CMake

#############
## Testing ##
#############
## Add gtest based cpp test target
if (BUILD_TESTING AND NOT (CMAKE_CXX_FLAGS MATCHES "-fsanitize"))
find_package(ament_cmake_gtest REQUIRED)
find_package(launch_testing_ament_cmake REQUIRED)
find_package(moveit_task_constructor_core REQUIRED)
ament_add_gtest_executable(test_execution test_task_execution.cpp)
add_launch_test(test_execution.launch.py TARGET test_execution
ARGS "test_binary:=$<TARGET_FILE:test_execution>")
ament_target_dependencies(test_execution moveit_task_constructor_core)
endif()