Salome HOME
Share test definition
[tools/medcoupling.git] / src / MEDCoupling_Swig / CTestTestfileInstall.cmake
index 7570b3ae57013b86c8ea5f7a8543b0a768258fbd..d336cd942313e067cbbbd267ff375fbca27e1c0e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2015-2017  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
 #
 
-SET(TEST_NAMES
-  MEDCouplingBasicsTest1
-  MEDCouplingBasicsTest2
-  MEDCouplingBasicsTest3
-  MEDCouplingBasicsTest4
-  MEDCouplingBasicsTest5
-  MEDCouplingExamplesTest
-  MEDCouplingRemapperTest
-  # if numpy is used
-  MEDCouplingNumPyTest
-  MEDCouplingPickleTest
-)
+INCLUDE(tests.set)
 
-FOREACH(tfile ${TEST_NAMES})
-  SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
-  ADD_TEST(${TEST_NAME} python ${tfile}.py)
+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}