]> SALOME platform Git repositories - modules/paravis.git/blob - test/VisuPrs/CTestTestfileInstall.cmake
Salome HOME
Set dev version marker to 1.
[modules/paravis.git] / test / VisuPrs / CTestTestfileInstall.cmake
1 # Copyright (C) 2015-2016  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # Define a label for base tests only: PARAVIS_BASE
21 # Define a label for extra tests only: PARAVIS_EXTRA
22 # Then calling ctest with the label PARAVIS will automatically use both PARAVIS_BASE and PARAVIS_EXTRA
23 MACRO(DEFINE_PARAVIS_TEST test_files name label)
24   FOREACH(tfile ${test_files})
25     SET(TEST_NAME ${COMPONENT_NAME}_${name}_${tfile})
26     ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile}.py)
27     SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}_${label}")
28   ENDFOREACH()
29 ENDMACRO()
30
31 SET(TEST_DIRECTORIES
32   2D_viewer
33   3D_viewer
34   ScalarMap
35   DeformedShape
36   ScalarMap_On_DeformedShape
37   CutPlanes
38   CutLines
39   Vectors
40   Plot3D
41   IsoSurfaces
42   MeshPresentation
43   Animation
44   GaussPoints
45   StreamLines
46   SWIG_scripts
47   Tables
48   ImportMedField
49   united
50   bugs
51   imps
52   dump_study
53 )
54
55 FOREACH(test_dir ${TEST_DIRECTORIES})
56   SUBDIRS(${test_dir})
57 ENDFOREACH()