mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
Adding the standard output files for the external_env.c and vds_env.c tests.
This commit is contained in:
parent
a58c01aac1
commit
c3c3c1e142
@ -685,6 +685,15 @@ endif ()
|
||||
add_test (
|
||||
NAME H5TEST-clear-external_env-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:external_env>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_ENV_VAR:STRING=HDF5_EXTFILE_PREFIX"
|
||||
-D "TEST_ENV_VALUE:STRING=\${ORIGIN}"
|
||||
-D "TEST_EXPECT=0"
|
||||
-D "TEST_OUTPUT=external_env.txt"
|
||||
-D "TEST_REFERENCE=external_env.out"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
-E remove
|
||||
extern_1r.raw
|
||||
extern_2r.raw
|
||||
@ -694,6 +703,8 @@ add_test (
|
||||
extern_2w.raw
|
||||
extern_3w.raw
|
||||
extern_4w.raw
|
||||
external_env.txt
|
||||
external_env.out
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
@ -701,7 +712,7 @@ set_tests_properties (H5TEST-clear-external_env-objects PROPERTIES FIXTURES_SETU
|
||||
add_test (NAME H5TEST-external_env COMMAND $<TARGET_FILE:external_env>)
|
||||
set_tests_properties (H5TEST-external_env PROPERTIES
|
||||
FIXTURES_REQUIRED external_env_clear_objects
|
||||
ENVIRONMENT "HDF5_EXTFILE_PREFIX=\${ORIGIN}"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
|
||||
@ -709,10 +720,21 @@ set_tests_properties (H5TEST-external_env PROPERTIES
|
||||
add_test (
|
||||
NAME H5TEST-clear-vds_env-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:vds_env>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_ENV_VAR:STRING=HDF5_VDS_PREFIX"
|
||||
-D "TEST_ENV_VALUE:STRING=\${ORIGIN}/tmp"
|
||||
-D "TEST_EXPECT=0"
|
||||
-D "TEST_OUTPUT=vds_env.txt"
|
||||
-D "TEST_REFERENCE=vds_env.out"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
-E remove
|
||||
vds_virt_0.h5
|
||||
vds_virt_3.h5
|
||||
vds_src_2.h5
|
||||
vds_env.txt
|
||||
vds_env.out
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
@ -720,7 +742,7 @@ set_tests_properties (H5TEST-clear-vds_env-objects PROPERTIES FIXTURES_SETUP vds
|
||||
add_test (NAME H5TEST-vds_env COMMAND $<TARGET_FILE:vds_env>)
|
||||
set_tests_properties (H5TEST-vds_env PROPERTIES
|
||||
FIXTURES_REQUIRED vds_env_clear_objects
|
||||
ENVIRONMENT "HDF5_VDS_PREFIX=\${ORIGIN}/tmp"
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST;HDF5TestExpress=${HDF_TEST_EXPRESS}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
|
||||
|
8
test/testfiles/external_env.out
Normal file
8
test/testfiles/external_env.out
Normal file
@ -0,0 +1,8 @@
|
||||
Testing external file with HDF5_EXTFILE_PREFIX
|
||||
Testing with the default file format:
|
||||
Testing prefix in HDF5_EXTFILE_PREFIX PASSED
|
||||
|
||||
Testing with the latest file format:
|
||||
Testing prefix in HDF5_EXTFILE_PREFIX PASSED
|
||||
All external storage tests passed.
|
||||
Test prefix for HDF5_EXTFILE_PREFIX PASSED
|
122
test/testfiles/vds_env.out
Normal file
122
test/testfiles/vds_env.out
Normal file
@ -0,0 +1,122 @@
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix
|
||||
Testing virtual dataset with file version bounds: (earliest, v110):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (earliest, latest):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (v18, v110):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (v18, latest):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (v110, v110):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (v110, latest):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Testing virtual dataset with file version bounds: (latest, latest):
|
||||
Config: same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, same source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
Config: closed source dataset, different source file, reopen virtual file
|
||||
Testing basic virtual dataset I/O via H5Pset_vds_prefix(): all selection with ENV prefix PASSED
|
||||
All virtual dataset tests passed.
|
||||
Test prefix for HDF5_VDS_PREFIX PASSED
|
Loading…
x
Reference in New Issue
Block a user