From 5a4c7681edd17dc5b8cb960ad220be06757f3e95 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 19 May 2003 00:12:26 -0500 Subject: [svn-r6895] Purpose: test files with new output format Description: Solution: Platforms tested: Misc. update: --- tools/testfiles/file1.h5 | Bin 0 -> 6240 bytes tools/testfiles/file2.h5 | Bin 0 -> 6288 bytes tools/testfiles/file3.h5 | Bin 0 -> 4352 bytes tools/testfiles/file4.h5 | Bin 0 -> 4352 bytes tools/testfiles/file5.h5 | Bin 0 -> 2936 bytes tools/testfiles/file6.h5 | Bin 0 -> 8016 bytes tools/testfiles/h5diff_10.txt | 38 ++++++++++++++++++++++++ tools/testfiles/h5diff_11.txt | 14 +++++++++ tools/testfiles/h5diff_12.txt | 12 ++++++++ tools/testfiles/h5diff_13.txt | 16 +++++++++++ tools/testfiles/h5diff_14.txt | 16 +++++++++++ tools/testfiles/h5diff_15.txt | 6 ++++ tools/testfiles/h5diff_16.txt | 64 +++++++++++++++++++++++++++++++++++++++++ tools/testfiles/h5diff_20.txt | 7 +++++ tools/testfiles/h5diff_21.txt | 7 +++++ tools/testfiles/h5diff_22.txt | 7 +++++ tools/testfiles/h5diff_23.txt | 8 ++++++ tools/testfiles/h5diff_24.txt | 8 ++++++ tools/testfiles/h5diff_25.txt | 8 ++++++ tools/testfiles/h5diff_30.txt | 8 ++++++ tools/testfiles/h5diff_31.txt | 8 ++++++ tools/testfiles/h5diff_32.txt | 8 ++++++ tools/testfiles/h5diff_33.txt | 8 ++++++ tools/testfiles/h5diff_34.txt | 8 ++++++ tools/testfiles/h5diff_35.txt | 8 ++++++ tools/testfiles/h5diff_36.txt | 8 ++++++ tools/testfiles/h5diff_37.txt | 8 ++++++ tools/testfiles/h5diff_38.txt | 8 ++++++ tools/testfiles/h5diff_40.txt | 8 ++++++ tools/testfiles/h5diff_41.txt | 8 ++++++ tools/testfiles/h5diff_42.txt | 11 +++++++ tools/testfiles/h5diff_50.txt | 17 +++++++++++ tools/testfiles/h5diff_51.txt | 14 +++++++++ tools/testfiles/h5diff_52.txt | 14 +++++++++ tools/testfiles/h5diff_53.txt | 14 +++++++++ tools/testfiles/h5diff_54.txt | 14 +++++++++ tools/testfiles/h5diff_55.txt | 14 +++++++++ tools/testfiles/h5diff_56.txt | 14 +++++++++ tools/testfiles/h5diff_600.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_601.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_602.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_603.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_604.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_605.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_606.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_607.txt | 16 +++++++++++ tools/testfiles/h5diff_608.txt | 16 +++++++++++ tools/testfiles/h5diff_609.txt | 8 ++++++ tools/testfiles/h5diff_610.txt | 16 +++++++++++ tools/testfiles/h5diff_611.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_612.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_613.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_614.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_615.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_616.txt | 12 ++++++++ tools/testfiles/h5diff_617.txt | 12 ++++++++ tools/testfiles/h5diff_618.txt | 8 ++++++ tools/testfiles/h5diff_619.txt | 16 +++++++++++ tools/testfiles/h5diff_620.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_621.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_622.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_623.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_624.txt | 39 +++++++++++++++++++++++++ tools/testfiles/h5diff_625.txt | 12 ++++++++ tools/testfiles/h5diff_626.txt | 13 +++++++++ tools/testfiles/h5diff_627.txt | 16 +++++++++++ tools/testfiles/h5diff_628.txt | 11 +++++++ tools/testfiles/h5diff_629.txt | 5 ++++ 68 files changed, 1235 insertions(+) create mode 100644 tools/testfiles/file1.h5 create mode 100644 tools/testfiles/file2.h5 create mode 100644 tools/testfiles/file3.h5 create mode 100644 tools/testfiles/file4.h5 create mode 100644 tools/testfiles/file5.h5 create mode 100644 tools/testfiles/file6.h5 create mode 100644 tools/testfiles/h5diff_10.txt create mode 100644 tools/testfiles/h5diff_11.txt create mode 100644 tools/testfiles/h5diff_12.txt create mode 100644 tools/testfiles/h5diff_13.txt create mode 100644 tools/testfiles/h5diff_14.txt create mode 100644 tools/testfiles/h5diff_15.txt create mode 100644 tools/testfiles/h5diff_16.txt create mode 100644 tools/testfiles/h5diff_20.txt create mode 100644 tools/testfiles/h5diff_21.txt create mode 100644 tools/testfiles/h5diff_22.txt create mode 100644 tools/testfiles/h5diff_23.txt create mode 100644 tools/testfiles/h5diff_24.txt create mode 100644 tools/testfiles/h5diff_25.txt create mode 100644 tools/testfiles/h5diff_30.txt create mode 100644 tools/testfiles/h5diff_31.txt create mode 100644 tools/testfiles/h5diff_32.txt create mode 100644 tools/testfiles/h5diff_33.txt create mode 100644 tools/testfiles/h5diff_34.txt create mode 100644 tools/testfiles/h5diff_35.txt create mode 100644 tools/testfiles/h5diff_36.txt create mode 100644 tools/testfiles/h5diff_37.txt create mode 100644 tools/testfiles/h5diff_38.txt create mode 100644 tools/testfiles/h5diff_40.txt create mode 100644 tools/testfiles/h5diff_41.txt create mode 100644 tools/testfiles/h5diff_42.txt create mode 100644 tools/testfiles/h5diff_50.txt create mode 100644 tools/testfiles/h5diff_51.txt create mode 100644 tools/testfiles/h5diff_52.txt create mode 100644 tools/testfiles/h5diff_53.txt create mode 100644 tools/testfiles/h5diff_54.txt create mode 100644 tools/testfiles/h5diff_55.txt create mode 100644 tools/testfiles/h5diff_56.txt create mode 100644 tools/testfiles/h5diff_600.txt create mode 100644 tools/testfiles/h5diff_601.txt create mode 100644 tools/testfiles/h5diff_602.txt create mode 100644 tools/testfiles/h5diff_603.txt create mode 100644 tools/testfiles/h5diff_604.txt create mode 100644 tools/testfiles/h5diff_605.txt create mode 100644 tools/testfiles/h5diff_606.txt create mode 100644 tools/testfiles/h5diff_607.txt create mode 100644 tools/testfiles/h5diff_608.txt create mode 100644 tools/testfiles/h5diff_609.txt create mode 100644 tools/testfiles/h5diff_610.txt create mode 100644 tools/testfiles/h5diff_611.txt create mode 100644 tools/testfiles/h5diff_612.txt create mode 100644 tools/testfiles/h5diff_613.txt create mode 100644 tools/testfiles/h5diff_614.txt create mode 100644 tools/testfiles/h5diff_615.txt create mode 100644 tools/testfiles/h5diff_616.txt create mode 100644 tools/testfiles/h5diff_617.txt create mode 100644 tools/testfiles/h5diff_618.txt create mode 100644 tools/testfiles/h5diff_619.txt create mode 100644 tools/testfiles/h5diff_620.txt create mode 100644 tools/testfiles/h5diff_621.txt create mode 100644 tools/testfiles/h5diff_622.txt create mode 100644 tools/testfiles/h5diff_623.txt create mode 100644 tools/testfiles/h5diff_624.txt create mode 100644 tools/testfiles/h5diff_625.txt create mode 100644 tools/testfiles/h5diff_626.txt create mode 100644 tools/testfiles/h5diff_627.txt create mode 100644 tools/testfiles/h5diff_628.txt create mode 100644 tools/testfiles/h5diff_629.txt diff --git a/tools/testfiles/file1.h5 b/tools/testfiles/file1.h5 new file mode 100644 index 0000000..e6f2863 Binary files /dev/null and b/tools/testfiles/file1.h5 differ diff --git a/tools/testfiles/file2.h5 b/tools/testfiles/file2.h5 new file mode 100644 index 0000000..4db567a Binary files /dev/null and b/tools/testfiles/file2.h5 differ diff --git a/tools/testfiles/file3.h5 b/tools/testfiles/file3.h5 new file mode 100644 index 0000000..2586dd2 Binary files /dev/null and b/tools/testfiles/file3.h5 differ diff --git a/tools/testfiles/file4.h5 b/tools/testfiles/file4.h5 new file mode 100644 index 0000000..64a5c35 Binary files /dev/null and b/tools/testfiles/file4.h5 differ diff --git a/tools/testfiles/file5.h5 b/tools/testfiles/file5.h5 new file mode 100644 index 0000000..57bd916 Binary files /dev/null and b/tools/testfiles/file5.h5 differ diff --git a/tools/testfiles/file6.h5 b/tools/testfiles/file6.h5 new file mode 100644 index 0000000..473ab3e Binary files /dev/null and b/tools/testfiles/file6.h5 differ diff --git a/tools/testfiles/h5diff_10.txt b/tools/testfiles/h5diff_10.txt new file mode 100644 index 0000000..146e254 --- /dev/null +++ b/tools/testfiles/h5diff_10.txt @@ -0,0 +1,38 @@ +############################# +Expected output for 'h5diff -h' +############################# +$h5diff -h +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_11.txt b/tools/testfiles/h5diff_11.txt new file mode 100644 index 0000000..803b81f --- /dev/null +++ b/tools/testfiles/h5diff_11.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset3a dset3b' +############################# +$h5diff file6.h5 file6.h5 dset3a dset3b +Comparing with +position dset3a dset3b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_12.txt b/tools/testfiles/h5diff_12.txt new file mode 100644 index 0000000..3fd7989 --- /dev/null +++ b/tools/testfiles/h5diff_12.txt @@ -0,0 +1,12 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 2 g1/dset1 g1/dset2' +############################# +$h5diff file1.h5 file2.h5 -n 2 g1/dset1 g1/dset2 +Comparing with +position dset1 dset2 difference +------------------------------------------------------------ +[ 0 1 ] 1 1.1 0.1 +[ 1 0 ] 1 1.01 0.01 +2 differences found + + diff --git a/tools/testfiles/h5diff_13.txt b/tools/testfiles/h5diff_13.txt new file mode 100644 index 0000000..d6ee768 --- /dev/null +++ b/tools/testfiles/h5diff_13.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 5 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 5 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +[ 1 1 ] 100 80 20 +[ 2 0 ] 100 140 40 +[ 2 1 ] 100 200 100 +6 differences found + + diff --git a/tools/testfiles/h5diff_14.txt b/tools/testfiles/h5diff_14.txt new file mode 100644 index 0000000..95cad0a --- /dev/null +++ b/tools/testfiles/h5diff_14.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0.05 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0.05 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference relative +------------------------------------------------------------------------ +[ 0 0 ] 100 110 10 0.1 +[ 0 1 ] 110 100 10 0.09090909091 +[ 1 0 ] 100 90 10 0.1 +[ 1 1 ] 100 80 20 0.2 +[ 2 0 ] 100 140 40 0.4 +[ 2 1 ] 100 200 100 1 +6 differences found + + diff --git a/tools/testfiles/h5diff_15.txt b/tools/testfiles/h5diff_15.txt new file mode 100644 index 0000000..3577f88 --- /dev/null +++ b/tools/testfiles/h5diff_15.txt @@ -0,0 +1,6 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -r g1/dset1 g1/dset2' +############################# +$h5diff file1.h5 file2.h5 -r g1/dset1 g1/dset2 +Object could not be found in + diff --git a/tools/testfiles/h5diff_16.txt b/tools/testfiles/h5diff_16.txt new file mode 100644 index 0000000..45c9302 --- /dev/null +++ b/tools/testfiles/h5diff_16.txt @@ -0,0 +1,64 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5' +############################# +$h5diff file6.h5 file6.h5 +file1 file2 +--------------------------------------- + x x /dset0a + x x /dset0b + x x /dset1a + x x /dset1b + x x /dset2a + x x /dset2b + x x /dset3a + x x /dset3b + x x /dset4a + x x /dset4b + x x /dset5a + x x /dset5b + x x /dset6a + x x /dset6b + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + +Comparing with +0 differences found + + diff --git a/tools/testfiles/h5diff_20.txt b/tools/testfiles/h5diff_20.txt new file mode 100644 index 0000000..ef4439a --- /dev/null +++ b/tools/testfiles/h5diff_20.txt @@ -0,0 +1,7 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 dset group' +############################# +$h5diff file3.h5 file3.h5 dset group +Comparison not supported + is of type H5G_DATASET and is of type H5G_GROUP + diff --git a/tools/testfiles/h5diff_21.txt b/tools/testfiles/h5diff_21.txt new file mode 100644 index 0000000..12804b8 --- /dev/null +++ b/tools/testfiles/h5diff_21.txt @@ -0,0 +1,7 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 dset link' +############################# +$h5diff file3.h5 file3.h5 dset link +Comparison not supported + is of type H5G_DATASET and is of type H5G_LINK + diff --git a/tools/testfiles/h5diff_22.txt b/tools/testfiles/h5diff_22.txt new file mode 100644 index 0000000..9e5ce85 --- /dev/null +++ b/tools/testfiles/h5diff_22.txt @@ -0,0 +1,7 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 dset type' +############################# +$h5diff file3.h5 file3.h5 dset type +Comparison not supported + is of type H5G_DATASET and is of type H5G_TYPE + diff --git a/tools/testfiles/h5diff_23.txt b/tools/testfiles/h5diff_23.txt new file mode 100644 index 0000000..d04763f --- /dev/null +++ b/tools/testfiles/h5diff_23.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 group group' +############################# +$h5diff file3.h5 file3.h5 group group +Comparison not supported + is of type H5G_GROUP and is of type H5G_GROUP + + diff --git a/tools/testfiles/h5diff_24.txt b/tools/testfiles/h5diff_24.txt new file mode 100644 index 0000000..82a11d5 --- /dev/null +++ b/tools/testfiles/h5diff_24.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 type type' +############################# +$h5diff file3.h5 file3.h5 type type +Comparison not supported + is of type H5G_TYPE and is of type H5G_TYPE + + diff --git a/tools/testfiles/h5diff_25.txt b/tools/testfiles/h5diff_25.txt new file mode 100644 index 0000000..a4f56f0 --- /dev/null +++ b/tools/testfiles/h5diff_25.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file3.h5 file3.h5 link link' +############################# +$h5diff file3.h5 file3.h5 link link +Comparison not supported + is of type H5G_LINK and is of type H5G_LINK + + diff --git a/tools/testfiles/h5diff_30.txt b/tools/testfiles/h5diff_30.txt new file mode 100644 index 0000000..d405bbf --- /dev/null +++ b/tools/testfiles/h5diff_30.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 string' +############################# +$h5diff file4.h5 file4.h5 string +Comparison not supported + is of class H5T_STRING and is of class H5T_STRING + + diff --git a/tools/testfiles/h5diff_31.txt b/tools/testfiles/h5diff_31.txt new file mode 100644 index 0000000..153a8ff --- /dev/null +++ b/tools/testfiles/h5diff_31.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 bitfield' +############################# +$h5diff file4.h5 file4.h5 bitfield +Comparison not supported + is of class H5T_BITFIELD and is of class H5T_BITFIELD + + diff --git a/tools/testfiles/h5diff_32.txt b/tools/testfiles/h5diff_32.txt new file mode 100644 index 0000000..6d68444 --- /dev/null +++ b/tools/testfiles/h5diff_32.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 opaque' +############################# +$h5diff file4.h5 file4.h5 opaque +Comparison not supported + is of class H5T_OPAQUE and is of class H5T_OPAQUE + + diff --git a/tools/testfiles/h5diff_33.txt b/tools/testfiles/h5diff_33.txt new file mode 100644 index 0000000..d8243ad --- /dev/null +++ b/tools/testfiles/h5diff_33.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 compound' +############################# +$h5diff file4.h5 file4.h5 compound +Comparison not supported + is of class H5T_COMPOUND and is of class H5T_COMPOUND + + diff --git a/tools/testfiles/h5diff_34.txt b/tools/testfiles/h5diff_34.txt new file mode 100644 index 0000000..199278e --- /dev/null +++ b/tools/testfiles/h5diff_34.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 ref' +############################# +$h5diff file4.h5 file4.h5 ref +Comparison not supported + is of class H5T_REFERENCE and is of class H5T_REFERENCE + + diff --git a/tools/testfiles/h5diff_35.txt b/tools/testfiles/h5diff_35.txt new file mode 100644 index 0000000..e5d8f2c --- /dev/null +++ b/tools/testfiles/h5diff_35.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 enum' +############################# +$h5diff file4.h5 file4.h5 enum +Comparison not supported + is of class H5T_ENUM and is of class H5T_ENUM + + diff --git a/tools/testfiles/h5diff_36.txt b/tools/testfiles/h5diff_36.txt new file mode 100644 index 0000000..3f8bfa0 --- /dev/null +++ b/tools/testfiles/h5diff_36.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 vlen' +############################# +$h5diff file4.h5 file4.h5 vlen +Comparison not supported + is of class H5T_VLEN and is of class H5T_VLEN + + diff --git a/tools/testfiles/h5diff_37.txt b/tools/testfiles/h5diff_37.txt new file mode 100644 index 0000000..f2125a7 --- /dev/null +++ b/tools/testfiles/h5diff_37.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 array' +############################# +$h5diff file4.h5 file4.h5 array +Comparison not supported + is of class H5T_ARRAY and is of class H5T_ARRAY + + diff --git a/tools/testfiles/h5diff_38.txt b/tools/testfiles/h5diff_38.txt new file mode 100644 index 0000000..6e18309 --- /dev/null +++ b/tools/testfiles/h5diff_38.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file4.h5 file4.h5 integer float' +############################# +$h5diff file4.h5 file4.h5 integer float +Comparison not supported + is of class H5T_INTEGER and is of class H5T_FLOAT + + diff --git a/tools/testfiles/h5diff_40.txt b/tools/testfiles/h5diff_40.txt new file mode 100644 index 0000000..b904cc5 --- /dev/null +++ b/tools/testfiles/h5diff_40.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file5.h5 file5.h5 dset1 dset2' +############################# +$h5diff file5.h5 file5.h5 dset1 dset2 +Comparison not supported + has rank 1, dimensions [ 7 ] , max dimensions [ 7 ] + has rank 4, dimensions [ 2 2 2 2 ] , max dimensions [ 2 2 2 2 ] + diff --git a/tools/testfiles/h5diff_41.txt b/tools/testfiles/h5diff_41.txt new file mode 100644 index 0000000..75e7de1 --- /dev/null +++ b/tools/testfiles/h5diff_41.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file5.h5 file5.h5 dset3 dset4' +############################# +$h5diff file5.h5 file5.h5 dset3 dset4 +Comparison not supported + has rank 4, dimensions [ 2 2 2 2 ] , max dimensions [ 2 2 2 2 ] + has rank 4, dimensions [ 2 2 2 3 ] , max dimensions [ 2 2 2 3 ] + diff --git a/tools/testfiles/h5diff_42.txt b/tools/testfiles/h5diff_42.txt new file mode 100644 index 0000000..28add4f --- /dev/null +++ b/tools/testfiles/h5diff_42.txt @@ -0,0 +1,11 @@ +############################# +Expected output for 'h5diff file5.h5 file5.h5 dset5 dset6' +############################# +$h5diff file5.h5 file5.h5 dset5 dset6 +Warning: Different maximum dimensions + has max dimensions [ 2 2 2 2 ] + has max dimensions [ 2 2 2 3 ] +Comparing with +0 differences found + + diff --git a/tools/testfiles/h5diff_50.txt b/tools/testfiles/h5diff_50.txt new file mode 100644 index 0000000..3b0bdb8 --- /dev/null +++ b/tools/testfiles/h5diff_50.txt @@ -0,0 +1,17 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset0a dset0b' +############################# +$h5diff file6.h5 file6.h5 dset0a dset0b +Warning: Different storage datatype + has file datatype H5T_STD_I16LE + has file datatype H5T_STD_I32LE +Comparing with +position dset0a dset0b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_51.txt b/tools/testfiles/h5diff_51.txt new file mode 100644 index 0000000..a8de11e --- /dev/null +++ b/tools/testfiles/h5diff_51.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset1a dset1b' +############################# +$h5diff file6.h5 file6.h5 dset1a dset1b +Comparing with +position dset1a dset1b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_52.txt b/tools/testfiles/h5diff_52.txt new file mode 100644 index 0000000..5d0d0a0 --- /dev/null +++ b/tools/testfiles/h5diff_52.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset2a dset2b' +############################# +$h5diff file6.h5 file6.h5 dset2a dset2b +Comparing with +position dset2a dset2b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_53.txt b/tools/testfiles/h5diff_53.txt new file mode 100644 index 0000000..4d6e3b7 --- /dev/null +++ b/tools/testfiles/h5diff_53.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset3a dset4b' +############################# +$h5diff file6.h5 file6.h5 dset3a dset4b +Comparing with +position dset3a dset4b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_54.txt b/tools/testfiles/h5diff_54.txt new file mode 100644 index 0000000..968d483 --- /dev/null +++ b/tools/testfiles/h5diff_54.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset4a dset4b' +############################# +$h5diff file6.h5 file6.h5 dset4a dset4b +Comparing with +position dset4a dset4b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_55.txt b/tools/testfiles/h5diff_55.txt new file mode 100644 index 0000000..40fa20a --- /dev/null +++ b/tools/testfiles/h5diff_55.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset5a dset5b' +############################# +$h5diff file6.h5 file6.h5 dset5a dset5b +Comparing with +position dset5a dset5b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_56.txt b/tools/testfiles/h5diff_56.txt new file mode 100644 index 0000000..6075593 --- /dev/null +++ b/tools/testfiles/h5diff_56.txt @@ -0,0 +1,14 @@ +############################# +Expected output for 'h5diff file6.h5 file6.h5 dset6a dset6b' +############################# +$h5diff file6.h5 file6.h5 dset6a dset6b +Comparing with +position dset6a dset6b difference +------------------------------------------------------------ +[ 1 0 ] 1 3 2 +[ 1 1 ] 1 4 3 +[ 2 0 ] 1 5 4 +[ 2 1 ] 1 6 5 +4 differences found + + diff --git a/tools/testfiles/h5diff_600.txt b/tools/testfiles/h5diff_600.txt new file mode 100644 index 0000000..bfc061f --- /dev/null +++ b/tools/testfiles/h5diff_600.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5' +############################# +$h5diff file1.h5 +Number of arguments is only 2 +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_601.txt b/tools/testfiles/h5diff_601.txt new file mode 100644 index 0000000..9266951 --- /dev/null +++ b/tools/testfiles/h5diff_601.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -x' +############################# +$h5diff file1.h5 file2.h5 -x +-x is an invalid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_602.txt b/tools/testfiles/h5diff_602.txt new file mode 100644 index 0000000..d975b90 --- /dev/null +++ b/tools/testfiles/h5diff_602.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d g1/dset3 g1/dset4 +<-d g1/dset3> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_603.txt b/tools/testfiles/h5diff_603.txt new file mode 100644 index 0000000..8485c70 --- /dev/null +++ b/tools/testfiles/h5diff_603.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d -4 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d -4 g1/dset3 g1/dset4 +<-d -4> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_604.txt b/tools/testfiles/h5diff_604.txt new file mode 100644 index 0000000..ca17431 --- /dev/null +++ b/tools/testfiles/h5diff_604.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 0 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 0 g1/dset3 g1/dset4 +<-d 0> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_605.txt b/tools/testfiles/h5diff_605.txt new file mode 100644 index 0000000..160a638 --- /dev/null +++ b/tools/testfiles/h5diff_605.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d u g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d u g1/dset3 g1/dset4 +<-d u> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_606.txt b/tools/testfiles/h5diff_606.txt new file mode 100644 index 0000000..7e8da85 --- /dev/null +++ b/tools/testfiles/h5diff_606.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 0x1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 0x1 g1/dset3 g1/dset4 +<-d 0x1> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_607.txt b/tools/testfiles/h5diff_607.txt new file mode 100644 index 0000000..0cdd240 --- /dev/null +++ b/tools/testfiles/h5diff_607.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 1 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +[ 1 1 ] 100 80 20 +[ 2 0 ] 100 140 40 +[ 2 1 ] 100 200 100 +6 differences found + + diff --git a/tools/testfiles/h5diff_608.txt b/tools/testfiles/h5diff_608.txt new file mode 100644 index 0000000..a93ba06 --- /dev/null +++ b/tools/testfiles/h5diff_608.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 1 -d 2 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 1 -d 2 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +[ 1 1 ] 100 80 20 +[ 2 0 ] 100 140 40 +[ 2 1 ] 100 200 100 +6 differences found + + diff --git a/tools/testfiles/h5diff_609.txt b/tools/testfiles/h5diff_609.txt new file mode 100644 index 0000000..4856c70 --- /dev/null +++ b/tools/testfiles/h5diff_609.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 200 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 200 g1/dset3 g1/dset4 +Comparing with +0 differences found + + diff --git a/tools/testfiles/h5diff_610.txt b/tools/testfiles/h5diff_610.txt new file mode 100644 index 0000000..0cdd240 --- /dev/null +++ b/tools/testfiles/h5diff_610.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -d 1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -d 1 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +[ 1 1 ] 100 80 20 +[ 2 0 ] 100 140 40 +[ 2 1 ] 100 200 100 +6 differences found + + diff --git a/tools/testfiles/h5diff_611.txt b/tools/testfiles/h5diff_611.txt new file mode 100644 index 0000000..c162c8e --- /dev/null +++ b/tools/testfiles/h5diff_611.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p g1/dset3 g1/dset4 +<-p g1/dset3> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_612.txt b/tools/testfiles/h5diff_612.txt new file mode 100644 index 0000000..45f640d --- /dev/null +++ b/tools/testfiles/h5diff_612.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p -4 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p -4 g1/dset3 g1/dset4 +-4 is an invalid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_613.txt b/tools/testfiles/h5diff_613.txt new file mode 100644 index 0000000..f25bad0 --- /dev/null +++ b/tools/testfiles/h5diff_613.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0 g1/dset3 g1/dset4 +<-p 0> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_614.txt b/tools/testfiles/h5diff_614.txt new file mode 100644 index 0000000..c8b03a6 --- /dev/null +++ b/tools/testfiles/h5diff_614.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p u g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p u g1/dset3 g1/dset4 +<-p u> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_615.txt b/tools/testfiles/h5diff_615.txt new file mode 100644 index 0000000..9b8826b --- /dev/null +++ b/tools/testfiles/h5diff_615.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0x1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0x1 g1/dset3 g1/dset4 +<-p 0x1> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_616.txt b/tools/testfiles/h5diff_616.txt new file mode 100644 index 0000000..576a7a9 --- /dev/null +++ b/tools/testfiles/h5diff_616.txt @@ -0,0 +1,12 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0.21 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0.21 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference relative +------------------------------------------------------------------------ +[ 2 0 ] 100 140 40 0.4 +[ 2 1 ] 100 200 100 1 +2 differences found + + diff --git a/tools/testfiles/h5diff_617.txt b/tools/testfiles/h5diff_617.txt new file mode 100644 index 0000000..1a2e58a --- /dev/null +++ b/tools/testfiles/h5diff_617.txt @@ -0,0 +1,12 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0.21 -p 0.22 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0.21 -p 0.22 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference relative +------------------------------------------------------------------------ +[ 2 0 ] 100 140 40 0.4 +[ 2 1 ] 100 200 100 1 +2 differences found + + diff --git a/tools/testfiles/h5diff_618.txt b/tools/testfiles/h5diff_618.txt new file mode 100644 index 0000000..fc74bc0 --- /dev/null +++ b/tools/testfiles/h5diff_618.txt @@ -0,0 +1,8 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 2 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 2 g1/dset3 g1/dset4 +Comparing with +0 differences found + + diff --git a/tools/testfiles/h5diff_619.txt b/tools/testfiles/h5diff_619.txt new file mode 100644 index 0000000..22b60084 --- /dev/null +++ b/tools/testfiles/h5diff_619.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -p 0.005 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -p 0.005 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference relative +------------------------------------------------------------------------ +[ 0 0 ] 100 110 10 0.1 +[ 0 1 ] 110 100 10 0.09090909091 +[ 1 0 ] 100 90 10 0.1 +[ 1 1 ] 100 80 20 0.2 +[ 2 0 ] 100 140 40 0.4 +[ 2 1 ] 100 200 100 1 +6 differences found + + diff --git a/tools/testfiles/h5diff_620.txt b/tools/testfiles/h5diff_620.txt new file mode 100644 index 0000000..2120af4 --- /dev/null +++ b/tools/testfiles/h5diff_620.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n g1/dset3 g1/dset4 +<-n g1/dset3> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_621.txt b/tools/testfiles/h5diff_621.txt new file mode 100644 index 0000000..00ff78f --- /dev/null +++ b/tools/testfiles/h5diff_621.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n -4 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n -4 g1/dset3 g1/dset4 +-4 is an invalid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_622.txt b/tools/testfiles/h5diff_622.txt new file mode 100644 index 0000000..2f08080 --- /dev/null +++ b/tools/testfiles/h5diff_622.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 0 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 0 g1/dset3 g1/dset4 +<-n 0> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_623.txt b/tools/testfiles/h5diff_623.txt new file mode 100644 index 0000000..ebe7b3d --- /dev/null +++ b/tools/testfiles/h5diff_623.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n u g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n u g1/dset3 g1/dset4 +<-n u> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_624.txt b/tools/testfiles/h5diff_624.txt new file mode 100644 index 0000000..8430e1b --- /dev/null +++ b/tools/testfiles/h5diff_624.txt @@ -0,0 +1,39 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 0x1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 0x1 g1/dset3 g1/dset4 +<-n 0x1> is not a valid option +Usage: h5diff file1 file2 [OPTIONS] [obj1[obj2]] + +file1 File name of the first HDF5 file +file2 File name of the second HDF5 file +[obj1] Name of an HDF5 object, in absolute path +[obj2] Name of an HDF5 object, in absolute path +[OPTIONS] are: +[-h] Print out this information +[-r] Print only what objects differ, not the differences +[-n count] Print difference up to count number +[-d delta] Print difference when it is greater than limit delta +[-p relative] Print difference when it is greater than a relative error + +Items in [] are optional +[obj1] and [obj1] are HDF5 objects (datasets, groups or datatypes) +The 'count' value must be a positive integer +The 'delta' and 'relative' values must be positive numbers +The -d compare criteria is |a - b| > delta +The -p compare criteria is |1 - b/a| > relative + +Examples: + +1) h5diff file1 file2 /a/b /a/c + + Compares object '/a/b' in file1 with '/a/c' in file2 + +2) h5diff file1 file2 /a/b + + Compares object '/a/b' in both files + +3) h5diff file1 file2 + + Compares all objects in both files + diff --git a/tools/testfiles/h5diff_625.txt b/tools/testfiles/h5diff_625.txt new file mode 100644 index 0000000..d2684d3 --- /dev/null +++ b/tools/testfiles/h5diff_625.txt @@ -0,0 +1,12 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 2 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 2 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +2 differences found + + diff --git a/tools/testfiles/h5diff_626.txt b/tools/testfiles/h5diff_626.txt new file mode 100644 index 0000000..a18e823 --- /dev/null +++ b/tools/testfiles/h5diff_626.txt @@ -0,0 +1,13 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 2 -n 3 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 2 -n 3 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +3 differences found + + diff --git a/tools/testfiles/h5diff_627.txt b/tools/testfiles/h5diff_627.txt new file mode 100644 index 0000000..b67afc5 --- /dev/null +++ b/tools/testfiles/h5diff_627.txt @@ -0,0 +1,16 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 200 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 200 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +[ 0 1 ] 110 100 10 +[ 1 0 ] 100 90 10 +[ 1 1 ] 100 80 20 +[ 2 0 ] 100 140 40 +[ 2 1 ] 100 200 100 +6 differences found + + diff --git a/tools/testfiles/h5diff_628.txt b/tools/testfiles/h5diff_628.txt new file mode 100644 index 0000000..891c3bb --- /dev/null +++ b/tools/testfiles/h5diff_628.txt @@ -0,0 +1,11 @@ +############################# +Expected output for 'h5diff file1.h5 file2.h5 -n 1 g1/dset3 g1/dset4' +############################# +$h5diff file1.h5 file2.h5 -n 1 g1/dset3 g1/dset4 +Comparing with +position dset3 dset4 difference +------------------------------------------------------------ +[ 0 0 ] 100 110 10 +1 differences found + + diff --git a/tools/testfiles/h5diff_629.txt b/tools/testfiles/h5diff_629.txt new file mode 100644 index 0000000..51a825f --- /dev/null +++ b/tools/testfiles/h5diff_629.txt @@ -0,0 +1,5 @@ +############################# +Expected output for 'h5diff file1.h6 file2.h6' +############################# +$h5diff file1.h6 file2.h6 +h5diff: file1.h6: No such file or directory -- cgit v0.12