diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1999-06-09 22:26:28 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1999-06-09 22:26:28 (GMT) |
commit | 93a359dd572aee4da3cc78d66b1043e92da0070c (patch) | |
tree | 81e3fd389d586a025336093fd3d63fb85600e8f1 /tools | |
parent | fd02ea947d310d0d818ba24bc218caf0846e546f (diff) | |
download | hdf5-93a359dd572aee4da3cc78d66b1043e92da0070c.zip hdf5-93a359dd572aee4da3cc78d66b1043e92da0070c.tar.gz hdf5-93a359dd572aee4da3cc78d66b1043e92da0070c.tar.bz2 |
[svn-r1322] Removed the reformating part. The output of h5dump should
be identical in all platforms. Tested in O2K.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testh5dump.sh | 12 |
1 files 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 |