From 16fc6b690300e2d3447ceb08c977cc33f6df257e Mon Sep 17 00:00:00 2001 From: Carlos Mastalli Date: Wed, 13 Dec 2023 16:02:13 +0000 Subject: [PATCH] [ci] Disabled whole-body test in ROS1 --- unittest/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt index 4ba590d..8cbe12d 100644 --- a/unittest/CMakeLists.txt +++ b/unittest/CMakeLists.txt @@ -1,12 +1,14 @@ -set(${PROJECT_NAME}_PYTHON_TESTS solver_statistics solver_trajectory - whole_body_state whole_body_trajectory) - if(CATKIN_ENABLE_TESTING) + set(${PROJECT_NAME}_PYTHON_TESTS solver_statistics solver_trajectory) + find_package(rostest REQUIRED) foreach(TEST ${${PROJECT_NAME}_PYTHON_TESTS}) add_rostest(crocoddyl_msgs.test ARGS test_name:=${TEST}) endforeach(TEST ${${PROJECT_NAME}_PYTHON_TESTS}) else() # ROS2 + set(${PROJECT_NAME}_PYTHON_TESTS solver_statistics solver_trajectory + whole_body_state whole_body_trajectory) + foreach(TEST ${${PROJECT_NAME}_PYTHON_TESTS}) add_test(NAME "test_${TEST}" COMMAND ${PYTHON_EXECUTABLE}