Skip to content

Commit a0ed8ea

Browse files
Check coupled_pendulum tutorial starts correctly
1 parent d3c0ed0 commit a0ed8ea

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
find_package(GTest REQUIRED)
2+
find_package(ICUB QUIET)
23

34
add_subdirectory(forcetorque)
45
add_subdirectory(imu)

tests/gz-sim-yarp-plugins-check-model/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ gsyp_add_tutorial_model_check(forcetorque-model-one-sensor forcetorque/model_one
1717
gsyp_add_tutorial_model_check(forcetorque-model-two-sensors forcetorque/model_two_sensors/model2sensors.sdf)
1818
gsyp_add_tutorial_model_check(single-pendulum single_pendulum/model.sdf)
1919

20+
if(ICUB_FOUND)
21+
option(ENABLE_COUPLED_PENDULUM_TEST "Enable coupled pendulum tests that require ICUB" ON)
22+
else()
23+
set(ENABLE_COUPLED_PENDULUM_TEST OFF)
24+
endif()
25+
26+
if(ENABLE_COUPLED_PENDULUM_TEST)
27+
gsyp_add_tutorial_model_check(coupled-pendulum coupled_pendulum/model.sdf)
28+
endif()
29+
2030
# Then check that the command correctly exit a failure if we pass it a invalid model
2131
add_test(NAME gz-sim-yarp-plugins-check-model-fails-as-expected-with-wrong-world-file
2232
COMMAND gz-sim-yarp-plugins-check-model --world-file ./world_with_robotinterface_with_non_existing_filename.sdf

0 commit comments

Comments
 (0)