From c3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5 Mon Sep 17 00:00:00 2001 From: Songyu Lu Date: Thu, 11 Apr 2019 12:59:07 -0500 Subject: Adding the standard output files for the external_env.c and vds_env.c tests. --- test/CMakeTests.cmake | 26 ++++++++- test/testfiles/external_env.out | 8 +++ test/testfiles/vds_env.out | 122 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 test/testfiles/external_env.out create mode 100644 test/testfiles/vds_env.out 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=$" + -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 $) 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=$" + -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 $) 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 -- cgit v0.12