From 60ef06bdf6d1618bab53b899a4ab6ae8193789d6 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 26 Oct 2005 09:27:11 -0500 Subject: [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: --- MANIFEST | 1 + tools/h5diff/testh5diff.sh | 10 +++++++--- tools/testfiles/h5diff_90.txt | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 tools/testfiles/h5diff_90.txt diff --git a/MANIFEST b/MANIFEST index 2ba3194..cfba760 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1205,6 +1205,7 @@ ./tools/testfiles/h5diff_629.txt ./tools/testfiles/h5diff_70.txt ./tools/testfiles/h5diff_80.txt +./tools/testfiles/h5diff_90.txt #test files for h5repack ./tools/testfiles/test0.h5 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' +############################# -- cgit v0.12