From 75f7e761e7cbc0ae5c589dd078625f9fbfeed870 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Fri, 2 Jun 2017 12:06:11 +0200 Subject: [PATCH] Define tests list into a unique file tests.set --- src/Plugins/MEDReader/Test/CMakeLists.txt | 5 ++-- .../MEDReader/Test/CTestTestfileInstall.cmake | 5 ++-- src/Plugins/MEDReader/Test/tests.set | 30 +++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 src/Plugins/MEDReader/Test/tests.set diff --git a/src/Plugins/MEDReader/Test/CMakeLists.txt b/src/Plugins/MEDReader/Test/CMakeLists.txt index c2988490..8c29186f 100644 --- a/src/Plugins/MEDReader/Test/CMakeLists.txt +++ b/src/Plugins/MEDReader/Test/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2010-2016 CEA/DEN, EDF R&D +# Copyright (C) 2010-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,7 +17,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -SET(TEST_NUMBERS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21) +INCLUDE(tests.set) IF(NOT SALOME_INSTALL_SCRIPT_SCRIPTS) SET(SALOME_INSTALL_SCRIPT_SCRIPTS "bin/salome") @@ -111,3 +111,4 @@ ENDFOREACH() INSTALL(FILES CTestTestfileInstall.cmake DESTINATION ${TEST_INSTALL_DIRECTORY} RENAME CTestTestfile.cmake) +INSTALL(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY}) diff --git a/src/Plugins/MEDReader/Test/CTestTestfileInstall.cmake b/src/Plugins/MEDReader/Test/CTestTestfileInstall.cmake index 214aaf1d..63061918 100644 --- a/src/Plugins/MEDReader/Test/CTestTestfileInstall.cmake +++ b/src/Plugins/MEDReader/Test/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,10 +17,11 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # +INCLUDE(tests.set) + SET(COMPONENT_NAME MEDREADER) SET(TIMEOUT 60) -SET(TEST_NUMBERS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) set(BASELINES_DIR "Baselines") FOREACH(tfile ${TEST_NUMBERS}) diff --git a/src/Plugins/MEDReader/Test/tests.set b/src/Plugins/MEDReader/Test/tests.set new file mode 100644 index 00000000..646077d3 --- /dev/null +++ b/src/Plugins/MEDReader/Test/tests.set @@ -0,0 +1,30 @@ +# Copyright (C) 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 +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +# This file declares a shared set of MEDREADER tests, used by two test +# approaches: "make test" and "salome test". The former is used just after +# MEDREADER build step, the latter is used from an installed SALOME application. +# +# We here initialize a cmake variable that is used, by file inclusion, in +# CMakeLists.txt (for make test) and CTestTestfileInstall.cmake (for salome +# test). +# This variables is: TEST_NUMBERS. +# Additional variables might be defined if necessary. + +SET(TEST_NUMBERS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21) -- 2.39.2