diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-12-05 20:16:50 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-12-05 20:16:50 (GMT) |
commit | 960b190655c735750b825aaaf92fc1c8051e0644 (patch) | |
tree | c50dc8d434e78a865b4bb7072a384fd3cf1d50a0 /tools | |
parent | f1efcf9d7a931460fd2a297139a7828bedf8a999 (diff) | |
download | hdf5-960b190655c735750b825aaaf92fc1c8051e0644.zip hdf5-960b190655c735750b825aaaf92fc1c8051e0644.tar.gz hdf5-960b190655c735750b825aaaf92fc1c8051e0644.tar.bz2 |
[svn-r21812] HDFFV-2567 - added test for be generated files with at least 9 attributes at root
Tested: local linux
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tools/testfiles/tattr-4_be.ddl | 119 | ||||
-rw-r--r-- | tools/testfiles/tattr4_be.h5 | bin | 0 -> 3124 bytes |
3 files changed, 125 insertions, 0 deletions
diff --git a/tools/h5dump/CMakeLists.txt b/tools/h5dump/CMakeLists.txt index 2132c92..676bace 100644 --- a/tools/h5dump/CMakeLists.txt +++ b/tools/h5dump/CMakeLists.txt @@ -63,6 +63,7 @@ IF (BUILD_TESTING) tattr-1.ddl tattr-2.ddl tattr-3.ddl + tattr-4_be.ddl tattrreg.ddl tattrregR.ddl tbin1.ddl @@ -245,6 +246,7 @@ IF (BUILD_TESTING) tarray8.h5 tattr.h5 tattr2.h5 + tattr4_be.h5 tattrreg.h5 tbigdims.h5 tbinary.h5 @@ -709,6 +711,8 @@ IF (BUILD_TESTING) tattr-2.out.err tattr-3.out tattr-3.out.err + tattr-4_be.out + tattr-4_be.out.err tattrreg.out tattrreg.out.err tattrregR.out @@ -924,6 +928,8 @@ IF (BUILD_TESTING) ADD_H5_TEST (tattr-3 1 --header -a /attr2 --attribute=/attr tattr.h5) # test for displaying attributes in shared datatype (also in group and dataset) ADD_H5_TEST (tnamed_dtype_attr 0 tnamed_dtype_attr.h5) + # test for displaying at least 9 attributes on root from a be machine + ADD_H5_TEST (tattr-4_be 0 tattr4_be.h5) # test for displaying soft links and user-defined links ADD_H5_TEST (tslink-1 0 tslink.h5) diff --git a/tools/testfiles/tattr-4_be.ddl b/tools/testfiles/tattr-4_be.ddl new file mode 100644 index 0000000..9f2c547 --- /dev/null +++ b/tools/testfiles/tattr-4_be.ddl @@ -0,0 +1,119 @@ +HDF5 "tattr4_be.h5" { +GROUP "/" { + ATTRIBUTE "attr0" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr1" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr2" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr3" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr4" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr5" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr6" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr7" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + ATTRIBUTE "attr8" { + DATATYPE H5T_STRING { + STRSIZE 4; + STRPAD H5T_STR_NULLTERM; + CSET H5T_CSET_ASCII; + CTYPE H5T_C_S1; + } + DATASPACE SCALAR + DATA { + (0): "1234" + } + } + DATASET "data" { + DATATYPE H5T_IEEE_F32BE + DATASPACE SIMPLE { ( 1 ) / ( 1 ) } + DATA { + (0): 0 + } + } +} +} diff --git a/tools/testfiles/tattr4_be.h5 b/tools/testfiles/tattr4_be.h5 Binary files differnew file mode 100644 index 0000000..a464ac6 --- /dev/null +++ b/tools/testfiles/tattr4_be.h5 |