summaryrefslogtreecommitdiffstats
path: root/tools/test/h5copy
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2024-02-16 17:14:22 (GMT)
committerGitHub <noreply@github.com>2024-02-16 17:14:22 (GMT)
commit02a57328f743342a7e26d47da4aac445ee248782 (patch)
tree5cad4ae438e205b3677287858c7b2ea1981f1135 /tools/test/h5copy
parentbdddf43f1a6801e5d7c02d0d8556ee1e80047f77 (diff)
downloadhdf5-02a57328f743342a7e26d47da4aac445ee248782.zip
hdf5-02a57328f743342a7e26d47da4aac445ee248782.tar.gz
hdf5-02a57328f743342a7e26d47da4aac445ee248782.tar.bz2
Grep for error messages instead of comparing files (#4024)
Diffstat (limited to 'tools/test/h5copy')
-rw-r--r--tools/test/h5copy/CMakeTests.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/test/h5copy/CMakeTests.cmake b/tools/test/h5copy/CMakeTests.cmake
index b4daa87..15d66d1 100644
--- a/tools/test/h5copy/CMakeTests.cmake
+++ b/tools/test/h5copy/CMakeTests.cmake
@@ -253,7 +253,7 @@
# Similar to ADD_H5_TEST macro. Compare to outputs from source & target
# files instead of checking with h5ls.
#
- macro (ADD_H5_CMP_TEST testname resultcode infile vparam sparam srcname dparam dstname)
+ macro (ADD_H5_CMP_TEST testname resultcode result_errcheck infile vparam sparam srcname dparam dstname)
# Remove any output file left over from previous test run
add_test (
NAME H5COPY-CMP-${testname}-clear-objects
@@ -276,9 +276,9 @@
-D "TEST_OUTPUT=./testfiles/${testname}.out.out"
-D "TEST_EXPECT=${resultcode}"
-D "TEST_REFERENCE=./testfiles/${testname}.out"
- -D "TEST_ERRREF=./testfiles/${testname}.err"
+ -D "TEST_ERRREF=${result_errcheck}"
-D "TEST_MASK=true"
- -P "${HDF_RESOURCES_DIR}/runTest.cmake"
+ -P "${HDF_RESOURCES_DIR}/grepTest.cmake"
)
endif ()
set_tests_properties (H5COPY-CMP-${testname} PROPERTIES DEPENDS H5COPY-CMP-${testname}-clear-objects)
@@ -598,7 +598,7 @@
#-----------------------------------------------------------------
# "Test copying object into group which doesn't exist, without -p"
#
- ADD_H5_CMP_TEST (h5copy_misc1 1 ${HDF_FILE1}.h5 -v -s /simple -d /g1/g2/simple)
+ ADD_H5_CMP_TEST (h5copy_misc1 1 "h5copy error" ${HDF_FILE1}.h5 -v -s /simple -d /g1/g2/simple)
#-------------------------------------------
# "Test copying objects to the same file "