]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake.in
Salome HOME
Introducing MEDCOUPLING_BUILD_PY_TESTS (default ON) to allow disabling
[tools/medcoupling.git] / src / ParaMEDMEM_Swig / CTestTestfileInstall.cmake.in
1 # Copyright (C) 2015-2021  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 set(MPIEXEC @MPIEXEC@)
21 set(_oversub_opt @_oversub_opt@)
22
23 SET(TEST_NAMES ParaMEDMEMTest)
24
25 # force mpiexec to use PATH env var to detect right python into mpiexec command line
26 set(PATH_FOR_PYTHON $ENV{PATH})
27
28 IF(MEDCOUPLING_BUILD_PY_TESTS)
29
30
31     set(tfile PyPara_Basics_Proc2)
32     set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
33     add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
34     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
35     
36     set(tfile PyPara_InterpKernelDEC_Proc4)
37     set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
38     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
39     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
40     
41     set(tfile PyPara_InterpKernelDEC_Proc5)
42     set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
43     add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
44     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
45     
46     set(tfile PyPara_StructuredCoincidentDEC_Proc4)
47     set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
48     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
49     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
50     
51     set(tfile PyPara_OverlapDEC_Proc4)
52     set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
53     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
54     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
55
56 ENDIF()