1 # Copyright (C) 2015-2023 CEA, EDF
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 set(tfile PyPara_Basics_Proc2)
29 set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
30 add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
31 set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
33 set(tfile PyPara_InterpKernelDEC_Proc4)
34 set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
35 add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
36 set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
38 set(tfile PyPara_InterpKernelDEC_Proc5)
39 set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
40 add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
41 set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
43 set(tfile PyPara_StructuredCoincidentDEC_Proc4)
44 set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
45 add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
46 set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
48 set(tfile PyPara_OverlapDEC_Proc4)
49 set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
50 add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
51 set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})