File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,13 +78,20 @@ if (INTEGRATION_TESTS)
7878 )
7979
8080 # ExternalControlProgram tests
81- add_executable (external_control_program_tests test_external_control_program.cpp )
82- target_link_libraries (external_control_program_tests PRIVATE ur_client_library::urcl GTest::gtest_main )
83- gtest_add_tests (TARGET external_control_program_tests
81+ add_executable (external_control_program_tests_urcap test_external_control_program.cpp )
82+ target_link_libraries (external_control_program_tests_urcap PRIVATE ur_client_library::urcl GTest::gtest_main )
83+ gtest_add_tests (TARGET external_control_program_tests_urcap
8484 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR }
8585 EXTRA_ARGS --headless false
8686 TEST_SUFFIX _urcap
8787 )
88+ add_executable (external_control_program_tests_headless test_external_control_program.cpp )
89+ target_link_libraries (external_control_program_tests_headless PRIVATE ur_client_library::urcl GTest::gtest_main )
90+ gtest_add_tests (TARGET external_control_program_tests_headless
91+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR }
92+ EXTRA_ARGS --headless true
93+ TEST_SUFFIX _headless
94+ )
8895
8996 # InstructionExecutor tests
9097 add_executable (instruction_executor_test_urcap test_instruction_executor.cpp )
Original file line number Diff line number Diff line change 3030
3131#include < gtest/gtest.h>
3232
33+ #include " test_utils.h"
3334#include " ur_client_library/example_robot_wrapper.h"
3435
3536using namespace urcl ;
@@ -55,6 +56,13 @@ class ExternalControlProgramTest : public ::testing::Test
5556 }
5657
5758protected:
59+ static void SetUpTestSuite ()
60+ {
61+ if (!(robotVersionLessThan (g_ROBOT_IP, " 10.0.0" ) || g_HEADLESS))
62+ {
63+ GTEST_SKIP_ (" Running URCap tests for PolyScope X is currently not supported." );
64+ }
65+ }
5866 void SetUp () override
5967 {
6068 std::string modified_script_path = extendScript (SCRIPT_FILE );
You can’t perform that action at this time.
0 commit comments