2017-04-18 03:32:16 +08:00
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the COPYING file, which can be found at the root of the source code
|
|
|
|
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
|
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
|
|
|
#
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
### T E S T I N G ###
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
2019-02-14 05:53:25 +08:00
|
|
|
# Remove any output file left over from previous test run
|
2019-07-24 05:24:56 +08:00
|
|
|
add_test (
|
|
|
|
NAME MPI_TEST-clear-testphdf5-objects
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove ParaTest.h5
|
|
|
|
WORKING_DIRECTORY ${HDF5_TEST_PAR_BINARY_DIR}
|
2019-02-14 05:53:25 +08:00
|
|
|
)
|
|
|
|
set_tests_properties (MPI_TEST-clear-testphdf5-objects PROPERTIES FIXTURES_SETUP par_clear_testphdf5)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2019-05-02 02:24:02 +08:00
|
|
|
set (SKIP_tests
|
2019-05-03 05:18:58 +08:00
|
|
|
cchunk1
|
|
|
|
cchunk2
|
2019-05-02 01:31:55 +08:00
|
|
|
cchunk3
|
2019-05-03 05:18:58 +08:00
|
|
|
cchunk4
|
2019-05-02 23:27:49 +08:00
|
|
|
ecdsetw
|
2019-05-03 01:07:23 +08:00
|
|
|
eidsetw2
|
2019-05-03 05:18:58 +08:00
|
|
|
selnone
|
2019-05-04 05:08:22 +08:00
|
|
|
cngrpw-ingrpr
|
2019-05-03 05:18:58 +08:00
|
|
|
cschunkw
|
|
|
|
ccchunkw
|
2019-05-02 01:31:55 +08:00
|
|
|
tldsc
|
2019-05-03 05:18:58 +08:00
|
|
|
actualio
|
|
|
|
MC_coll_MD_read
|
2019-05-02 01:31:55 +08:00
|
|
|
)
|
2019-02-14 05:53:25 +08:00
|
|
|
set (SKIP_testphdf5 "")
|
2019-05-02 03:46:13 +08:00
|
|
|
foreach (skiptest ${SKIP_tests})
|
2019-05-02 01:31:55 +08:00
|
|
|
set (SKIP_testphdf5 "${SKIP_testphdf5};-x;${skiptest}")
|
|
|
|
endforeach ()
|
2019-02-14 05:53:25 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
FIXTURES_REQUIRED par_clear_testphdf5
|
|
|
|
ENVIRONMENT "HDF5_ALARM_SECONDS=3600;srcdir=${HDF5_TEST_PAR_BINARY_DIR}"
|
|
|
|
WORKING_DIRECTORY ${HDF5_TEST_PAR_BINARY_DIR}
|
|
|
|
)
|
2019-02-16 05:48:24 +08:00
|
|
|
if (last_test)
|
2019-02-14 05:53:25 +08:00
|
|
|
set_tests_properties (MPI_TEST_testphdf5 PROPERTIES DEPENDS ${last_test})
|
|
|
|
endif ()
|
|
|
|
set (last_test "MPI_TEST_testphdf5")
|
|
|
|
|
2019-05-02 01:31:55 +08:00
|
|
|
#execute the skipped tests
|
2019-05-02 03:46:13 +08:00
|
|
|
foreach (skiptest ${SKIP_tests})
|
2019-05-02 01:31:55 +08:00
|
|
|
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 ()
|
|
|
|
|
2019-02-16 05:48:24 +08:00
|
|
|
#if (HDF5_OPENMPI_VERSION_SKIP)
|
2019-02-14 05:53:25 +08:00
|
|
|
# list (REMOVE_ITEM H5P_TESTS t_shapesame)
|
|
|
|
#endif ()
|
|
|
|
|
2019-08-28 05:49:10 +08:00
|
|
|
# do not test until new version is added
|
|
|
|
list (REMOVE_ITEM H5P_TESTS t_cache_image)
|
|
|
|
|
2019-02-14 05:53:25 +08:00
|
|
|
set (test_par_CLEANFILES
|
|
|
|
t_cache_image_00.h5
|
|
|
|
t_cache_image_01.h5
|
|
|
|
t_cache_image_02.h5
|
|
|
|
flush.h5
|
|
|
|
noflush.h5
|
|
|
|
reloc_t_pread_data_file.h5
|
|
|
|
reloc_t_pread_group_0_file.h5
|
|
|
|
reloc_t_pread_group_1_file.h5
|
|
|
|
shutdown.h5
|
|
|
|
after_mpi_fin.h5
|
|
|
|
#the following should have been removed by the programs
|
|
|
|
bigio_test.h5
|
|
|
|
CacheTestDummy.h5
|
|
|
|
t_filters_parallel.h5
|
|
|
|
MPItest.h5
|
|
|
|
ShapeSameTest.h5
|
|
|
|
)
|
|
|
|
|
|
|
|
# Remove any output file left over from previous test run
|
2019-07-24 05:24:56 +08:00
|
|
|
add_test (
|
|
|
|
NAME MPI_TEST-clear-objects
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove ${test_par_CLEANFILES}
|
|
|
|
WORKING_DIRECTORY ${HDF5_TEST_PAR_BINARY_DIR}
|
2019-02-14 05:53:25 +08:00
|
|
|
)
|
|
|
|
set_tests_properties (MPI_TEST-clear-objects PROPERTIES FIXTURES_SETUP par_clear_objects)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2019-02-16 05:48:24 +08:00
|
|
|
foreach (h5_testp ${H5P_TESTS})
|
|
|
|
add_test (NAME MPI_TEST_${h5_testp} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:${h5_testp}> ${MPIEXEC_POSTFLAGS})
|
|
|
|
set_tests_properties (MPI_TEST_${h5_testp} PROPERTIES
|
2019-02-14 05:53:25 +08:00
|
|
|
FIXTURES_REQUIRED par_clear_objects
|
|
|
|
ENVIRONMENT "HDF5_ALARM_SECONDS=3600;srcdir=${HDF5_TEST_PAR_BINARY_DIR}"
|
|
|
|
WORKING_DIRECTORY ${HDF5_TEST_PAR_BINARY_DIR}
|
|
|
|
)
|
2019-02-16 05:48:24 +08:00
|
|
|
if (last_test)
|
|
|
|
set_tests_properties (MPI_TEST_${h5_testp} PROPERTIES DEPENDS ${last_test})
|
2019-02-14 05:53:25 +08:00
|
|
|
endif ()
|
2019-02-16 05:48:24 +08:00
|
|
|
set (last_test "MPI_TEST_${h5_testp}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endforeach ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2019-01-04 12:45:58 +08:00
|
|
|
# The t_pflush1 test is hard-coded to fail.
|
2019-02-12 02:42:19 +08:00
|
|
|
set_tests_properties (MPI_TEST_t_pflush1 PROPERTIES WILL_FAIL "true")
|
|
|
|
#set_property (TEST MPI_TEST_t_pflush1 PROPERTY PASS_REGULAR_EXPRESSION "PASSED")
|
|
|
|
set_tests_properties (MPI_TEST_t_pflush2 PROPERTIES DEPENDS MPI_TEST_t_pflush1)
|
2019-02-14 05:53:25 +08:00
|
|
|
set_tests_properties (MPI_TEST_t_prestart PROPERTIES DEPENDS MPI_TEST_t_pshutdown)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2018-12-21 05:11:17 +08:00
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
### V F D T E S T S ###
|
|
|
|
##############################################################################
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
if (HDF5_TEST_VFD)
|
|
|
|
include (CMakeVFDTests.cmake)
|
|
|
|
endif ()
|