diff options
Diffstat (limited to 'tools/testfiles')
-rw-r--r-- | tools/testfiles/tdatareg.ddl | 28 | ||||
-rw-r--r-- | tools/testfiles/tenum.ddl | 30 | ||||
-rw-r--r-- | tools/testfiles/tobjref.ddl | 32 |
3 files changed, 90 insertions, 0 deletions
diff --git a/tools/testfiles/tdatareg.ddl b/tools/testfiles/tdatareg.ddl new file mode 100644 index 0000000..7d5b46a --- /dev/null +++ b/tools/testfiles/tdatareg.ddl @@ -0,0 +1,28 @@ +HDF5 "tdatareg.h5" { +GROUP "/" { + DATASET "Dataset1" { + DATATYPE { H5T_REFERENCE } + DATASPACE { SIMPLE ( 4 ) / ( 4 ) } + DATA { + DATASET 0:744 {(2,2)-(7,7)}, DATASET 0:744 {(6,9), (2,2), (8,4), (1,6), + (2,8), (3,2), (0,4), (9,0), (7,1), (3,3)}, NULL, NULL + } + } + DATASET "Dataset2" { + DATATYPE { H5T_STD_U8LE } + DATASPACE { SIMPLE ( 10, 10 ) / ( 10, 10 ) } + DATA { + 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, + 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, + 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, + 90, 93, 96, 99, 102, 105, 108, 111, 114, 117, + 120, 123, 126, 129, 132, 135, 138, 141, 144, 147, + 150, 153, 156, 159, 162, 165, 168, 171, 174, 177, + 180, 183, 186, 189, 192, 195, 198, 201, 204, 207, + 210, 213, 216, 219, 222, 225, 228, 231, 234, 237, + 240, 243, 246, 249, 252, 255, 2, 5, 8, 11, + 14, 17, 20, 23, 26, 29, 32, 35, 38, 41 + } + } +} +} diff --git a/tools/testfiles/tenum.ddl b/tools/testfiles/tenum.ddl new file mode 100644 index 0000000..8f45f43 --- /dev/null +++ b/tools/testfiles/tenum.ddl @@ -0,0 +1,30 @@ +HDF5 "tenum.h5" { +GROUP "/" { + DATATYPE "enum normal" { + H5T_ENUM + { H5T_STD_I32BE; + "RED" 0; + "GREEN" 1; + "BLUE" 2; + "WHITE" 3; + "BLACK" 4; + } + } + DATASET "table" { + DATATYPE { H5T_ENUM + { H5T_STD_I32BE; + "RED" 0; + "GREEN" 1; + "BLUE" 2; + "WHITE" 3; + "BLACK" 4; + } + } + DATASPACE { SIMPLE ( 20 ) / ( 20 ) } + DATA { + RED, GREEN, BLUE, GREEN, WHITE, WHITE, BLACK, GREEN, BLUE, RED, RED, + BLUE, GREEN, BLACK, WHITE, RED, WHITE, GREEN, GREEN, BLUE + } + } +} +} diff --git a/tools/testfiles/tobjref.ddl b/tools/testfiles/tobjref.ddl new file mode 100644 index 0000000..7ae36f6 --- /dev/null +++ b/tools/testfiles/tobjref.ddl @@ -0,0 +1,32 @@ +HDF5 "tobjref.h5" { +GROUP "/" { + DATASET "Dataset3" { + DATATYPE { H5T_REFERENCE } + DATASPACE { SIMPLE ( 4 ) / ( 4 ) } + DATA { + DATASET 0:1696, DATASET 0:2152, GROUP 0:1320, DATATYPE 0:2268 + } + } + GROUP "Group1" { + DATASET "Dataset1" { + DATATYPE { H5T_STD_U32LE } + DATASPACE { SIMPLE ( 4 ) / ( 4 ) } + DATA { + 0, 50331648, 100663296, 150994944 + } + } + DATASET "Dataset2" { + DATATYPE { H5T_STD_U8LE } + DATASPACE { SIMPLE ( 4 ) / ( 4 ) } + DATA { + 0, 0, 0, 0 + } + } + DATATYPE "Datatype1" { + H5T_STD_I32BE "a"; + H5T_STD_I32BE "b"; + H5T_IEEE_F32BE "c"; + } + } +} +} |