-# Copyright (C) 2015-2016 CEA/DEN, EDF R&D
+# Copyright (C) 2015-2023 CEA, EDF
#
# 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
- MEDCouplingBasicsTest6
- MEDCouplingIntersectTest
- 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} python3 ${tfile})
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
TIMEOUT ${TIMEOUT}