Commit Graph

39 Commits

Author SHA1 Message Date
Dana Robinson
f1bc0c97a9 Makes libgen.h functions ready for implementation on Windows 2021-03-02 03:22:50 -08:00
Dana Robinson
6639693cff Removed most C library include lines from tests 2021-03-02 02:51:55 -08:00
songyulu
c20fb7c76d Corrected a typo in the comment. 2021-02-15 11:26:34 -06:00
songyulu
1d6b21a4a1 Added some comments. 2021-02-12 16:21:34 -06:00
songyulu
ddd24e2651 Adding the test case for fixed-array chunked dataset and VDS. 2021-02-12 11:26:39 -06:00
vchoi
d8e77f13be (1) Add new routine to configure for VFD SWMR: init_vfd_swmr_config()
(2) Revise routine to setup fapl for VFD SWMR legacy and other integration tests: vfd_swmr_create_fapl()
(3) Update all VFD SWMR integration tests to use the above two routines
(4) Clean up VFD SWMR legacy tests: turn on compression in test script, remove #ifdef OUT H5Fflush(), message file name
2021-02-02 16:01:35 -06:00
David Young
8e2053bb3d Move below_speed_limit() from vfd_swmr_bigset_writer.c to
vfd_swmr_common.c, document it, and fix a bug.
2020-09-17 14:35:54 -05:00
David Young
1acfef5737 Rewrap lines. 2020-09-03 16:48:33 -05:00
David Young
9bb743136e Individually track the steps verified on each dataset. Take care
not to skip a step.
2020-09-03 14:58:15 -05:00
David Young
a4a969f0fd Give an overview of the bigsets test in a mega-comment at the top. Also,
describe the test pattern.  And while I'm here, repair a comment,
s/writer/reader/.
2020-09-03 14:58:14 -05:00
David Young
d0f1d9ab7b Call the shadow files bigset-shadow-<number> for some <number>,
to avoid unlikely shadow-file clashes.
2020-08-21 09:52:26 -05:00
David Young
38310e9176 Sleep 1/10s between H5Dopen() tries. Make a couple of warning/error messages
more clear/correct.
2020-08-18 17:42:35 -05:00
David Young
a06d6f235d Perform the dataset opens in reverse order to their creation, and if
H5Dopen fails, rapidly retry up to 9,999 times.  Log H5Dopen failures,
but log no more than once every five seconds to avoid spamming the
terminal.

With these changes, it's easier for the reader to open the last dataset
before the writer created it, but the reader recovers instead of
quitting with an error.  It should only be necessary to retry opening
the *last* dataset; all previous datasets should open on one try if the
last is open.
2020-08-18 12:08:05 -05:00
David Young
78bd491aad Add to the "bigset" writer a -M command-line option that enables the use of
multiple files with virtual datasets.

Add to vfd_swmr_create_fapl() printf(3)-like arguments for setting the shadow
filename.  Update all callers.
2020-07-21 11:13:05 -05:00
David Young
0e1b6bfcef Fix a copy-pasto in an error message. 2020-07-10 16:18:39 -05:00
David Young
a2308ffd2c Move the dapl initialization to state_init and, if VDS is enabled,
set the virtual view to "first missing."
2020-07-10 16:17:51 -05:00
David Young
5493f4faac Fix a bug where I was trying to store ndatasets * 4 source-dataset
handles in 4 variables and, of course, failing.  Refactor the
dataspace/dataset initialization.
2020-07-07 12:56:03 -05:00
David Young
5cb598fb11 Use native byte order unless big-endian is specified with -b option. 2020-07-02 14:56:18 -05:00
David Young
6274081bdd Add a VDS mode to the bigset test. 2020-06-30 15:13:15 -05:00
David Young
c6250072da Gather a couple of assertions. 2020-06-26 16:43:13 -05:00
David Young
26d5a950e8 Create one dataset creation property list and one file dataspace and
share them across all datasets/iterations.  Extract common code into
state_destroy().
2020-06-26 16:41:38 -05:00
David Young
bf4fca57f7 When extending the dataset in one dimension, add columns instead of rows
so that it's possible to produce a virtual dataset (VDS) variant of the
test.
2020-06-26 14:35:10 -05:00
David Young
bd87af0408 Create a dataset access property list (dapl) that disables the chunk cache and
apply it individually to each dataset instead of setting the chunk-cache
parameters on the file.  Alas, it didn't make any difference, but I'll keep the
change.
2020-06-19 16:34:53 -05:00
David Young
cb18697b3b Close all of the datasets we opened. 2020-06-16 16:53:15 -05:00
David Young
ff8f7e6da4 Limit every chunk cache to 1 slot and 1kB so that the test doesn't run
my dinky development server out of memory.
2020-06-11 16:24:30 -05:00
David Young
56bc1ea535 Make the test more challenging: on every other step, read a chunk-sized
region offset by 1 unit from a chunk boundary.
2020-06-11 16:23:09 -05:00
David Young
56fd83f66a Delete unused state_t members. NFCI. 2020-05-27 10:31:02 -05:00
David Young
1280b34b7f Join some lines. NFCI. 2020-05-26 16:31:29 -05:00
David Young
38e959b2f2 Add -a steps option and if steps != 0, then add (or verify) an attribute on
each dataset every `steps` steps.

Update usage message.

Add a cast to `time_t` to quiet a compiler warning.

Replace two occurrences of a debug statement in `verify_extensible_dset()` with
one occurrence in `verify_chunk()`.

Replace the anonymous constant `2` with `hang_back` and increase `hang_back` to
3.  XXX Now that I've fixed a bug, reduce `hang_back` to 2, again.

Verify datasets in the reverse of the order they are written so that we spend
less time re-verifying datasets written in the same step.
2020-05-26 16:30:46 -05:00
David Young
2943ab87e0 Add missing newline to dbgf() statement. 2020-05-15 12:26:40 -05:00
David Young
eb69be608d Make -q actually quiet the program. 2020-05-15 12:24:52 -05:00
David Young
a2ad44f419 Make the personality detection more robust like I did for
vfd_swmr_zoo_writer, previously.
2020-05-15 12:20:21 -05:00
David Young
ad79ca8ae7 Let us change the chunk size with command-line options, -r rows and -c
columns.  If the number of datasets is greater than the number of steps,
then only pause between steps, do not pause between individual datasets
written/verified.  Otherwise, pause between each dataset written/verified.
2020-05-15 11:36:00 -05:00
David Young
d1de9d695f Delete extra line. NFCI. 2020-05-08 19:32:09 -05:00
David Young
561974d329 Add missing return-value check. 2020-05-08 19:31:54 -05:00
David Young
a69c33af13 Take care not to leak property lists or data spaces. 2020-05-08 19:31:32 -05:00
David Young
b7c05d2231 Fix bugs in the dataset dimensions checks. 2020-05-07 14:34:34 -05:00
David Young
5d4b109abf Create a reader for the extensible datasets tests. 2020-05-07 12:09:15 -05:00
David Young
f8e494ba80 Add my work-in-progress dataset test. It writes a handful of datasets
that expand in one or two dimensions, depending on the setting of the -d
option argument.
2020-05-06 15:01:29 -05:00