summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/testh5dump.sh.in
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-09-06 15:15:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-09-06 15:15:50 (GMT)
commit145f1ce9e35414e40abf00c139114f69c5e1322d (patch)
treeb2528c469291939818ff0b296ce132138e12bb8e /tools/h5dump/testh5dump.sh.in
parentddbc3c841cc71254243e87ede6dd99c403507914 (diff)
downloadhdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.zip
hdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.tar.gz
hdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.tar.bz2
[svn-r24104] HDFFV-8345: add User Defined filters to h5repack.
Reviewed in H5T-61 Tested: local linux - cmake and autotools
Diffstat (limited to 'tools/h5dump/testh5dump.sh.in')
-rw-r--r--tools/h5dump/testh5dump.sh.in36
1 files changed, 35 insertions, 1 deletions
diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in
index be05705..1a0f189 100644
--- a/tools/h5dump/testh5dump.sh.in
+++ b/tools/h5dump/testh5dump.sh.in
@@ -797,6 +797,40 @@ TOOLTEST5() {
fi
}
+# ADD_HELP_TEST
+TOOLTEST_HELP() {
+
+ expect="$TESTDIR/$1"
+ actual="$TESTDIR/`basename $1 .txt`.out"
+ actual_err="$TESTDIR/`basename $1 .txt`.err"
+ shift
+
+ # Run test.
+ TESTING $DUMPER $@
+ (
+ cd $TESTDIR
+ $RUNSERIAL $DUMPER_BIN "$@"
+ ) >$actual 2>$actual_err
+ cat $actual_err >> $actual
+
+ if [ ! -f $expectdata ]; then
+ # Create the expect data file if it doesn't yet exist.
+ echo " CREATED"
+ cp $actual $expect-CREATED
+ elif $CMP $expect $actual; then
+ echo " PASSED"
+ else
+ echo "*FAILED*"
+ echo " Expected output (*.txt) 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
+
+}
# Print a "SKIP" message
SKIP() {
@@ -873,7 +907,7 @@ IMPORTTEST()
# prepare for test
COPY_TESTFILES_TO_TESTDIR
-#TOOLTEST h5dump-help.txt -h
+TOOLTEST_HELP h5dump-help.txt -h
# test data output redirection
TOOLTEST tnoddl.ddl --enable-error-stack --ddl -y packedbits.h5