Salome HOME
bos #26461 [EDF] (2021) MedCoupling: debug tetra/tetra 3d intersector algorithm
[tools/medcoupling.git] / src / MEDPartitioner_Swig / CTestTestfileInstall.cmake
index 2100e6bf0ab28588a3e5b887e978a7c4796ea2d1..abe78845bc570464ad449bff278367b2a143fec5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015  CEA/DEN, EDF R&D
+# Copyright (C) 2015-2021  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-ADD_TEST(MEDPartitionerTest python MEDPartitionerTest.py)
-SET_TESTS_PROPERTIES(MEDPartitionerTest PROPERTIES LABELS "${COMPONENT_NAME}")
+SET(TEST_NAMES
+  MEDPartitionerTest
+)
+
+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()