]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Disabling usage of MEDCOUPLING_BUILD_PY_TESTS at application level.
authorabn <adrien.bruneton@cea.fr>
Thu, 2 Jun 2022 14:42:29 +0000 (16:42 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 3 Jun 2022 11:09:06 +0000 (13:09 +0200)
+ updating CTestTestfileInstall.cmake files

src/ICoCo/Swig/CTestTestfileInstall.cmake
src/MEDCoupling_Swig/CTestTestfileInstall.cmake
src/MEDLoader/Swig/CTestTestfileInstall.cmake
src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake.in
src/PyWrapping/CTestTestfileInstall.cmake
src/RENUMBER_Swig/CTestTestfileInstall.cmake

index 61d1552e1d2e0d7cb11b6a09c5b1d041c9a3a0db..f43a931d49f7aaacb14d1a4d401319f69c1cd087 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    INCLUDE(tests.set)
-    FOREACH(tfile ${ALL_TESTS})
-      GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
-      SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
-      ADD_TEST(${TEST_NAME} python ${tfile})
-      SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-        LABELS "${COMPONENT_NAME}"
-        TIMEOUT ${TIMEOUT}
-        )
-    ENDFOREACH()
-ENDIF()
+INCLUDE(tests.set)
+
+FOREACH(tfile ${ALL_TESTS})
+  GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+  SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+  ADD_TEST(${TEST_NAME} python ${tfile})
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+    LABELS "${COMPONENT_NAME}"
+    TIMEOUT ${TIMEOUT}
+    )
+ENDFOREACH()
index 61d1552e1d2e0d7cb11b6a09c5b1d041c9a3a0db..f43a931d49f7aaacb14d1a4d401319f69c1cd087 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    INCLUDE(tests.set)
-    FOREACH(tfile ${ALL_TESTS})
-      GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
-      SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
-      ADD_TEST(${TEST_NAME} python ${tfile})
-      SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-        LABELS "${COMPONENT_NAME}"
-        TIMEOUT ${TIMEOUT}
-        )
-    ENDFOREACH()
-ENDIF()
+INCLUDE(tests.set)
+
+FOREACH(tfile ${ALL_TESTS})
+  GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+  SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+  ADD_TEST(${TEST_NAME} python ${tfile})
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+    LABELS "${COMPONENT_NAME}"
+    TIMEOUT ${TIMEOUT}
+    )
+ENDFOREACH()
index 61d1552e1d2e0d7cb11b6a09c5b1d041c9a3a0db..f43a931d49f7aaacb14d1a4d401319f69c1cd087 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    INCLUDE(tests.set)
-    FOREACH(tfile ${ALL_TESTS})
-      GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
-      SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
-      ADD_TEST(${TEST_NAME} python ${tfile})
-      SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-        LABELS "${COMPONENT_NAME}"
-        TIMEOUT ${TIMEOUT}
-        )
-    ENDFOREACH()
-ENDIF()
+INCLUDE(tests.set)
+
+FOREACH(tfile ${ALL_TESTS})
+  GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+  SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+  ADD_TEST(${TEST_NAME} python ${tfile})
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+    LABELS "${COMPONENT_NAME}"
+    TIMEOUT ${TIMEOUT}
+    )
+ENDFOREACH()
index 339ae323d22e0a3c545e0dde8a7e41b7b467eb01..b9b44fa8285d06ad83329ee9f3a17dcd918c44df 100644 (file)
 set(MPIEXEC @MPIEXEC@)
 set(_oversub_opt @_oversub_opt@)
 
-SET(TEST_PREFIX ParaMEDMEMTest)
+SET(TEST_NAMES ParaMEDMEMTest)
 
 # force mpiexec to use PATH env var to detect right python into mpiexec command line
 set(PATH_FOR_PYTHON $ENV{PATH})
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    set(tfile PyPara_Basics_Proc2)
-    set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
-    add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
-    set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-    
-    set(tfile PyPara_InterpKernelDEC_Proc4)
-    set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
-    add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
-    set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-    
-    set(tfile PyPara_InterpKernelDEC_Proc5)
-    set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
-    add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
-    set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-    
-    set(tfile PyPara_StructuredCoincidentDEC_Proc4)
-    set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
-    add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
-    set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-    
-    set(tfile PyPara_OverlapDEC_Proc4)
-    set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
-    add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
-    set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-ENDIF()
+set(tfile PyPara_Basics_Proc2)
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
+set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
+
+set(tfile PyPara_InterpKernelDEC_Proc4)
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
+set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
+
+set(tfile PyPara_InterpKernelDEC_Proc5)
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
+set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
+
+set(tfile PyPara_StructuredCoincidentDEC_Proc4)
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
+set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
+
+set(tfile PyPara_OverlapDEC_Proc4)
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
+set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
index 3a61734b14864b1725aea9ccaa3a02e3d62c93a2..66d982bf3af9bca98d8b65acd8b7c70b3341ae43 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    INCLUDE(tests.set)
-    FOREACH(tfile ${BASE_TESTS})
-      GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
-      SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
-      ADD_TEST(${TEST_NAME} python ${tfile})
-      SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-        LABELS "${COMPONENT_NAME}"
-        TIMEOUT ${TIMEOUT}
-        )
-    ENDFOREACH()
-ENDIF()
+INCLUDE(tests.set)
 
+FOREACH(tfile ${BASE_TESTS})
+  GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+  SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+  ADD_TEST(${TEST_NAME} python ${tfile})
+  SET_TESTS_PROPERTIES( ${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT} )
+ENDFOREACH()
index 73ba1f5bb846c06834fd847a60b47c0b21e15caa..09e57cacf3df2a67776b5a1f2b6e34abfce288e0 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(MEDCOUPLING_BUILD_PY_TESTS)
-    SET(TEST_NAMES
-      MEDRenumberTest
-      )
-    FOREACH(tfile ${TEST_NAMES})
-      SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
-      ADD_TEST(${TEST_NAME} python ${tfile}.py)
-      SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-        LABELS "${COMPONENT_NAME}"
-        TIMEOUT ${TIMEOUT}
-        ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}"
-        )
-    ENDFOREACH()
-    
-    SET(TEST_NAME ${COMPONENT_NAME}_RENUMBER_Swig_MEDRenumberUserGuide)
-    ADD_TEST(${TEST_NAME} python UsersGuideExamplesTest.py)
-    SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
-      LABELS "${COMPONENT_NAME}"
-      TIMEOUT ${TIMEOUT}
-      ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}"
-      )
-ENDIF()
+SET(TEST_NAMES
+  MEDRenumberTest
+)
+
+FOREACH(tfile ${TEST_NAMES})
+  SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
+  ADD_TEST(${TEST_NAME} python ${tfile}.py)
+  SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+    LABELS "${COMPONENT_NAME}"
+    TIMEOUT ${TIMEOUT}
+    ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}"
+    )
+ENDFOREACH()
+
+SET(TEST_NAME ${COMPONENT_NAME}_RENUMBER_Swig_MEDRenumberUserGuide)
+ADD_TEST(${TEST_NAME} python UsersGuideExamplesTest.py)
+SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+  LABELS "${COMPONENT_NAME}"
+  TIMEOUT ${TIMEOUT}
+  ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}"
+  )