From 401b37c1c31bd43c7ea63058a2b9513e08bd1059 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 14 Jun 1999 15:18:16 -0500 Subject: [svn-r1343] Filter out the reference number values during comparison of the hdp output. --- tools/testh5toh4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/testh5toh4 b/tools/testh5toh4 index 091707c..dbbbe2c 100644 --- a/tools/testh5toh4 +++ b/tools/testh5toh4 @@ -118,6 +118,8 @@ CONVERT() : else # Use hdp to dump the files and verify the output. + # Filter out the output of "reference = ..." because + # reference numbers are immaterial in general. outfile=`basename $f .hdf` expect_out=$outfile.expect actual_out=$outfile.actual @@ -125,11 +127,14 @@ CONVERT() (cd $SRCDIR/Expected $H4DUMP dumpvg $outfile.hdf $H4DUMP dumpvd $outfile.hdf - $H4DUMP dumpsds $outfile.hdf ) > $expect_out + $H4DUMP dumpsds $outfile.hdf ) | + sed -e 's/reference = [0-9]*;//' > $expect_out (cd $OUTDIR $H4DUMP dumpvg $outfile.hdf $H4DUMP dumpvd $outfile.hdf - $H4DUMP dumpsds $outfile.hdf ) > $actual_out + $H4DUMP dumpsds $outfile.hdf ) | + sed -e 's/reference = [0-9]*;//' > $actual_out + if $cmp $expect_out $actual_out; then : else -- cgit v0.12