From 9070897283f3e7ed00bc0be4f5719b32d0b97497 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 18 Nov 2004 14:41:59 -0500 Subject: [svn-r9543] Purpose: Bug fix (#264) Description: h5dump did not print attribute data in ASCII format when -r is used. Solution: Added the ability to print in ASCII for Attributes Data also. Added a test for printing Attributes with -r option. tall-2B.ddl is the standard output for printing attributes with -r option. Platforms tested: H5committested. Also in heping. Misc. update: Update MANIFEST. --- tools/testfiles/tall-2B.ddl | 65 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tools/testfiles/tall-2B.ddl diff --git a/tools/testfiles/tall-2B.ddl b/tools/testfiles/tall-2B.ddl new file mode 100644 index 0000000..4969987 --- /dev/null +++ b/tools/testfiles/tall-2B.ddl @@ -0,0 +1,65 @@ +############################# +Expected output for 'h5dump -A -r tall.h5' +############################# +HDF5 "tall.h5" { +GROUP "/" { + ATTRIBUTE "attr1" { + DATATYPE H5T_STD_I8BE + DATASPACE SIMPLE { ( 10 ) / ( 10 ) } + DATA { + "abcdefghi\000" + } + } + ATTRIBUTE "attr2" { + DATATYPE H5T_STD_I32BE + DATASPACE SIMPLE { ( 2, 2 ) / ( 2, 2 ) } + DATA { + (0,0): 0, 1, + (1,0): 2, 3 + } + } + GROUP "g1" { + GROUP "g1.1" { + DATASET "dset1.1.1" { + DATATYPE H5T_STD_I32BE + DATASPACE SIMPLE { ( 10, 10 ) / ( 10, 10 ) } + ATTRIBUTE "attr1" { + DATATYPE H5T_STD_I8BE + DATASPACE SIMPLE { ( 27 ) / ( 27 ) } + DATA { + "1st attribute of dset1.1.1\000" + } + } + ATTRIBUTE "attr2" { + DATATYPE H5T_STD_I8BE + DATASPACE SIMPLE { ( 27 ) / ( 27 ) } + DATA { + "2nd attribute of dset1.1.1\000" + } + } + } + DATASET "dset1.1.2" { + DATATYPE H5T_STD_I32BE + DATASPACE SIMPLE { ( 20 ) / ( 20 ) } + } + } + GROUP "g1.2" { + GROUP "g1.2.1" { + SOFTLINK "slink" { + LINKTARGET "somevalue" + } + } + } + } + GROUP "g2" { + DATASET "dset2.1" { + DATATYPE H5T_IEEE_F32BE + DATASPACE SIMPLE { ( 10 ) / ( 10 ) } + } + DATASET "dset2.2" { + DATATYPE H5T_IEEE_F32BE + DATASPACE SIMPLE { ( 3, 5 ) / ( 3, 5 ) } + } + } +} +} -- cgit v0.12