diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index a7d67f698c5..bf729405618 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -514,6 +514,13 @@ Bug Fixes since HDF5-2.0.0 release =================================== Library ------- + - Fixed an error in H5Ddebug + + H5Ddebug would fail for any chunked dataset with a chunk index, due to its + failure to tag the dataset before performing metadata operations. This + caused h5ls -va to silently fail to print chunk addresses. This has been + fixed. + - Fixed a bug in the H5Oexists and H5Oexists_by_name API routines that would cause those routines to return FAIL instead of FALSE when checking the existence of a non-existent object with a file ID instead of a diff --git a/src/H5Ddbg.c b/src/H5Ddbg.c index 1baed0231e8..bb672203ac9 100644 --- a/src/H5Ddbg.c +++ b/src/H5Ddbg.c @@ -62,8 +62,10 @@ herr_t H5Ddebug(hid_t dset_id) { - H5D_t *dset; /* Dataset to debug */ - herr_t ret_value = SUCCEED; /* Return value */ + H5D_t *dset; /* Dataset to debug */ + haddr_t prev_tag = HADDR_UNDEF; /* Previous metadata tag (should always be undefined since this is an API + function, but we'll include it anyways as it's proper form) */ + herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_API(FAIL) @@ -71,12 +73,18 @@ H5Ddebug(hid_t dset_id) if (NULL == (dset = (H5D_t *)H5VL_object_verify(dset_id, H5I_DATASET))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset"); + /* Set metadata tagging with dset oheader addr */ + H5AC_tag(dset->oloc.addr, &prev_tag); + /* Print B-tree information */ if (H5D_CHUNKED == dset->shared->layout.type) (void)H5D__chunk_dump_index(dset, stdout); else if (H5D_CONTIGUOUS == dset->shared->layout.type) fprintf(stdout, " %-10s %" PRIuHADDR "\n", "Address:", dset->shared->layout.storage.u.contig.addr); + /* Reset metadata tagging */ + H5AC_tag(prev_tag, NULL); + done: FUNC_LEAVE_API(ret_value) } /* end H5Ddebug() */ diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c index c81d114164f..825f75f2112 100644 --- a/tools/test/h5dump/h5dumpgentest.c +++ b/tools/test/h5dump/h5dumpgentest.c @@ -7291,6 +7291,10 @@ gent_dataset_idx(void) ret = H5Pset_chunk(dcpl, RANK, dims); assert(ret >= 0); + /* Disable storing object creation times as this causes problems with output repeatability */ + ret = H5Pset_obj_track_times(dcpl, false); + assert(ret >= 0); + /* dataset with fixed dimensions */ dims[0] = F68a_DIM20; dims[1] = F68a_DIM10; diff --git a/tools/test/h5ls/CMakeTests.cmake b/tools/test/h5ls/CMakeTests.cmake index 39ec81aa99d..56ba06ab5e7 100644 --- a/tools/test/h5ls/CMakeTests.cmake +++ b/tools/test/h5ls/CMakeTests.cmake @@ -20,6 +20,7 @@ # Copy all the test files from source directory to test directory # -------------------------------------------------------------------- set (LIST_HDF5_TESTLS_FILES + tdset2.h5 tdset_idx.h5 ) @@ -60,6 +61,7 @@ nosuchfile.ls tall-1.ls tall-2.ls + tall-3.ls tarray1.ls tattr2.ls tattrreg_le.ls @@ -72,7 +74,10 @@ tdataregbe.ls tdataregle.ls tdset-1.ls - tdset_idx.ls + tdset2-1.ls + tdset2-2.ls + tdset_idx-1.ls + tdset_idx-2.ls tempty.ls textlink-1.ls textlinksrc-1.ls @@ -261,6 +266,7 @@ # test simple command ADD_H5_TEST (tall-1 0 -w80 tall.h5) ADD_H5_TEST (tall-2 0 -w80 -r -d tall.h5) + ADD_H5_TEST (tall-3 0 -w80 -r -d -v -a tall.h5) ADD_H5_TEST (tgroup 0 -w80 tgroup.h5) ADD_H5_TEST (tgroup-3 0 -w80 tgroup.h5/g1) @@ -279,6 +285,10 @@ # test for displaying simple space datasets ADD_H5_TEST (tdset-1 0 -w80 -r -d tdset.h5) + # tests for displaying chunked datasets + ADD_H5_TEST (tdset2-1 0 -w80 -r -d tdset2.h5) + ADD_H5_TEST (tdset2-2 0 -w80 -r -d -v -a tdset2.h5) + # test for displaying soft links (dangle) ADD_H5_TEST (tslink-1 0 -w80 -r tslink.h5) @@ -457,7 +467,8 @@ # test for file with datasets that use Fixed Array chunk indices if (USE_FILTER_DEFLATE) # data read internal filters - ADD_H5_TEST (tdset_idx 0 -w80 -d tdset_idx.h5) + ADD_H5_TEST (tdset_idx-1 0 -w80 -d tdset_idx.h5) + ADD_H5_TEST (tdset_idx-2 0 -w80 -d -v -a tdset_idx.h5) endif () diff --git a/tools/test/h5ls/expected/tall-3.ls b/tools/test/h5ls/expected/tall-3.ls new file mode 100644 index 00000000000..7a676c98c71 --- /dev/null +++ b/tools/test/h5ls/expected/tall-3.ls @@ -0,0 +1,76 @@ +Opened "tall.h5" with sec2 driver. +/ Group + Attribute: attr1 {10} + Type: 8-bit integer + Data: + 97, 98, 99, 100, 101, 102, 103, 104, 105, 0 + Attribute: attr2 {2, 2} + Type: 32-bit big-endian integer + Data: + 0, 1, 2, 3 + Location: 1:96 + Links: 1 +/g1 Group + Location: 1:800 + Links: 1 +/g1/g1.1 Group + Location: 1:2536 + Links: 1 +/g1/g1.1/dset1.1.1 Dataset {10/10, 10/10} + Attribute: attr1 {27} + Type: 8-bit integer + Data: + 49, 115, 116, 32, 97, 116, 116, 114, 105, 98, 117, 116, 101, + 32, 111, 102, 32, 100, 115, 101, 116, 49, 46, 49, 46, 49, 0 + Attribute: attr2 {27} + Type: 8-bit integer + Data: + 50, 110, 100, 32, 97, 116, 116, 114, 105, 98, 117, 116, 101, + 32, 111, 102, 32, 100, 115, 101, 116, 49, 46, 49, 46, 49, 0 + Location: 1:5480 + Links: 1 + Storage: 400 logical bytes, 400 allocated bytes, 100.00% utilization + Type: 32-bit big-endian integer + Address: 6224 + Data: + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, + 8, 10, 12, 14, 16, 18, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 0, 4, 8, 12, + 16, 20, 24, 28, 32, 36, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 0, 6, 12, + 18, 24, 30, 36, 42, 48, 54, 0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 0, 8, + 16, 24, 32, 40, 48, 56, 64, 72, 0, 9, 18, 27, 36, 45, 54, 63, 72, 81 +/g1/g1.1/dset1.1.2 Dataset {20/20} + Location: 1:8272 + Links: 1 + Storage: 80 logical bytes, 80 allocated bytes, 100.00% utilization + Type: 32-bit big-endian integer + Address: 6624 + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 +/g1/g1.2 Group + Location: 1:3568 + Links: 1 +/g1/g1.2/extlink External Link {somefile//somepath} +/g1/g1.2/g1.2.1 Group + Location: 1:4272 + Links: 1 +/g1/g1.2/g1.2.1/slink Soft Link {somevalue} +/g2 Group + Location: 1:1832 + Links: 1 +/g2/dset2.1 Dataset {10/10} + Location: 1:8960 + Links: 1 + Storage: 40 logical bytes, 40 allocated bytes, 100.00% utilization + Type: IEEE 32-bit big-endian float + Address: 6704 + Data: + 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9 +/g2/dset2.2 Dataset {3/3, 5/5} + Location: 1:9560 + Links: 1 + Storage: 60 logical bytes, 60 allocated bytes, 100.00% utilization + Type: IEEE 32-bit big-endian float + Address: 6744 + Data: + 0, 0.1, 0.2, 0.3, 0.4, 0, 0.2, 0.4, 0.6, 0.8, 0, 0.3, 0.6, 0.9, 1.2 +/g2/udlink UD Link {cannot follow UD links} diff --git a/tools/test/h5ls/expected/tdset2-1.ls b/tools/test/h5ls/expected/tdset2-1.ls new file mode 100644 index 00000000000..f7647b94cf0 --- /dev/null +++ b/tools/test/h5ls/expected/tdset2-1.ls @@ -0,0 +1,28 @@ +/ Group +/dset1 Dataset {10/Inf, 20} + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 +/dset2 Dataset {30, 10/Inf} + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 diff --git a/tools/test/h5ls/expected/tdset2-2.ls b/tools/test/h5ls/expected/tdset2-2.ls new file mode 100644 index 00000000000..b74969b279d --- /dev/null +++ b/tools/test/h5ls/expected/tdset2-2.ls @@ -0,0 +1,67 @@ +Opened "tdset2.h5" with sec2 driver. +/ Group + Location: 1:96 + Links: 1 +/dset1 Dataset {10/Inf, 20/20} + Location: 1:800 + Links: 1 + Chunks: {5, 5} 100 bytes + Storage: 800 logical bytes, 800 allocated bytes, 100.00% utilization + Type: 32-bit big-endian integer + Address: 1400 + Flags Bytes Address Logical Offset + ========== ======== ========== ============================== + 0x00000000 100 4016 [0, 0, 0] + 0x00000000 100 4116 [0, 5, 0] + 0x00000000 100 4216 [0, 10, 0] + 0x00000000 100 4316 [0, 15, 0] + 0x00000000 100 4416 [5, 0, 0] + 0x00000000 100 4516 [5, 5, 0] + 0x00000000 100 4616 [5, 10, 0] + 0x00000000 100 4716 [5, 15, 0] + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 +/dset2 Dataset {30/30, 10/Inf} + Location: 1:6064 + Links: 1 + Chunks: {5, 5} 200 bytes + Storage: 2400 logical bytes, 2400 allocated bytes, 100.00% utilization + Type: IEEE 64-bit big-endian float + Address: 6336 + Flags Bytes Address Logical Offset + ========== ======== ========== ============================== + 0x00000000 200 4816 [0, 0, 0] + 0x00000000 200 5016 [0, 5, 0] + 0x00000000 200 5216 [5, 0, 0] + 0x00000000 200 5416 [5, 5, 0] + 0x00000000 200 5616 [10, 0, 0] + 0x00000000 200 5816 [10, 5, 0] + 0x00000000 200 8952 [15, 0, 0] + 0x00000000 200 9152 [15, 5, 0] + 0x00000000 200 9352 [20, 0, 0] + 0x00000000 200 9552 [20, 5, 0] + 0x00000000 200 9752 [25, 0, 0] + 0x00000000 200 9952 [25, 5, 0] + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 diff --git a/tools/test/h5ls/expected/tdset_idx.ls b/tools/test/h5ls/expected/tdset_idx-1.ls similarity index 100% rename from tools/test/h5ls/expected/tdset_idx.ls rename to tools/test/h5ls/expected/tdset_idx-1.ls diff --git a/tools/test/h5ls/expected/tdset_idx-2.ls b/tools/test/h5ls/expected/tdset_idx-2.ls new file mode 100644 index 00000000000..29675f30318 --- /dev/null +++ b/tools/test/h5ls/expected/tdset_idx-2.ls @@ -0,0 +1,83 @@ +Opened "tdset_idx.h5" with sec2 driver. +dset_btree Dataset {20/200, 10/100} + Location: 1:573 + Links: 1 + Chunks: {5, 5} 100 bytes + Storage: 800 logical bytes, 800 allocated bytes, 100.00% utilization + Type: native int + Address: 841 + Flags Bytes Address Logical Offset + ========== ======== ========== ============================== + 0x00000000 100 2848 [0, 0, 0] + 0x00000000 100 2948 [0, 5, 0] + 0x00000000 100 3048 [5, 0, 0] + 0x00000000 100 3148 [5, 5, 0] + 0x00000000 100 3248 [10, 0, 0] + 0x00000000 100 3348 [10, 5, 0] + 0x00000000 100 3448 [15, 0, 0] + 0x00000000 100 3548 [15, 5, 0] + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9 +dset_filter Dataset {20/20, 10/10} + Location: 1:869 + Links: 1 + Chunks: {5, 5} 100 bytes + Storage: 800 logical bytes, 200 allocated bytes, 400.00% utilization + Filter-0: deflate-1 OPT {9} + Type: native int + Address: 1137 + Flags Bytes Address Logical Offset + ========== ======== ========== ============================== + 0x00000000 25 3648 [0, 0, 0] + 0x00000000 25 3673 [0, 5, 0] + 0x00000000 25 3698 [5, 0, 0] + 0x00000000 25 3723 [5, 5, 0] + 0x00000000 25 3748 [10, 0, 0] + 0x00000000 25 3773 [10, 5, 0] + 0x00000000 25 3798 [15, 0, 0] + 0x00000000 25 3823 [15, 5, 0] + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9 +dset_fixed Dataset {20/20, 10/10} + Location: 1:195 + Links: 1 + Chunks: {5, 5} 100 bytes + Storage: 800 logical bytes, 800 allocated bytes, 100.00% utilization + Type: native int + Address: 463 + Flags Bytes Address Logical Offset + ========== ======== ========== ============================== + 0x00000000 100 2048 [0, 0, 0] + 0x00000000 100 2148 [0, 5, 0] + 0x00000000 100 2248 [5, 0, 0] + 0x00000000 100 2348 [5, 5, 0] + 0x00000000 100 2448 [10, 0, 0] + 0x00000000 100 2548 [10, 5, 0] + 0x00000000 100 2648 [15, 0, 0] + 0x00000000 100 2748 [15, 5, 0] + Data: + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, + 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, + 2, 3, 4, 5, 6, 7, 8, 9 diff --git a/tools/test/h5ls/testfiles/tdset2.h5 b/tools/test/h5ls/testfiles/tdset2.h5 new file mode 100644 index 00000000000..e532af16f0e Binary files /dev/null and b/tools/test/h5ls/testfiles/tdset2.h5 differ diff --git a/tools/test/h5ls/testfiles/tdset_idx.h5 b/tools/test/h5ls/testfiles/tdset_idx.h5 index b31d5c3fd8c..a93192247da 100644 Binary files a/tools/test/h5ls/testfiles/tdset_idx.h5 and b/tools/test/h5ls/testfiles/tdset_idx.h5 differ diff --git a/tools/test/h5ls/testh5ls.sh.in b/tools/test/h5ls/testh5ls.sh.in index be1eb845e88..86827ab2dda 100644 --- a/tools/test/h5ls/testh5ls.sh.in +++ b/tools/test/h5ls/testh5ls.sh.in @@ -76,6 +76,7 @@ $SRC_H5DUMP_TESTFILES/tcomplex_be.h5 $SRC_H5DUMP_TESTFILES/tcompound.h5 $SRC_H5DUMP_TESTFILES/tdatareg.h5 $SRC_H5DUMP_TESTFILES/tdset.h5 +$SRC_H5LS_TESTFILES/tdset2.h5 $SRC_H5DUMP_TESTFILES/tempty.h5 $SRC_H5DUMP_TESTFILES/textlink.h5 $SRC_H5DUMP_TESTFILES/textlinksrc.h5 @@ -104,6 +105,7 @@ $SRC_H5LS_OUTFILES/help-3.ls $SRC_H5LS_OUTFILES/nosuchfile.ls $SRC_H5LS_OUTFILES/tall-1.ls $SRC_H5LS_OUTFILES/tall-2.ls +$SRC_H5LS_OUTFILES/tall-3.ls $SRC_H5LS_OUTFILES/tarray1.ls $SRC_H5LS_OUTFILES/tattr2.ls $SRC_H5LS_OUTFILES/tattrreg_le.ls @@ -116,6 +118,8 @@ $SRC_H5LS_OUTFILES/tcomplex_nosupport.ls $SRC_H5LS_OUTFILES/tdataregbe.ls $SRC_H5LS_OUTFILES/tdataregle.ls $SRC_H5LS_OUTFILES/tdset-1.ls +$SRC_H5LS_OUTFILES/tdset2-1.ls +$SRC_H5LS_OUTFILES/tdset2-2.ls $SRC_H5LS_OUTFILES/tempty.ls $SRC_H5LS_OUTFILES/textlink-1.ls $SRC_H5LS_OUTFILES/textlinksrc-1.ls @@ -163,7 +167,8 @@ $SRC_H5LS_OUTFILES/tudlink-1.ls $SRC_H5LS_OUTFILES/tvldtypes1.ls $SRC_H5LS_OUTFILES/tvldtypes2le.ls $SRC_H5LS_OUTFILES/tvldtypes2be.ls -$SRC_H5LS_OUTFILES/tdset_idx.ls +$SRC_H5LS_OUTFILES/tdset_idx-1.ls +$SRC_H5LS_OUTFILES/tdset_idx-2.ls " @@ -311,6 +316,7 @@ TOOLTEST help-3.ls 0 -w80 -? # test simple command TOOLTEST tall-1.ls 0 -w80 tall.h5 TOOLTEST tall-2.ls 0 -w80 -r -d tall.h5 +TOOLTEST tall-3.ls 0 -w80 -r -d -v -a tall.h5 TOOLTEST tgroup.ls 0 -w80 tgroup.h5 TOOLTEST tgroup-3.ls 0 -w80 tgroup.h5/g1 @@ -326,6 +332,10 @@ TOOLTEST tgrp_comments.ls 0 -w80 -v -g tgrp_comments.h5/glongcomment # test for displaying simple space datasets TOOLTEST tdset-1.ls 0 -w80 -r -d tdset.h5 +# tests for displaying chunked datasets +TOOLTEST tdset2-1.ls 0 -w80 -r -d tdset2.h5 +TOOLTEST tdset2-2.ls 0 -w80 -r -d -v -a tdset2.h5 + # test for displaying soft links TOOLTEST tslink-1.ls 0 -w80 -r tslink.h5 @@ -469,7 +479,8 @@ fi # test for file with datasets that use Fixed Array chunk indices if test $USE_FILTER_DEFLATE = "yes" ; then # data read internal filters - TOOLTEST tdset_idx.ls 0 -w80 -d tdset_idx.h5 + TOOLTEST tdset_idx-1.ls 0 -w80 -d tdset_idx.h5 + TOOLTEST tdset_idx-2.ls 0 -w80 -d -v -a tdset_idx.h5 else echo "***skip testing tdset_idx.h5" fi