summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-11-18 19:41:59 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-11-18 19:41:59 (GMT)
commit9070897283f3e7ed00bc0be4f5719b32d0b97497 (patch)
treed56fbf60ce410d244ce0675ba2003b624d2bb2ff
parente52f682ced87729e2a1ea47320aab69d3bc16b67 (diff)
downloadhdf5-9070897283f3e7ed00bc0be4f5719b32d0b97497.zip
hdf5-9070897283f3e7ed00bc0be4f5719b32d0b97497.tar.gz
hdf5-9070897283f3e7ed00bc0be4f5719b32d0b97497.tar.bz2
[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.
-rw-r--r--tools/testfiles/tall-2B.ddl65
1 files changed, 65 insertions, 0 deletions
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 ) }
+ }
+ }
+}
+}