X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling_Swig%2FCTestTestfileInstall.cmake;h=d336cd942313e067cbbbd267ff375fbca27e1c0e;hb=9b3f6c521ab49128d652a6d88dae49106b1a481e;hp=7570b3ae57013b86c8ea5f7a8543b0a768258fbd;hpb=a6505dd18bf2bd322d868e20d9b6f1a75bdcd9f1;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling_Swig/CTestTestfileInstall.cmake b/src/MEDCoupling_Swig/CTestTestfileInstall.cmake index 7570b3ae5..d336cd942 100644 --- a/src/MEDCoupling_Swig/CTestTestfileInstall.cmake +++ b/src/MEDCoupling_Swig/CTestTestfileInstall.cmake @@ -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 @@ -17,22 +17,12 @@ # 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}