summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_zoo_writer.c
Commit message (Collapse)AuthorAgeFilesLines
* To avoid potential clashes with other tests, call the shadow file `zoo-shadow`.David Young2020-08-211-1/+1
|
* Add to the "bigset" writer a `-M` command-line option that enables the use ofDavid Young2020-07-211-1/+1
| | | | | | | multiple files with virtual datasets. Add to vfd_swmr_create_fapl() printf(3)-like arguments for setting the shadow filename. Update all callers.
* This test doesn't need to log/modify traps in the global heap, so don'tDavid Young2020-05-131-11/+0
| | | | provide a H5HG_trap() routine.
* Don't initialize `seed` without need. NFCI.David Young2020-05-111-1/+1
|
* Look for the personality in the program name *suffix*, because onDavid Young2020-05-111-2/+4
| | | | `jelly` libtool adds an `lt-` prefix to the program name.
* Insert a random delay between zoo-writer test steps. Let us controlDavid Young2020-04-301-4/+47
| | | | | the random seed with an environment variable, H5_ZOO_STEP_SEED, and the maximum delay in milliseconds with a command-line option, `-m ms`.
* Use a one-character buffer to send/receive messages to/fromDavid Young2020-04-301-7/+11
| | | | | writer/reader, since that's all we need. Avoid deadlock by flushing the file before waiting for the reader's message.
* Change some fprintf callss to dbgf calls, and increase the debug levelDavid Young2020-04-281-12/+10
| | | | of several dbgf statements from 1 to 2 so that `-q` quiets them.
* Delete dead code. Re-enable the coordination between reader and writer:David Young2020-04-231-30/+3
| | | | | the writer expects to read a character on its standard input stream when the reader is ready for it to delete the zoo content.
* Add a `skip compact` configuration for skipping the "zoo" tests forDavid Young2020-04-211-34/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compact datasets. Bundle the zoo-test configuration into a new type, zoo_config_t. Add a couple new "zoo" test phases, "delete" and "validate-deletion", to the existing "create" and "verify" phases. Give names and numbers to all phases with the new `enum`, `phase_t`, and refactor so that tend_zoo runs a selection of phases at each step. Stub the "delete" and "validate-deletion" phases for most test steps. Actually implement for compact dataset (ds_cpt_i) test. In tend_zoo(), delay for 50 milliseconds after running all steps. Really, this should delay after each step.... Implement vfd_swmr_writer_may_increase_tick_to() and vfd_swmr_reader_did_increase_tick_to() with a file that reader and writer share. The reader saves its current tick number in the shared file. The writer does not advance its tick number past the reader's. Collect some statistics in vfd_swmr_writer_may_increase_tick_to() and print them before the writer exits. Add option flags for skipping compact dataset tests (-C) and for printing error stacks (-e). Update the usage message, which was stale before the new options were added. Delete some dead code. Add #if 0'd-out code for the reader to wait for the writer before running "delete" and "validate-deletion" steps.
* Add a `reader` personality to vfd_swmr_zoo_writer. Remove the disusedDavid Young2020-03-311-20/+41
| | | | | `-t` option. Disable the error stack across create_/validate_zoo() calls.
* Add option flag `-v` for verbose messages. Alphabetize the optionsDavid Young2020-03-241-3/+7
| | | | switch-statement.
* Use the name vfd_swmr_zoo.h5 for the zoo file, not vfd_swmr_vlstr.h5.David Young2020-03-231-1/+1
|
* Let tests provide a "hook" that runs after each step in create_zoo().David Young2020-03-231-0/+7
| | | | Provide a hook in vfd_swmr_zoo_writer that calls H5Fvfd_swmr_end_tick().
* Take a stab at a "zoo" writer for VFD SWMR: write all of the sameDavid Young2020-03-201-0/+188
objects as the cache_image test does. The zoo writer is a work in progress. This version is useful as a reproducer for the hang in the global heap that I stumbled over, yesterday. I run this to reproduce, env HLOG="pbio=on" ./vfd_swmr_zoo_writer -W -a