mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
Separate out MPI tests that fail on MPI version
This commit is contained in:
parent
bbf07128b5
commit
e0de04d355
@ -25,10 +25,14 @@ add_test (NAME MPI_TEST-clear-testphdf5-objects
|
||||
)
|
||||
set_tests_properties (MPI_TEST-clear-testphdf5-objects PROPERTIES FIXTURES_SETUP par_clear_testphdf5)
|
||||
|
||||
set (SKIP_testphdf5
|
||||
cchunk3
|
||||
tldsc
|
||||
)
|
||||
set (SKIP_testphdf5 "")
|
||||
#if (HDF5_OPENMPI_VERSION_SKIP)
|
||||
# set (SKIP_testphdf5 "${SKIP_testphdf5};-x;ecdsetw")
|
||||
#endif ()
|
||||
foreach (skiptest SKIP_testphdf5)
|
||||
set (SKIP_testphdf5 "${SKIP_testphdf5};-x;${skiptest}")
|
||||
endforeach ()
|
||||
|
||||
add_test (NAME MPI_TEST_testphdf5 COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:testphdf5> ${MPIEXEC_POSTFLAGS} ${SKIP_testphdf5})
|
||||
set_tests_properties (MPI_TEST_testphdf5 PROPERTIES
|
||||
@ -41,6 +45,20 @@ if (last_test)
|
||||
endif ()
|
||||
set (last_test "MPI_TEST_testphdf5")
|
||||
|
||||
#execute the skipped tests
|
||||
foreach (skiptest SKIP_testphdf5)
|
||||
add_test (NAME MPI_TEST_testphdf5_${skiptest} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:testphdf5> ${MPIEXEC_POSTFLAGS} -o ${skiptest})
|
||||
set_tests_properties (MPI_TEST_testphdf5_${skiptest} PROPERTIES
|
||||
FIXTURES_REQUIRED par_clear_testphdf5
|
||||
ENVIRONMENT "HDF5_ALARM_SECONDS=3600;srcdir=${HDF5_TEST_PAR_BINARY_DIR}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_PAR_BINARY_DIR}
|
||||
)
|
||||
if (last_test)
|
||||
set_tests_properties (MPI_TEST_testphdf5_${skiptest} PROPERTIES DEPENDS ${last_test})
|
||||
endif ()
|
||||
set (last_test "MPI_TEST_testphdf5_${skiptest}")
|
||||
endforeach ()
|
||||
|
||||
#if (HDF5_OPENMPI_VERSION_SKIP)
|
||||
# list (REMOVE_ITEM H5P_TESTS t_shapesame)
|
||||
#endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user