diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-13 23:45:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-13 23:45:13 (GMT) |
commit | a5662c497884c2d182294b9aceabe3cbded28358 (patch) | |
tree | 60ca9a2ef9a3948f7f62773f2f52e6cc4c7a7da8 /tools/testfiles | |
parent | c6b3059a92b61a119da49c04fbdcd54545d95242 (diff) | |
download | hdf5-a5662c497884c2d182294b9aceabe3cbded28358.zip hdf5-a5662c497884c2d182294b9aceabe3cbded28358.tar.gz hdf5-a5662c497884c2d182294b9aceabe3cbded28358.tar.bz2 |
[svn-r13294] Description:
Add empty & "full" groups to source HDF5 file and test copying them.
Test renaming objects during copy
Test specifying root group path for source & destination objects
Tested on:
Linux/32 2.6 (chicago)
Too minor to require more tests
Diffstat (limited to 'tools/testfiles')
-rw-r--r-- | tools/testfiles/h5copytst.a.out.ls | 144 | ||||
-rw-r--r-- | tools/testfiles/h5copytst.b.out.ls | 185 | ||||
-rw-r--r-- | tools/testfiles/h5copytst.h5 | bin | 13696 -> 22072 bytes |
3 files changed, 322 insertions, 7 deletions
diff --git a/tools/testfiles/h5copytst.a.out.ls b/tools/testfiles/h5copytst.a.out.ls index 90b5dba..73c67d6 100644 --- a/tools/testfiles/h5copytst.a.out.ls +++ b/tools/testfiles/h5copytst.a.out.ls @@ -5,20 +5,20 @@ Opened "../testfiles/h5copytst.a.out.h5" with sec2 driver. /chunk Dataset {6/6} Location: 1:6216 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Chunks: {2} 8 bytes Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization Type: native int /compact Dataset {6/6} Location: 1:6344 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization Type: native int /compound Dataset {2/2} Location: 1:8528 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization Type: struct { "str1" +0 20-byte null-terminated ASCII string @@ -27,29 +27,159 @@ Opened "../testfiles/h5copytst.a.out.h5" with sec2 driver. /compressed Dataset {6/6} Location: 1:12888 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Chunks: {2} 8 bytes Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization Filter-0: deflate-1 OPT {1} Type: native int +/grp_dsets Group + Location: 1:31584 + Links: 1 +/grp_dsets/chunk Dataset {6/6} + Location: 1:33720 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/compact Dataset {6/6} + Location: 1:34176 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/compound Dataset {2/2} + Location: 1:34312 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/grp_dsets/compressed Dataset {6/6} + Location: 1:34528 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization + Filter-0: deflate-1 OPT {1} + Type: native int +/grp_dsets/named_vl Dataset {2/2} + Location: 1:34744 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: shared-1:34696 variable length of + native int +/grp_dsets/nested_vl Dataset {2/2} + Location: 1:43216 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: variable length of + variable length of + native int +/grp_dsets/simple Dataset {6/6} + Location: 1:43360 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/vl Type + Location: 1:34696 + Links: 2 + Type: shared-1:34696 variable length of + native int +/grp_empty Group + Location: 1:30464 + Links: 1 +/grp_rename Group + Location: 1:44240 + Links: 1 +/grp_rename/chunk Dataset {6/6} + Location: 1:46376 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/compact Dataset {6/6} + Location: 1:46832 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/compound Dataset {2/2} + Location: 1:46968 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/grp_rename/compressed Dataset {6/6} + Location: 1:47184 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization + Filter-0: deflate-1 OPT {1} + Type: native int +/grp_rename/named_vl Dataset {2/2} + Location: 1:47400 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: shared-1:47352 variable length of + native int +/grp_rename/nested_vl Dataset {2/2} + Location: 1:55872 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: variable length of + variable length of + native int +/grp_rename/simple Dataset {6/6} + Location: 1:56016 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/vl Type + Location: 1:47352 + Links: 2 + Type: shared-1:47352 variable length of + native int /named_vl Dataset {2/2} Location: 1:13104 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization Type: shared-1:13056 variable length of native int /nested_vl Dataset {2/2} Location: 1:27392 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization Type: variable length of variable length of native int +/rename Dataset {2/2} + Location: 1:29584 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes /simple Dataset {6/6} Location: 1:808 Links: 1 - Modified: 2006-10-17 15:55:17 CDT + Modified: 2007-02-13 18:36:15 CST Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization Type: native int diff --git a/tools/testfiles/h5copytst.b.out.ls b/tools/testfiles/h5copytst.b.out.ls new file mode 100644 index 0000000..df18eac --- /dev/null +++ b/tools/testfiles/h5copytst.b.out.ls @@ -0,0 +1,185 @@ +############################# +Expected output for 'h5ls ../testfiles/h5copytst.b.out.h5' +############################# +Opened "../testfiles/h5copytst.b.out.h5" with sec2 driver. +/chunk Dataset {6/6} + Location: 1:6216 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/compact Dataset {6/6} + Location: 1:6344 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/compound Dataset {2/2} + Location: 1:8528 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/compressed Dataset {6/6} + Location: 1:12888 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization + Filter-0: deflate-1 OPT {1} + Type: native int +/grp_dsets Group + Location: 1:31584 + Links: 1 +/grp_dsets/chunk Dataset {6/6} + Location: 1:33720 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/compact Dataset {6/6} + Location: 1:34176 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/compound Dataset {2/2} + Location: 1:34312 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/grp_dsets/compressed Dataset {6/6} + Location: 1:34528 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization + Filter-0: deflate-1 OPT {1} + Type: native int +/grp_dsets/named_vl Dataset {2/2} + Location: 1:34744 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: shared-1:34696 variable length of + native int +/grp_dsets/nested_vl Dataset {2/2} + Location: 1:43216 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: variable length of + variable length of + native int +/grp_dsets/simple Dataset {6/6} + Location: 1:43360 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_dsets/vl Type + Location: 1:34696 + Links: 2 + Type: shared-1:34696 variable length of + native int +/grp_empty Group + Location: 1:30464 + Links: 1 +/grp_rename Group + Location: 1:44240 + Links: 1 +/grp_rename/chunk Dataset {6/6} + Location: 1:46376 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/compact Dataset {6/6} + Location: 1:46832 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/compound Dataset {2/2} + Location: 1:46968 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/grp_rename/compressed Dataset {6/6} + Location: 1:47184 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Chunks: {2} 8 bytes + Storage: 24 logical bytes, 42 allocated bytes, 57.14% utilization + Filter-0: deflate-1 OPT {1} + Type: native int +/grp_rename/named_vl Dataset {2/2} + Location: 1:47400 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: shared-1:47352 variable length of + native int +/grp_rename/nested_vl Dataset {2/2} + Location: 1:55872 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: variable length of + variable length of + native int +/grp_rename/simple Dataset {6/6} + Location: 1:56016 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int +/grp_rename/vl Type + Location: 1:47352 + Links: 2 + Type: shared-1:47352 variable length of + native int +/named_vl Dataset {2/2} + Location: 1:13104 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: shared-1:13056 variable length of + native int +/nested_vl Dataset {2/2} + Location: 1:27392 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 16 logical bytes, 32 allocated bytes, 50.00% utilization + Type: variable length of + variable length of + native int +/rename Dataset {2/2} + Location: 1:29584 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: struct { + "str1" +0 20-byte null-terminated ASCII string + "str2" +20 20-byte null-terminated ASCII string + } 40 bytes +/simple Dataset {6/6} + Location: 1:808 + Links: 1 + Modified: 2007-02-13 18:36:15 CST + Storage: 24 logical bytes, 24 allocated bytes, 100.00% utilization + Type: native int diff --git a/tools/testfiles/h5copytst.h5 b/tools/testfiles/h5copytst.h5 Binary files differindex b0a04df..09f2bb9 100644 --- a/tools/testfiles/h5copytst.h5 +++ b/tools/testfiles/h5copytst.h5 |