1 # Copyright (C) 2015-2021 CEA/DEN, EDF R&D
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 set(MPIEXEC @MPIEXEC@)
21 set(_oversub_opt @_oversub_opt@)
23 SET(TEST_NAMES ParaMEDMEMTest)
25 # force mpiexec to use PATH env var to detect right python into mpiexec command line
26 set(PATH_FOR_PYTHON $ENV{PATH})
28 IF(MEDCOUPLING_BUILD_PY_TESTS)
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})
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})
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})
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})
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})