summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/testfiles/tallfilters.ddl30
-rw-r--r--tools/testfiles/tfillalloc.ddl18
-rw-r--r--tools/testfiles/tfillincr.ddl18
-rw-r--r--tools/testfiles/tfilllate.ddl18
-rw-r--r--tools/testfiles/tindicesno.ddl32
-rw-r--r--tools/testfiles/tindicesyes.ddl32
-rw-r--r--tools/testfiles/tstringe.ddl17
7 files changed, 165 insertions, 0 deletions
diff --git a/tools/testfiles/tallfilters.ddl b/tools/testfiles/tallfilters.ddl
new file mode 100644
index 0000000..3d5833f
--- /dev/null
+++ b/tools/testfiles/tallfilters.ddl
@@ -0,0 +1,30 @@
+#############################
+Expected output for 'h5dump -H -p -d all tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "all" {
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ STORAGE_LAYOUT {
+ CHUNKED ( 10, 5 )
+ SIZE 458
+ }
+ FILTERS {
+ PREPROCESSING SHUFFLE
+ COMPRESSION SZIP {
+ PIXELS_PER_BLOCK 4
+ MODE HARDWARE
+ CODING ENTROPY
+ BYTE_ORDER LSB
+ HEADER RAW
+ }
+ COMPRESSION DEFLATE { LEVEL 5 }
+ CHECKSUM FLETCHER32
+ }
+ FILLVALUE {
+ FILL_TIME IFSET
+ ALLOC_TIME INCR
+ VALUE -99
+ }
+}
+}
diff --git a/tools/testfiles/tfillalloc.ddl b/tools/testfiles/tfillalloc.ddl
new file mode 100644
index 0000000..82fe21a
--- /dev/null
+++ b/tools/testfiles/tfillalloc.ddl
@@ -0,0 +1,18 @@
+#############################
+Expected output for 'h5dump -H -p -d fill_time_alloc tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "fill_time_alloc" {
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ STORAGE_LAYOUT {
+ CHUNKED ( 10, 5 )
+ SIZE 800
+ }
+ FILLVALUE {
+ FILL_TIME ALLOC
+ ALLOC_TIME INCR
+ VALUE -99
+ }
+}
+}
diff --git a/tools/testfiles/tfillincr.ddl b/tools/testfiles/tfillincr.ddl
new file mode 100644
index 0000000..f8df5a9
--- /dev/null
+++ b/tools/testfiles/tfillincr.ddl
@@ -0,0 +1,18 @@
+#############################
+Expected output for 'h5dump -H -p -d alloc_time_incr tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "alloc_time_incr" {
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ STORAGE_LAYOUT {
+ CHUNKED ( 10, 5 )
+ SIZE 800
+ }
+ FILLVALUE {
+ FILL_TIME IFSET
+ ALLOC_TIME INCR
+ VALUE -99
+ }
+}
+}
diff --git a/tools/testfiles/tfilllate.ddl b/tools/testfiles/tfilllate.ddl
new file mode 100644
index 0000000..6f8eafc
--- /dev/null
+++ b/tools/testfiles/tfilllate.ddl
@@ -0,0 +1,18 @@
+#############################
+Expected output for 'h5dump -H -p -d alloc_time_late tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "alloc_time_late" {
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ STORAGE_LAYOUT {
+ CHUNKED ( 10, 5 )
+ SIZE 800
+ }
+ FILLVALUE {
+ FILL_TIME IFSET
+ ALLOC_TIME LATE
+ VALUE -99
+ }
+}
+}
diff --git a/tools/testfiles/tindicesno.ddl b/tools/testfiles/tindicesno.ddl
new file mode 100644
index 0000000..4b8ff7d
--- /dev/null
+++ b/tools/testfiles/tindicesno.ddl
@@ -0,0 +1,32 @@
+#############################
+Expected output for 'h5dump -y -d compact tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "compact" {
+COMMENT "This is a dataset with compact storage"
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ DATA {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
+ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
+ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
+ 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
+ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
+ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
+ 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
+ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ 190, 191, 192, 193, 194, 195, 196, 197, 198, 199
+ }
+}
+}
diff --git a/tools/testfiles/tindicesyes.ddl b/tools/testfiles/tindicesyes.ddl
new file mode 100644
index 0000000..41d1c88
--- /dev/null
+++ b/tools/testfiles/tindicesyes.ddl
@@ -0,0 +1,32 @@
+#############################
+Expected output for 'h5dump -d compact tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "compact" {
+COMMENT "This is a dataset with compact storage"
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) }
+ DATA {
+ (0,0) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ (1,0) 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ (2,0) 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ (3,0) 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
+ (4,0) 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
+ (5,0) 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+ (6,0) 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
+ (7,0) 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ (8,0) 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
+ (9,0) 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ (10,0) 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
+ (11,0) 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
+ (12,0) 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
+ (13,0) 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
+ (14,0) 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
+ (15,0) 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+ (16,0) 160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
+ (17,0) 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
+ (18,0) 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+ (19,0) 190, 191, 192, 193, 194, 195, 196, 197, 198, 199
+ }
+}
+}
diff --git a/tools/testfiles/tstringe.ddl b/tools/testfiles/tstringe.ddl
new file mode 100644
index 0000000..4e97359
--- /dev/null
+++ b/tools/testfiles/tstringe.ddl
@@ -0,0 +1,17 @@
+#############################
+Expected output for 'h5dump -e -d string tfilters.h5'
+#############################
+HDF5 "tfilters.h5" {
+DATASET "string" {
+ DATATYPE H5T_STRING {
+ STRSIZE 73;
+ STRPAD H5T_STR_NULLTERM;
+ CSET H5T_CSET_ASCII;
+ CTYPE H5T_C_S1;
+ }
+ DATASPACE SIMPLE { ( 1 ) / ( 1 ) }
+ DATA {
+ (0) "quote \" backspace\b form feed\f new line\n tab\t new line\n carriage return\r"
+ }
+}
+}