From 71c03f65ebcf850b28f4775ccf2b095ec2285fff Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Tue, 25 Aug 2020 11:20:06 -0500 Subject: Add back function for VERIFY_EXTERNAL_CONSOLIDATION --- tools/test/h5repack/h5repack.sh.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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. -- cgit v0.12