summaryrefslogtreecommitdiffstats
path: root/test/CMakeTests.cmake
diff options
context:
space:
mode:
authorSongyu Lu <songyulu@hdfgroup.org>2019-04-11 17:59:07 (GMT)
committerSongyu Lu <songyulu@hdfgroup.org>2019-04-11 17:59:07 (GMT)
commitc3c3c1e1426e4f2b8229ad8fe5cc4416a1156da5 (patch)
tree3d11faf113e763f6d87600d060a4824db1825062 /test/CMakeTests.cmake
parenta58c01aac18bc68be22296c51c3d327d1220ce28 (diff)
downloadhdf5-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.
Diffstat (limited to 'test/CMakeTests.cmake')
-rw-r--r--test/CMakeTests.cmake26
1 files changed, 24 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
)