diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2019-04-11 17:59:07 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2019-04-11 17:59:07 (GMT) |
commit | c3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5 (patch) | |
tree | 3d11faf113e763f6d87600d060a4824db1825062 | |
parent | a58c01aac18bc68be22296c51c3d327d1220ce28 (diff) | |
download | hdf5-c3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5.zip hdf5-c3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5.tar.gz hdf5-c3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5.tar.bz2 |
Adding the standard output files for the external_env.c and vds_env.c tests.
-rw-r--r-- | test/CMakeTests.cmake | 26 | ||||
-rw-r--r-- | test/testfiles/external_env.out | 8 | ||||
-rw-r--r-- | test/testfiles/vds_env.out | 122 |
3 files changed, 154 insertions, 2 deletions
diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake index b5120d8..4a35c15 100644 --- a/test/CMakeTests.cmake +++ b/test/CMakeTests.cmake @@ -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 ) diff --git a/test/testfiles/external_env.out b/test/testfiles/external_env.out new file mode 100644 index 0000000..9c64982 --- /dev/null +++ b/test/testfiles/external_env.out @@ -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 diff --git a/test/testfiles/vds_env.out b/test/testfiles/vds_env.out new file mode 100644 index 0000000..834cdd8 --- /dev/null +++ b/test/testfiles/vds_env.out @@ -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 |