summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-10-26 14:27:11 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-10-26 14:27:11 (GMT)
commit60ef06bdf6d1618bab53b899a4ab6ae8193789d6 (patch)
tree5f15b634ca10d408ec59d05e2a56a8c541203475 /tools
parenta9a59d8f1de047f3520417f2b9b8a78aedc8ae05 (diff)
downloadhdf5-60ef06bdf6d1618bab53b899a4ab6ae8193789d6.zip
hdf5-60ef06bdf6d1618bab53b899a4ab6ae8193789d6.tar.gz
hdf5-60ef06bdf6d1618bab53b899a4ab6ae8193789d6.tar.bz2
[svn-r11607] Purpose:
new h5diff test Description: added a test to the test h5diff script that compares a file to itself. this test is done to test some features of the library that open the same file and the root group twice Solution: Platforms tested: linux solaris Misc. update:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/h5diff/testh5diff.sh10
-rw-r--r--tools/testfiles/h5diff_90.txt3
2 files changed, 10 insertions, 3 deletions
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh
index 4fb3c04..bed6646 100755
--- a/tools/h5diff/testh5diff.sh
+++ b/tools/h5diff/testh5diff.sh
@@ -19,6 +19,8 @@
# 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
H5DIFF=h5diff # The tool name
H5DIFF_BIN=`pwd`/$H5DIFF # The path of the tool binary
@@ -408,24 +410,26 @@ TOOLTEST h5diff_627.txt file1.h5 file2.h5 -n 200 g1/dset3 g1/dset4
TOOLTEST h5diff_628.txt file1.h5 file2.h5 -n 1 g1/dset3 g1/dset4
# ##############################################################################
-# # non valid files
+# 6.29 non valid files
# ##############################################################################
TOOLTEST h5diff_629.txt file1.h6 file2.h6
# ##############################################################################
-# # attributes
+# 7. attributes
# ##############################################################################
TOOLTEST h5diff_70.txt file5.h5 file6.h5 -v
# ##############################################################################
-# # all dataset datatypes
+# 8. all dataset datatypes
# ##############################################################################
TOOLTEST h5diff_80.txt file7.h5 file8.h5 -v
+# 9. compare a file with itself
+TOOLTEST h5diff_90.txt file1.h5 file1.h5
diff --git a/tools/testfiles/h5diff_90.txt b/tools/testfiles/h5diff_90.txt
new file mode 100644
index 0000000..000a23d
--- /dev/null
+++ b/tools/testfiles/h5diff_90.txt
@@ -0,0 +1,3 @@
+#############################
+Expected output for 'h5diff file1.h5 file1.h5'
+#############################