diff options
-rw-r--r-- | tools/testfiles/tnamed_dtype_attr.ddl | 20 | ||||
-rw-r--r-- | tools/testfiles/tnamed_dtype_attr.h5 | bin | 0 -> 1656 bytes | |||
-rw-r--r-- | tools/testfiles/tnamed_dtype_attr.h5.xml | 43 |
3 files changed, 63 insertions, 0 deletions
diff --git a/tools/testfiles/tnamed_dtype_attr.ddl b/tools/testfiles/tnamed_dtype_attr.ddl new file mode 100644 index 0000000..71b9241 --- /dev/null +++ b/tools/testfiles/tnamed_dtype_attr.ddl @@ -0,0 +1,20 @@ +############################# +Expected output for 'h5dump -A tnamed_dtype_attr.h5' +############################# +HDF5 "tnamed_dtype_attr.h5" { +GROUP "/" { + DATASET "Dataset" { + DATATYPE "/Datatype" + DATASPACE SCALAR + ATTRIBUTE "Attribute" { + DATATYPE "/Datatype" + DATASPACE SCALAR + DATA { + 8 + } + } + } + DATATYPE "Datatype" H5T_STD_I32LE; + +} +} diff --git a/tools/testfiles/tnamed_dtype_attr.h5 b/tools/testfiles/tnamed_dtype_attr.h5 Binary files differnew file mode 100644 index 0000000..4e136e5 --- /dev/null +++ b/tools/testfiles/tnamed_dtype_attr.h5 diff --git a/tools/testfiles/tnamed_dtype_attr.h5.xml b/tools/testfiles/tnamed_dtype_attr.h5.xml new file mode 100644 index 0000000..38700db --- /dev/null +++ b/tools/testfiles/tnamed_dtype_attr.h5.xml @@ -0,0 +1,43 @@ +############################# +Expected output for 'h5dump --xml tnamed_dtype_attr.h5' +############################# +<?xml version="1.0" encoding="UTF-8"?> +<hdf5:HDF5-File xmlns:hdf5="http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hdf.ncsa.uiuc.edu/DTDs/HDF5File http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.xsd"> +<hdf5:RootGroup OBJ-XID="xid_928" H5Path="/"> + <hdf5:NamedDataType Name="Datatype" OBJ-XID="xid_976" H5Path="/Datatype" Parents="xid_928" H5ParentPaths="/"> + <hdf5:DataType> + <hdf5:AtomicType> + <hdf5:IntegerType ByteOrder="LE" Sign="true" Size="4" /> + </hdf5:AtomicType> + </hdf5:DataType> + </hdf5:NamedDataType> + <hdf5:Dataset Name="Dataset" OBJ-XID="xid_1384" H5Path= "/Dataset" Parents="xid_928" H5ParentPaths="/"> + <hdf5:StorageLayout> + <hdf5:ContiguousLayout/> + </hdf5:StorageLayout> + <hdf5:FillValueInfo FillTime="FillIfSet" AllocationTime="Late"> + <hdf5:FillValue> + <hdf5:NoFill/> + </hdf5:FillValue> + </hdf5:FillValueInfo> + <hdf5:Dataspace> + <hdf5:ScalarDataspace /> + </hdf5:Dataspace> + <hdf5:NamedDataTypePtr OBJ-XID="xid_976" H5Path="/Datatype" /> + <hdf5:Attribute Name="Attribute"> + <hdf5:Dataspace> + <hdf5:ScalarDataspace /> + </hdf5:Dataspace> + <hdf5:NamedDataTypePtr OBJ-XID="xid_976" H5Path="/Datatype" /> + <hdf5:Data> + <hdf5:DataFromFile> + 8 + </hdf5:DataFromFile> + </hdf5:Data> + </hdf5:Attribute> + <hdf5:Data> + <hdf5:NoData/> + </hdf5:Data> + </hdf5:Dataset> +</hdf5:RootGroup> +</hdf5:HDF5-File> |