]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/ParaMEDMEM_Swig/CTestTestfileInstall.cmake.in
Salome HOME
Fix problems with `salome test`
[tools/medcoupling.git] / src / ParaMEDMEM_Swig / CTestTestfileInstall.cmake.in
1 # Copyright (C) 2015-2022  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_PREFIX 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     set(tfile PyPara_Basics_Proc2)
30     set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
31     add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
32     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
33     
34     set(tfile PyPara_InterpKernelDEC_Proc4)
35     set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
36     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
37     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
38     
39     set(tfile PyPara_InterpKernelDEC_Proc5)
40     set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
41     add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
42     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
43     
44     set(tfile PyPara_StructuredCoincidentDEC_Proc4)
45     set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
46     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
47     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
48     
49     set(tfile PyPara_OverlapDEC_Proc4)
50     set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
51     add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
52     set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
53 ENDIF()