summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-06-13 23:14:12 (GMT)
committerGitHub <noreply@github.com>2023-06-13 23:14:12 (GMT)
commit3d231bd0c018c4ac7a78640a51d404332a712d72 (patch)
treefa3909104ef9fed8cb129fbec97a42c1e47daa37 /tools
parentbfeb1b0dd5b7b2e4a706ff9b9515bba15e673f31 (diff)
downloadhdf5-3d231bd0c018c4ac7a78640a51d404332a712d72.zip
hdf5-3d231bd0c018c4ac7a78640a51d404332a712d72.tar.gz
hdf5-3d231bd0c018c4ac7a78640a51d404332a712d72.tar.bz2
merges from develop (#3115)
* Fix release action that allows files to be uploaded. * Add autotools h5copy help test. * Update cmake tools.cmake file for clang-tidy. * CMake build is missing H5FDsubfiling.h * Correct snapshot location * Add note for issue 3056
Diffstat (limited to 'tools')
-rw-r--r--tools/test/h5copy/testh5copy.sh.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/test/h5copy/testh5copy.sh.in b/tools/test/h5copy/testh5copy.sh.in
index 7587c0e..1f64d15 100644
--- a/tools/test/h5copy/testh5copy.sh.in
+++ b/tools/test/h5copy/testh5copy.sh.in
@@ -60,6 +60,8 @@ $SRC_H5COPY_TESTFILES/h5copy_extlinks_trg.h5
LIST_OTHER_TEST_FILES="
$SRC_H5COPY_TESTFILES/h5copy_misc1.out
$SRC_H5COPY_TESTFILES/h5copy_misc1.err
+$SRC_H5COPY_TESTFILES/h5copy_help1.ddl
+$SRC_H5COPY_TESTFILES/h5copy_help2.ddl
"
H5COPY=../../src/h5copy/h5copy # The tool name
@@ -483,6 +485,42 @@ H5DIFFTEST_FAIL()
fi
}
+# ADD_HELP_TEST
+TOOLTEST_HELP() {
+
+ expect="$TESTDIR/$1"
+ actual="$TESTDIR/`basename $1 .ddl`.out"
+ actual_err="$TESTDIR/`basename $1 .ddl`.err"
+ shift
+
+ # Run test.
+ TESTING $H5COPY $@
+ (
+ cd $TESTDIR
+ $RUNSERIAL $H5COPY_BIN "$@"
+ ) >$actual 2>$actual_err
+
+ if [ ! -f $expectdata ]; then
+ # Create the expect data file if it doesn't yet exist.
+ echo " CREATED"
+ cp $actual $expect-CREATED
+ echo " Expected output (*.ddl) missing"
+ nerrors="`expr $nerrors + 1`"
+ elif $CMP $expect $actual; then
+ echo " PASSED"
+ else
+ echo "*FAILED*"
+ echo " Expected output (*.ddl) differs from actual output (*.out)"
+ nerrors="`expr $nerrors + 1`"
+ fi
+
+ # Clean up output file
+ if test -z "$HDF5_NOCLEANUP"; then
+ rm -f $actual $actual_err
+ fi
+
+}
+
# Copy single datasets of various forms from one group to another,
# adding object copied to the destination file each time
#
@@ -607,6 +645,10 @@ fi
# prepare for test
COPY_TESTFILES_TO_TESTDIR
+# check help text
+TOOLTEST_HELP h5copy_help1.ddl -h
+TOOLTEST_HELP h5copy_help2.ddl --help
+
# Start tests
COPY_OBJECTS
COPY_REFERENCES