summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-08-25 16:20:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-08-25 16:20:06 (GMT)
commit71c03f65ebcf850b28f4775ccf2b095ec2285fff (patch)
tree30b5501bd09dcbd9100e94746baa19aee84633d1 /tools/test
parentc2849aead829088d79efbacada4b230c3e6335d7 (diff)
downloadhdf5-71c03f65ebcf850b28f4775ccf2b095ec2285fff.zip
hdf5-71c03f65ebcf850b28f4775ccf2b095ec2285fff.tar.gz
hdf5-71c03f65ebcf850b28f4775ccf2b095ec2285fff.tar.bz2
Add back function for VERIFY_EXTERNAL_CONSOLIDATION
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/h5repack/h5repack.sh.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/test/h5repack/h5repack.sh.in b/tools/test/h5repack/h5repack.sh.in
index 0b0c489..431f959 100644
--- a/tools/test/h5repack/h5repack.sh.in
+++ b/tools/test/h5repack/h5repack.sh.in
@@ -672,6 +672,26 @@ VERIFY_INVALIDBOUNDS()
} # end of VERIFY_INVALIDBOUNDS
# -----------------------------------------------------------------------------
+# Expect h5diff to fail
+# Use only by VERIFY_EXTERNAL_CONSOLIDATION
+# -----------------------------------------------------------------------------
+DIFFFAIL()
+{
+ VERIFY h5diff unequal $@
+ (
+ cd $TESTDIR
+ $RUNSERIAL $H5DIFF_BIN -q "$@"
+ )
+ RET=$?
+ if [ $RET == 0 ] ; then
+ echo "*FAILED*"
+ nerrors="`expr $nerrors + 1`"
+ else
+ echo " PASSED"
+ fi
+}
+
+# -----------------------------------------------------------------------------
# Catchall test for repacking with external files
# Loops over all (internally-listed) cases and applies the given arguments
# to h5repack.