summaryrefslogtreecommitdiffstats
path: root/tools/testfiles
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-03 19:20:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-03 19:20:18 (GMT)
commitb5809e0780b136f7062b1aaa27c793ef4399996b (patch)
tree3731540041283b03dc22aad35a585da559a838d5 /tools/testfiles
parentcf4ff99bdfa213a17e666a587a27b0314ac353c0 (diff)
downloadhdf5-b5809e0780b136f7062b1aaa27c793ef4399996b.zip
hdf5-b5809e0780b136f7062b1aaa27c793ef4399996b.tar.gz
hdf5-b5809e0780b136f7062b1aaa27c793ef4399996b.tar.bz2
[svn-r3230] Purpose:
Extra testing Description: Added tests to dump empty datasets to the h5dump and h5ls testing. Platforms tested: FreeBSD 4.2 (hawkwind)
Diffstat (limited to 'tools/testfiles')
-rw-r--r--tools/testfiles/tempty.ddl65
-rw-r--r--tools/testfiles/tempty.h5bin0 -> 4304 bytes
-rw-r--r--tools/testfiles/tempty.ls18
3 files changed, 83 insertions, 0 deletions
diff --git a/tools/testfiles/tempty.ddl b/tools/testfiles/tempty.ddl
new file mode 100644
index 0000000..7751725
--- /dev/null
+++ b/tools/testfiles/tempty.ddl
@@ -0,0 +1,65 @@
+#############################
+Expected output for 'h5dump tempty.h5'
+#############################
+HDF5 "tempty.h5" {
+GROUP "/" {
+ DATASET "Dataset1.0" {
+ DATATYPE H5T_VLEN { H5T_STD_I32LE}
+ DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
+ DATA {
+ (), (), (), ()
+ }
+ }
+ DATASET "Dataset2.0" {
+ DATATYPE H5T_STD_I32LE
+ DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
+ DATA {
+ 0, 0, 0, 0
+ }
+ }
+ DATASET "Dataset3.0" {
+ DATATYPE H5T_IEEE_F32LE
+ DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
+ DATA {
+ 0, 0, 0, 0
+ }
+ }
+ DATASET "Dataset4.0" {
+ DATATYPE H5T_ARRAY { [4] H5T_STD_I32LE }
+ DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
+ DATA {
+ [ 0, 0, 0, 0 ], [ 0, 0, 0, 0 ], [ 0, 0, 0, 0 ], [ 0, 0, 0, 0 ]
+ }
+ }
+ DATASET "Dataset5.0" {
+ DATATYPE H5T_COMPOUND {
+ H5T_STD_I32LE "a";
+ H5T_IEEE_F32LE "b";
+ H5T_STD_I8LE "c";
+ }
+ DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
+ DATA {
+ {
+ 0,
+ 0,
+ 0
+ },
+ {
+ 0,
+ 0,
+ 0
+ },
+ {
+ 0,
+ 0,
+ 0
+ },
+ {
+ 0,
+ 0,
+ 0
+ }
+ }
+ }
+}
+}
diff --git a/tools/testfiles/tempty.h5 b/tools/testfiles/tempty.h5
new file mode 100644
index 0000000..ad4c2c4
--- /dev/null
+++ b/tools/testfiles/tempty.h5
Binary files differ
diff --git a/tools/testfiles/tempty.ls b/tools/testfiles/tempty.ls
new file mode 100644
index 0000000..96ea64a
--- /dev/null
+++ b/tools/testfiles/tempty.ls
@@ -0,0 +1,18 @@
+#############################
+ output for 'h5ls -w80 -d tempty.h5'
+#############################
+Dataset1.0 Dataset {4}
+ Data:
+ (0) (), (), (), ()
+Dataset2.0 Dataset {4}
+ Data:
+ (0) 0, 0, 0, 0
+Dataset3.0 Dataset {4}
+ Data:
+ (0) 0, 0, 0, 0
+Dataset4.0 Dataset {4}
+ Data:
+ (0) [0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]
+Dataset5.0 Dataset {4}
+ Data:
+ (0) {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}