summaryrefslogtreecommitdiffstats
path: root/tools/testfiles/tattr2.ls
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-06 20:07:03 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-07-06 20:07:03 (GMT)
commit4535e598f709e4d9bed0f5de1076d5e77b7441ab (patch)
tree31f79fe87fbda10d9af69d2a04eb9b7619021a44 /tools/testfiles/tattr2.ls
parente8337826c8f2a9baea10234370cbe7955edb6d0a (diff)
downloadhdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.zip
hdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.tar.gz
hdf5-4535e598f709e4d9bed0f5de1076d5e77b7441ab.tar.bz2
[svn-r8812] Purpose:
h5dump new tests Description: added new tests for the -p option, superblock, file contents, fill values, array indices. Solution: Platforms tested: linux AIX solaris Misc. update:
Diffstat (limited to 'tools/testfiles/tattr2.ls')
-rw-r--r--tools/testfiles/tattr2.ls293
1 files changed, 282 insertions, 11 deletions
diff --git a/tools/testfiles/tattr2.ls b/tools/testfiles/tattr2.ls
index 18f891f..b96c201 100644
--- a/tools/testfiles/tattr2.ls
+++ b/tools/testfiles/tattr2.ls
@@ -3,9 +3,9 @@
#############################
Opened "tattr2.h5" with sec2 driver.
dset Dataset {2/2}
- Attribute: string scalar
- Type: 17-byte null-terminated ASCII string
- Data: "string attribute"
+ Attribute: string {2}
+ Type: 2-byte null-terminated ASCII string
+ Data: "ab", "de"
Attribute: bitfield {2}
Type: 8-bit bitfield
Data: 0x01, 0x02
@@ -15,10 +15,10 @@ dset Dataset {2/2}
Data: 0x01, 0x02
Attribute: compound {2}
Type: struct {
- "a" +0 32-bit little-endian integer
- "b" +4 IEEE 32-bit little-endian float
- } 8 bytes
- Data: {1, 1}, {2, 2}
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data: {1, 2}, {3, 4}
Attribute: reference {2}
Type: object reference
Data: DATASET-1:976, DATASET-1:976
@@ -31,18 +31,289 @@ dset Dataset {2/2}
Attribute: vlen {2}
Type: variable length of
32-bit little-endian integer
- Data: (0), (10,11)
+ Data: (1), (2,3)
Attribute: array {2}
Type: [3] 32-bit little-endian integer
- Data: [1,1,1], [2,2,2]
+ Data: [1,2,3], [4,5,6]
Attribute: integer {2}
Type: 32-bit little-endian integer
- Data: 0, 0
+ Data: 1, 2
Attribute: float {2}
Type: IEEE 32-bit little-endian float
- Data: 0, 0
+ Data: 1, 2
+ Attribute: string2D {3, 2}
+ Type: 2-byte null-terminated ASCII string
+ Data:
+ (0,0) "ab", "cd", "ef", "gh", "ij", "kl"
+ Attribute: bitfield2D {3, 2}
+ Type: 8-bit bitfield
+ Data:
+ (0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
+ Attribute: opaque2D {3, 2}
+ Type: 1-byte opaque type
+ (tag = "1-byte opaque type")
+ Data:
+ (0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
+ Attribute: compound2D {3, 2}
+ Type: struct {
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data:
+ (0,0) {1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}, {11, 12}
+ Attribute: reference2D {3, 2}
+ Type: object reference
+ Data:
+ (0,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (2,0) DATASET-1:976, DATASET-1:976
+ Attribute: enum2D {3, 2}
+ Type: enum 32-bit little-endian integer {
+ RED = 0
+ GREEN = 1
+ }
+ Data:
+ (0,0) RED, RED, RED, RED, RED, RED
+ Attribute: vlen2D {3, 2}
+ Type: variable length of
+ 32-bit little-endian integer
+ Data:
+ (0,0) (0), (1), (2,3), (4,5), (6,7,8), (9,10,11)
+ Attribute: array2D {3, 2}
+ Type: [3] 32-bit little-endian integer
+ Data:
+ (0,0) [1,2,3], [4,5,6], [7,8,9], [10,11,12], [13,14,15], [16,17,18]
+ Attribute: integer2D {3, 2}
+ Type: 32-bit little-endian integer
+ Data:
+ (0,0) 1, 2, 3, 4, 5, 6
+ Attribute: float2D {3, 2}
+ Type: IEEE 32-bit little-endian float
+ Data:
+ (0,0) 1, 2, 3, 4, 5, 6
+ Attribute: string3D {4, 3, 2}
+ Type: 2-byte null-terminated ASCII string
+ Data:
+ (0,0,0) "ab", "cd", "ef", "gh", "ij", "kl", "mn", "pq", "rs", "tu",
+ (1,2,0) "vw", "xz", "AB", "CD", "EF", "GH", "IJ", "KL", "MN", "PQ",
+ (3,1,0) "RS", "TU", "VW", "XZ"
+ Attribute: bitfield3D {4, 3, 2}
+ Type: 8-bit bitfield
+ Data:
+ (0,0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
+ (1,2,0) 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
+ (3,1,0) 0x15, 0x16, 0x17, 0x18
+ Attribute: opaque3D {4, 3, 2}
+ Type: 1-byte opaque type
+ (tag = "1-byte opaque type")
+ Data:
+ (0,0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
+ (1,2,0) 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
+ (3,1,0) 0x15, 0x16, 0x17, 0x18
+ Attribute: compound3D {4, 3, 2}
+ Type: struct {
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data:
+ (0,0,0) {1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}, {11, 12}, {13,
+ (1,0,0) 14}, {15, 16}, {17, 18}, {19, 20}, {21, 22}, {23, 24},
+ (2,0,0) {25, 26}, {27, 28}, {29, 30}, {31, 32}, {33, 34}, {35, 36},
+ (3,0,0) {37, 38}, {39, 40}, {41, 42}, {43, 44}, {45, 46}, {47, 48}
+ Attribute: reference3D {4, 3, 2}
+ Type: object reference
+ Data:
+ (0,0,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (0,2,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (1,1,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (2,0,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (2,2,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976,
+ (3,1,0) DATASET-1:976, DATASET-1:976, DATASET-1:976, DATASET-1:976
+ Attribute: enum3D {4, 3, 2}
+ Type: enum 32-bit little-endian integer {
+ RED = 0
+ GREEN = 1
+ }
+ Data:
+ (0,0,0) RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED,
+ (2,0,0) RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED
+ Attribute: vlen3D {4, 3, 2}
+ Type: variable length of
+ 32-bit little-endian integer
+ Data:
+ (0,0,0) (0), (1), (2), (3), (4), (5), (6,7), (8,9), (10,11),
+ (1,1,1) (12,13), (14,15), (16,17), (18,19,20), (21,22,23),
+ (2,1,0) (24,25,26), (27,28,29), (30,31,32), (33,34,35),
+ (3,0,0) (36,37,38,39), (40,41,42,43), (44,45,46,47), (48,49,50,51),
+ (3,2,0) (52,53,54,55), (56,57,58,59)
+ Attribute: array3D {4, 3, 2}
+ Type: [3] 32-bit little-endian integer
+ Data:
+ (0,0,0) [1,2,3], [4,5,6], [7,8,9], [10,11,12], [13,14,15],
+ (0,2,1) [16,17,18], [19,20,21], [22,23,24], [25,26,27], [28,29,30],
+ (1,2,0) [31,32,33], [34,35,36], [37,38,39], [40,41,42], [43,44,45],
+ (2,1,1) [46,47,48], [49,50,51], [52,53,54], [55,56,57], [58,59,60],
+ (3,1,0) [61,62,63], [64,65,66], [67,68,69], [70,71,72]
+ Attribute: integer3D {4, 3, 2}
+ Type: 32-bit little-endian integer
+ Data:
+ (0,0,0) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ (2,2,1) 18, 19, 20, 21, 22, 23, 24
+ Attribute: float3D {4, 3, 2}
+ Type: IEEE 32-bit little-endian float
+ Data:
+ (0,0,0) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ (2,2,1) 18, 19, 20, 21, 22, 23, 24
Location: 1:976
Links: 1
Modified: XXXX-XX-XX XX:XX:XX XXX
Storage: 8 logical bytes, 0 allocated bytes
Type: 32-bit little-endian integer
+g1 Group
+ Attribute: string {2}
+ Type: 2-byte null-terminated ASCII string
+ Data: "ab", "de"
+ Attribute: bitfield {2}
+ Type: 8-bit bitfield
+ Data: 0x01, 0x02
+ Attribute: opaque {2}
+ Type: 1-byte opaque type
+ (tag = "1-byte opaque type")
+ Data: 0x01, 0x02
+ Attribute: compound {2}
+ Type: struct {
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data: {1, 2}, {3, 4}
+ Attribute: enum {2}
+ Type: enum 32-bit little-endian integer {
+ RED = 0
+ GREEN = 1
+ }
+ Data: RED, RED
+ Attribute: vlen {2}
+ Type: variable length of
+ 32-bit little-endian integer
+ Data: (1), (2,3)
+ Attribute: array {2}
+ Type: [3] 32-bit little-endian integer
+ Data: [1,2,3], [4,5,6]
+ Attribute: integer {2}
+ Type: 32-bit little-endian integer
+ Data: 1, 2
+ Attribute: float {2}
+ Type: IEEE 32-bit little-endian float
+ Data: 1, 2
+ Attribute: string2D {3, 2}
+ Type: 2-byte null-terminated ASCII string
+ Data:
+ (0,0) "ab", "cd", "ef", "gh", "ij", "kl"
+ Attribute: bitfield2D {3, 2}
+ Type: 8-bit bitfield
+ Data:
+ (0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
+ Attribute: opaque2D {3, 2}
+ Type: 1-byte opaque type
+ (tag = "1-byte opaque type")
+ Data:
+ (0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
+ Attribute: compound2D {3, 2}
+ Type: struct {
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data:
+ (0,0) {1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}, {11, 12}
+ Attribute: enum2D {3, 2}
+ Type: enum 32-bit little-endian integer {
+ RED = 0
+ GREEN = 1
+ }
+ Data:
+ (0,0) RED, RED, RED, RED, RED, RED
+ Attribute: vlen2D {3, 2}
+ Type: variable length of
+ 32-bit little-endian integer
+ Data:
+ (0,0) (0), (1), (2,3), (4,5), (6,7,8), (9,10,11)
+ Attribute: array2D {3, 2}
+ Type: [3] 32-bit little-endian integer
+ Data:
+ (0,0) [1,2,3], [4,5,6], [7,8,9], [10,11,12], [13,14,15], [16,17,18]
+ Attribute: integer2D {3, 2}
+ Type: 32-bit little-endian integer
+ Data:
+ (0,0) 1, 2, 3, 4, 5, 6
+ Attribute: float2D {3, 2}
+ Type: IEEE 32-bit little-endian float
+ Data:
+ (0,0) 1, 2, 3, 4, 5, 6
+ Attribute: string3D {4, 3, 2}
+ Type: 2-byte null-terminated ASCII string
+ Data:
+ (0,0,0) "ab", "cd", "ef", "gh", "ij", "kl", "mn", "pq", "rs", "tu",
+ (1,2,0) "vw", "xz", "AB", "CD", "EF", "GH", "IJ", "KL", "MN", "PQ",
+ (3,1,0) "RS", "TU", "VW", "XZ"
+ Attribute: bitfield3D {4, 3, 2}
+ Type: 8-bit bitfield
+ Data:
+ (0,0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
+ (1,2,0) 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
+ (3,1,0) 0x15, 0x16, 0x17, 0x18
+ Attribute: opaque3D {4, 3, 2}
+ Type: 1-byte opaque type
+ (tag = "1-byte opaque type")
+ Data:
+ (0,0,0) 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
+ (1,2,0) 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
+ (3,1,0) 0x15, 0x16, 0x17, 0x18
+ Attribute: compound3D {4, 3, 2}
+ Type: struct {
+ "a" +0 8-bit integer
+ "b" +4 IEEE 64-bit little-endian float
+ } 12 bytes
+ Data:
+ (0,0,0) {1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}, {11, 12}, {13,
+ (1,0,0) 14}, {15, 16}, {17, 18}, {19, 20}, {21, 22}, {23, 24},
+ (2,0,0) {25, 26}, {27, 28}, {29, 30}, {31, 32}, {33, 34}, {35, 36},
+ (3,0,0) {37, 38}, {39, 40}, {41, 42}, {43, 44}, {45, 46}, {47, 48}
+ Attribute: enum3D {4, 3, 2}
+ Type: enum 32-bit little-endian integer {
+ RED = 0
+ GREEN = 1
+ }
+ Data:
+ (0,0,0) RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED,
+ (2,0,0) RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED, RED
+ Attribute: vlen3D {4, 3, 2}
+ Type: variable length of
+ 32-bit little-endian integer
+ Data:
+ (0,0,0) (0), (1), (2), (3), (4), (5), (6,7), (8,9), (10,11),
+ (1,1,1) (12,13), (14,15), (16,17), (18,19,20), (21,22,23),
+ (2,1,0) (24,25,26), (27,28,29), (30,31,32), (33,34,35),
+ (3,0,0) (36,37,38,39), (40,41,42,43), (44,45,46,47), (48,49,50,51),
+ (3,2,0) (52,53,54,55), (56,57,58,59)
+ Attribute: array3D {4, 3, 2}
+ Type: [3] 32-bit little-endian integer
+ Data:
+ (0,0,0) [1,2,3], [4,5,6], [7,8,9], [10,11,12], [13,14,15],
+ (0,2,1) [16,17,18], [19,20,21], [22,23,24], [25,26,27], [28,29,30],
+ (1,2,0) [31,32,33], [34,35,36], [37,38,39], [40,41,42], [43,44,45],
+ (2,1,1) [46,47,48], [49,50,51], [52,53,54], [55,56,57], [58,59,60],
+ (3,1,0) [61,62,63], [64,65,66], [67,68,69], [70,71,72]
+ Attribute: integer3D {4, 3, 2}
+ Type: 32-bit little-endian integer
+ Data:
+ (0,0,0) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ (2,2,1) 18, 19, 20, 21, 22, 23, 24
+ Attribute: float3D {4, 3, 2}
+ Type: IEEE 32-bit little-endian float
+ Data:
+ (0,0,0) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ (2,2,1) 18, 19, 20, 21, 22, 23, 24
+ Location: 1:2176
+ Links: 1
+g2 Group
+ Location: 1:2824
+ Links: 1