From 93a359dd572aee4da3cc78d66b1043e92da0070c Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 9 Jun 1999 17:26:28 -0500 Subject: [svn-r1322] Removed the reformating part. The output of h5dump should be identical in all platforms. Tested in O2K. --- tools/testh5dump.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tools/testh5dump.sh b/tools/testh5dump.sh index dd1c991..1110fa4 100755 --- a/tools/testh5dump.sh +++ b/tools/testh5dump.sh @@ -30,7 +30,7 @@ TESTING() # non-zero value. DUMP() { - expect=testfiles/$1 + expect=$srcdir/testfiles/$1 actual="testfiles/`basename $1 .ddl`.out" shift full=`pwd`/$h5dump @@ -45,14 +45,7 @@ DUMP() $RUNSERIAL $full "$@" 2>/dev/null ) >$actual - # Results. We normalize the result to account for different output - # widths. That is, the test should succeed if the only - # differences are in white space. We have to do this the hard way - # because diff isn't always smart enough. - tr '\n' ' ' <$actual |tr -s ' \t' |fold >$actual-norm - tr '\n' ' ' <$srcdir/$expect |tr -s ' \t' |fold >$expect-norm - - if $cmp $expect-norm $actual-norm; then + if $cmp $expect $actual; then echo " PASSED" else echo "*FAILED*" @@ -62,7 +55,6 @@ DUMP() fi # Clean up output file - rm -f $expect-norm $actual-norm if [ X = ${HDF5_NOCLEANUP:-X} ]; then rm -f $actual fi -- cgit v0.12