SET(COMPONENT_NAME MEDCOUPLING)
SET(TIMEOUT 120)
+SET(MEDCOUPLING_BUILD_PY_TESTS $<BOOL:@MEDCOUPLING_BUILD_PY_TESTS@>)
+SET(MEDCOUPLING_USE_MPI_BOOL $<BOOL:@MEDCOUPLING_USE_MPI@>)
SUBDIRS(INTERP_KERNELTest)
SUBDIRS(MEDCoupling)
SUBDIRS(MEDLoader_Swig)
SUBDIRS(MEDPartitioner)
-set(MEDCOUPLING_USE_MPI_BOOL $<BOOL:@MEDCOUPLING_USE_MPI@>)
if(MEDCOUPLING_USE_MPI_BOOL)
SUBDIRS(ParaMEDMEMTest)
SUBDIRS(ParaMEDMEM_Swig)
IF(MEDCOUPLING_BUILD_PY_TESTS)
INCLUDE(tests.set)
+ FOREACH(tfile ${ALL_TESTS})
+ GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+ SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+ ADD_TEST(${TEST_NAME} python ${tfile})
+ SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ TIMEOUT ${TIMEOUT}
+ )
+ ENDFOREACH()
ENDIF()
-
-FOREACH(tfile ${ALL_TESTS})
- GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
- SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
- ADD_TEST(${TEST_NAME} python ${tfile})
- SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
- LABELS "${COMPONENT_NAME}"
- TIMEOUT ${TIMEOUT}
- )
-ENDFOREACH()
IF(MEDCOUPLING_BUILD_PY_TESTS)
INCLUDE(tests.set)
+ FOREACH(tfile ${ALL_TESTS})
+ GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+ SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+ ADD_TEST(${TEST_NAME} python ${tfile})
+ SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ TIMEOUT ${TIMEOUT}
+ )
+ ENDFOREACH()
ENDIF()
-
-FOREACH(tfile ${ALL_TESTS})
- GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
- SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
- ADD_TEST(${TEST_NAME} python ${tfile})
- SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
- LABELS "${COMPONENT_NAME}"
- TIMEOUT ${TIMEOUT}
- )
-ENDFOREACH()
IF(MEDCOUPLING_BUILD_PY_TESTS)
INCLUDE(tests.set)
+ FOREACH(tfile ${ALL_TESTS})
+ GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+ SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+ ADD_TEST(${TEST_NAME} python ${tfile})
+ SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ TIMEOUT ${TIMEOUT}
+ )
+ ENDFOREACH()
ENDIF()
-
-FOREACH(tfile ${ALL_TESTS})
- GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
- SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
- ADD_TEST(${TEST_NAME} python ${tfile})
- SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
- LABELS "${COMPONENT_NAME}"
- TIMEOUT ${TIMEOUT}
- )
-ENDFOREACH()
set(MPIEXEC @MPIEXEC@)
set(_oversub_opt @_oversub_opt@)
-SET(TEST_NAMES ParaMEDMEMTest)
+SET(TEST_PREFIX ParaMEDMEMTest)
# TestParaMEDMEM
set(tfile TestParaMEDMEM_Proc2)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} TestParaMEDMEM)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile TestParaMEDMEM_Proc3)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 3 ${_oversub_opt} TestParaMEDMEM)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile TestParaMEDMEM_Proc4)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} TestParaMEDMEM)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile TestParaMEDMEM_Proc5)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} TestParaMEDMEM)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
# TestMPIAccess
set(tfile TestMPIAccess_Proc2)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} TestMPIAccess)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile TestMPIAccess_Proc3)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 3 ${_oversub_opt} TestMPIAccess)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
# TestMPIAccessDEC
set(tfile TestMPIAccessDEC_Proc4)
-set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} TestMPIAccessDEC)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(MPIEXEC @MPIEXEC@)
set(_oversub_opt @_oversub_opt@)
-SET(TEST_NAMES ParaMEDMEMTest)
+SET(TEST_PREFIX ParaMEDMEMTest)
# force mpiexec to use PATH env var to detect right python into mpiexec command line
set(PATH_FOR_PYTHON $ENV{PATH})
IF(MEDCOUPLING_BUILD_PY_TESTS)
-
-
set(tfile PyPara_Basics_Proc2)
- set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+ set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 2 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_BasicOperation.py)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile PyPara_InterpKernelDEC_Proc4)
- set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+ set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile PyPara_InterpKernelDEC_Proc5)
- set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+ set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 5 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_InterpKernelDEC.py)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile PyPara_StructuredCoincidentDEC_Proc4)
- set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+ set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_StructuredCoincidentDEC.py)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
set(tfile PyPara_OverlapDEC_Proc4)
- set(TEST_NAME ${COMPONENT_NAME}_${TEST_NAMES}_${tfile})
+ set(TEST_NAME ${COMPONENT_NAME}_${TEST_PREFIX}_${tfile})
add_test(${TEST_NAME} ${MPIEXEC} -np 4 ${_oversub_opt} -path "${PATH_FOR_PYTHON}" python3 test_OverlapDEC.py)
set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
-
-ENDIF()
\ No newline at end of file
+ENDIF()
IF(MEDCOUPLING_BUILD_PY_TESTS)
INCLUDE(tests.set)
+ FOREACH(tfile ${BASE_TESTS})
+ GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
+ SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
+ ADD_TEST(${TEST_NAME} python ${tfile})
+ SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ TIMEOUT ${TIMEOUT}
+ )
+ ENDFOREACH()
ENDIF()
-FOREACH(tfile ${BASE_TESTS})
- GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
- SET(TEST_NAME ${COMPONENT_NAME}_${BASE_NAME})
- ADD_TEST(${TEST_NAME} python ${tfile})
- SET_TESTS_PROPERTIES( ${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT} )
-ENDFOREACH()
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-SET(TEST_NAMES
- MEDRenumberTest
-)
-
IF(MEDCOUPLING_BUILD_PY_TESTS)
+ SET(TEST_NAMES
+ MEDRenumberTest
+ )
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_${tfile})
ADD_TEST(${TEST_NAME} python ${tfile}.py)
LABELS "${COMPONENT_NAME}"
TIMEOUT ${TIMEOUT}
ENVIRONMENT "PYTHONPATH=../../bin:$ENV{PYTHONPATH}"
- )
+ )
ENDIF()