]> SALOME platform Git repositories - plugins/gmshplugin.git/commitdiff
Salome HOME
Fix the command running the tests SHAPER_V9_1_0RC1
authoreap <eap@opencascade.com>
Thu, 26 Jul 2018 13:35:17 +0000 (16:35 +0300)
committereap <eap@opencascade.com>
Thu, 26 Jul 2018 13:35:17 +0000 (16:35 +0300)
doc/salome/examples/CMakeLists.txt
tests/CMakeLists.txt

index cd5661459138bf37fff90771ec4d12065470ee8e..512f6b72eb8c9f09a7403079e5963e5a279933c8 100644 (file)
@@ -24,6 +24,8 @@
 INCLUDE(examples.set)
 
 SET(COMPONENT_NAME GMSHPLUGIN)
+SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py")
+SET(TIMEOUT        300)
 
 SET(TEST_INSTALL_DIRECTORY ${SALOME_GMSHPLUGIN_INSTALL_TESTS})
 
@@ -33,7 +35,7 @@ SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 FOREACH(tfile ${EXAMPLE_NAMES})
   SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
   ADD_TEST(NAME ${TEST_NAME}
-           COMMAND ${PYTHON_EXECUTABLE} -B ${CMAKE_SOURCE_DIR}/doc/salome/examples/gmshdemo.py ${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.py)
+           COMMAND ${PYTHON_EXECUTABLE} -B ${SALOME_TEST_DRIVER} ${TIMEOUT} ${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.py)
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES ENVIRONMENT "${tests_env}")
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}")
   INSTALL(FILES ${tfile}.py DESTINATION ${SALOME_INSTALL_DOC}/examples/GMSHPLUGIN)
index b4916b55e8f509fb56d4239913396eb443f1dec0..240ec65a340aece19807950a06c0955d46a281f2 100755 (executable)
@@ -20,6 +20,8 @@
 INCLUDE(tests.set)
 
 SET(COMPONENT_NAME GMSHPLUGIN)
+SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py")
+SET(TIMEOUT        300)
 
 SET(TEST_INSTALL_DIRECTORY ${SALOME_GMSHPLUGIN_INSTALL_TESTS})
 
@@ -29,7 +31,7 @@ SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 FOREACH(tfile ${TEST_NAMES})
   SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
   ADD_TEST(NAME ${TEST_NAME}
-           COMMAND ${PYTHON_EXECUTABLE} -B ${CMAKE_SOURCE_DIR}/doc/salome/examples/gmshdemo.py ${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.py)
+           COMMAND ${PYTHON_EXECUTABLE} -B ${SALOME_TEST_DRIVER} ${TIMEOUT} ${CMAKE_CURRENT_SOURCE_DIR}/${tfile}.py)
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES ENVIRONMENT "${tests_env}")
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}")
 ENDFOREACH()