]> SALOME platform Git repositories - plugins/gmshplugin.git/commitdiff
Salome HOME
Fix 'make test' in WOGUI mode - some tests can be only executed in GUI session V9_8_0b1
authorvsr <vsr@opencascade.com>
Mon, 1 Nov 2021 16:39:27 +0000 (19:39 +0300)
committervsr <vsr@opencascade.com>
Mon, 1 Nov 2021 16:39:27 +0000 (19:39 +0300)
tests/CMakeLists.txt
tests/tests.set

index 8d27976465a33ee4069fa0570c3a9ea090d79d3d..0bd29599aae668891a98e24b560c4985f175416f 100644 (file)
 
 INCLUDE(tests.set)
 
+IF(SALOME_BUILD_GUI)
+  SET(TEST_SCRIPTS ${TEST_NAMES})
+ELSE()
+  SET(TEST_SCRIPTS ${TUI_NAMES})
+ENDIF()
+
 SET(COMPONENT_NAME GMSHPLUGIN)
 SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py")
 SET(TIMEOUT        300)
@@ -30,7 +36,7 @@ SET(TEST_INSTALL_DIRECTORY ${SALOME_GMSHPLUGIN_INSTALL_TESTS})
 # make test
 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 
-FOREACH(tfile ${TEST_NAMES})
+FOREACH(tfile ${TEST_SCRIPTS})
   SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
   ADD_TEST(NAME ${TEST_NAME}
            COMMAND ${PYTHON_EXECUTABLE} -B ${SALOME_TEST_DRIVER} ${TIMEOUT} ${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.py)
@@ -48,4 +54,4 @@ INSTALL(FILES CTestTestfileInstall.cmake
   DESTINATION ${TEST_INSTALL_DIRECTORY}
   RENAME CTestTestfile.cmake)
 
-INSTALL(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY})
\ No newline at end of file
+INSTALL(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY})
index 3c3928b658a2ce28707f5b98cfb9a8a998a9c6f9..29580b74857224ef43edc66160b852fde3c063ba 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-SET(TEST_NAMES
+SET(TUI_NAMES
   basicGroup
-  gmsh_compound_mesh_2d
-  gmsh_compound_mesh_3d
   gmsh_tetra_algorithms_for_box
   gmsh_triangulation_algorithms_for_square
 )
+SET(GUI_NAMES
+  gmsh_compound_mesh_2d
+  gmsh_compound_mesh_3d
+)
+
+SET(TEST_NAMES ${TUI_NAMES} ${GUI_NAMES})