summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/testh5diff.sh
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-27 20:10:53 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-27 20:10:53 (GMT)
commit124ef64faf9e3feecdc0d3d28967a222859f915d (patch)
treed3f37c6d74bbe73ac471dfda3e22bfceb3f6edfe /tools/h5diff/testh5diff.sh
parent957a5082d12873eb4238a962ce0193adeac5a1dc (diff)
downloadhdf5-124ef64faf9e3feecdc0d3d28967a222859f915d.zip
hdf5-124ef64faf9e3feecdc0d3d28967a222859f915d.tar.gz
hdf5-124ef64faf9e3feecdc0d3d28967a222859f915d.tar.bz2
[svn-r12984]
Added a relative error formula to deal with floating point uncertainty in the comparison of floats and double types. Added new tests for this feature to the file generator program and to the shell script
Diffstat (limited to 'tools/h5diff/testh5diff.sh')
-rwxr-xr-xtools/h5diff/testh5diff.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh
index ce16ecc..255f201 100755
--- a/tools/h5diff/testh5diff.sh
+++ b/tools/h5diff/testh5diff.sh
@@ -19,8 +19,9 @@
# Added the SKIP feature.
# Albert Cheng, 2005/2/3
# Added -p option for parallel h5diff tests.
-# Pedro Vicente Nunes, 10/25/2005
-# Added test #9
+# Pedro Vicente Nunes:
+# 10/25/2005: Added test #9
+# 11/27/2006: Added test #10, #11
###############################################################################
@@ -503,6 +504,11 @@ TOOLTEST h5diff_90.txt $FILE1 $FILE1
TOOLTEST h5diff_100.txt $FILE9 $FILE10 -v
+# 11. floating point comparison
+
+TOOLTEST h5diff_101.txt $FILE1 $FILE1 /g1/d1 g1/d2 -v
+TOOLTEST h5diff_102.txt $FILE1 $FILE1 /g1/fp1 g1/fp2 -v
+
# ##############################################################################
# # END
# ##############################################################################