]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Extract unstable SMESH tests
authorNathalieGore <nathalie.gore@opencascade.com>
Tue, 8 Oct 2024 14:16:59 +0000 (16:16 +0200)
committerNathalieGore <nathalie.gore@opencascade.com>
Tue, 8 Oct 2024 14:16:59 +0000 (16:16 +0200)
doc/examples/CMakeLists.txt
doc/examples/CTestTestfileInstall.cmake
doc/examples/tests.set

index 1c69d3ab1bfd67232eeed6615bbde0ccb6679c7d..2a11075a38e4fcfd883587a3c22fc062b4ced3b6 100644 (file)
@@ -45,13 +45,26 @@ IF(SALOME_BUILD_TESTS)
     SET_TESTS_PROPERTIES(${testname} PROPERTIES ENVIRONMENT "${tests_env}" LABELS "examples")
   ENDFOREACH()
 
+  # Add tests for 'make test'
+  # -------------------------
+  
+  SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+
+  FOREACH(test ${UNSTABLE_TESTS})
+    GET_FILENAME_COMPONENT(testname ${test} NAME_WE)
+    SET(testname "EXAMPLES_${testname}")
+    ADD_TEST(NAME ${testname}
+             COMMAND ${PYTHON_EXECUTABLE} -B ${CMAKE_SOURCE_DIR}/test/test_helper.py ${CMAKE_CURRENT_SOURCE_DIR}/${test})
+    SET_TESTS_PROPERTIES(${testname} PROPERTIES ENVIRONMENT "${tests_env}" LABELS "examples")
+  ENDFOREACH()
+
 ENDIF()
 
 # Install example scripts and data
 # --------------------------------
 
 IF(SALOME_BUILD_TESTS OR SALOME_BUILD_DOC)
-  INSTALL(FILES ${GOOD_TESTS} ${BAD_TESTS} DESTINATION ${EXAMPLES_INSTALL_DIRECTORY})
+  INSTALL(FILES ${GOOD_TESTS} ${BAD_TESTS} ${UNSTABLE_TESTS} DESTINATION ${EXAMPLES_INSTALL_DIRECTORY})
   INSTALL(FILES mechanic.py DESTINATION ${SALOME_INSTALL_BINS})
   INSTALL(DIRECTORY data DESTINATION ${EXAMPLES_INSTALL_DIRECTORY})
 ENDIF()
index 0414df3334356763ab9e838a843fbccc7f271de8..fc5f11023ecd99d638f2a1591ab52986659082fe 100644 (file)
@@ -32,3 +32,12 @@ FOREACH(tfile ${_all_tests})
   ADD_TEST(${TEST_NAME} python ${PYTHON_TEST_DRIVER} ${TIMEOUT} ${SCRIPTS_DIR}/${tfile})
   SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME};${COMPONENT_NAME}_examples")
 ENDFOREACH()
+
+SET(_unstable_tests ${UNSTABLE_TESTS})
+LIST(SORT _unstable_tests)
+FOREACH(tfile ${_unstable_tests})
+  GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+  SET(TEST_NAME UNSTABLE_${BASE_NAME})
+  ADD_TEST(${TEST_NAME} python ${PYTHON_TEST_DRIVER} ${TIMEOUT} ${SCRIPTS_DIR}/${tfile})
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "UNSTABLE;${COMPONENT_NAME}_examples")
+ENDFOREACH()
index ca05a2a9653671fd852d108e5fc2484ec044d719..b02b0f9718c3b9ff92b28a78d7d2ae13588af4d7 100644 (file)
@@ -152,8 +152,11 @@ ENDIF(NOT WIN32)
 # The following tests can be executed with both 'make test' and 'salome test'.
 # ----------------------------------------------------------------------------
 
-SET(GOOD_TESTS
+SET(UNSTABLE_TESTS
   cartesian_algo.py
+)
+
+SET(GOOD_TESTS
   creating_meshes_ex02.py
   creating_meshes_ex06.py
   creating_meshes_ex07.py