summaryrefslogtreecommitdiffstats
path: root/tools/testh5toh4
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-06-14 20:18:16 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-06-14 20:18:16 (GMT)
commit401b37c1c31bd43c7ea63058a2b9513e08bd1059 (patch)
tree09bfbaab32b2b55ab342ce15ed671bd32e0bf614 /tools/testh5toh4
parent8b287dfa64e9a6f98b2365891f845b0eb228f46f (diff)
downloadhdf5-401b37c1c31bd43c7ea63058a2b9513e08bd1059.zip
hdf5-401b37c1c31bd43c7ea63058a2b9513e08bd1059.tar.gz
hdf5-401b37c1c31bd43c7ea63058a2b9513e08bd1059.tar.bz2
[svn-r1343] Filter out the reference number values during comparison of the hdp
output.
Diffstat (limited to 'tools/testh5toh4')
-rw-r--r--tools/testh5toh49
1 files 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