summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Extend VFD SWMR tick length and maximum lag parameters.David Young2020-05-091-2/+2
|
* Delete extra line. NFCI.David Young2020-05-091-1/+0
|
* Add missing return-value check.David Young2020-05-091-0/+3
|
* Take care not to leak property lists or data spaces.David Young2020-05-091-8/+12
|
* Fix bugs in the dataset dimensions checks.David Young2020-05-071-4/+6
|
* Create a reader for the extensible datasets tests.David Young2020-05-072-26/+236
|
* Add my work-in-progress dataset test. It writes a handful of datasetsDavid Young2020-05-062-1/+405
| | | | | that expand in one or two dimensions, depending on the setting of the -d option argument.
* Add esnprintf that prints to the given buffer, observing the givenDavid Young2020-05-062-0/+18
| | | | | buffer size, using vsnprintf(3), but exits with err(3)/errx(3) if the buffer is too small or if vsnprintf returns < 0.
* Insert a random delay between zoo-writer test steps. Let us controlDavid Young2020-04-304-7/+75
| | | | | 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.
* Avoid deadlock of reader and writer: make the writer flush file contentDavid Young2020-04-301-0/+6
| | | | before waiting for the reader's message.
* In fetch_env_ulong(), report a parse that consumes fewer than allDavid Young2020-04-301-1/+5
| | | | characters differently than other parse failures.
* Add a rudimentary zoo test to the VFD SWMR test script.David Young2020-04-281-1/+55
| | | | Briefly describe the variable-length test with a comment.
* 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.
* Let catch_out_err_and_rc() callers redirect the standard input andDavid Young2020-04-281-2/+2
| | | | | | | | | output streams using STDIN_PATH and STDOUT_PATH. I will use that for the zoo reader and writer. Move redirection of standard error output to the standard output stream outside of the curly braces, since usually I want to save the `echo` and `wait` output, too, and it makes the redirection of the supervised program a little easier to follow, I think.
* Move fetch_env_ulong() from vfd_swmr.c to vfd_swmr_common.c for eventualDavid Young2020-04-283-29/+32
| | | | reuse by the zoo writer.
* To avoid name clashes, rename FILENAME -> COMMON_FILENAME inDavid Young2020-04-279-18/+26
| | | | test/vfd_swmr_common.h and in all files that #include it. Now I can
* Implement the remainder of the delete/validate-delete cases.David Young2020-04-231-28/+35
|
* Flesh out the delete/validate-deletion tests. Extract a sharedDavid Young2020-04-231-14/+29
| | | | subroutine.
* 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-214-102/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Make await_signal() await any signal instead of just SIGINT. Add aDavid Young2020-04-211-4/+20
| | | | | (commented out) private version of strsignal(3), just in case we need one on some platform.
* Delete an empty line. NFCI.David Young2020-04-211-1/+0
|
* Quiet some used-before-initialized warnings.David Young2020-04-201-4/+4
|
* Straggler from last: retire vfd_swmr_writer_g.David Young2020-04-201-2/+2
|
* Retire globals vfd_swmr_writer_g and end_of_tick_g.David Young2020-04-201-11/+11
|
* Quiet some used-before-initialized warnings and, while I am here,David Young2020-04-201-3/+3
| | | | initialize one variable with a named constant instead of -1.
* Refactor: extract subroutine estack_get_state() for reuse in a commitDavid Young2020-04-162-1/+11
| | | | that's coming soon.
* Send debug messages to stderr instead of to stdout.David Young2020-04-161-1/+1
|
* Count failures of the variable-length string tests as "soft errors"David Young2020-04-071-2/+8
| | | | | | | that don't count as VFD SWMR test failures. The variable-length string tests are nondeterministic, so we expect them to fail, and they do fail quite often on `jelly`, for example.
* Don't try to free a NULL pointer.David Young2020-04-071-1/+2
|
* Quiet a warning about the variable being used before it is initialized.David Young2020-04-071-1/+1
| | | | | Looks like the compiler actually was wrong, but this is a harmless change to make.
* If the shadow-index size is 0 in the current step, don't calloc(3)David Young2020-04-061-2/+2
| | | | anything, since calloc(0, ...) is undefined.
* Add a `reader` personality to vfd_swmr_zoo_writer. Remove the disusedDavid Young2020-03-312-22/+46
| | | | | `-t` option. Disable the error stack across create_/validate_zoo() calls.
* Prepare for reuse in vfd_swmr_zoo_{reader,writer}: inDavid Young2020-03-313-1766/+1116
| | | | | | validate_zoo()/check_zoo(), instead of checking/modifying the global variable `pass`, just return `false` on failure, `true` on success. Update test `cache_image` to match.
* Remove a duplicate `#define H5FD_TESTING` line.David Young2020-03-241-1/+0
|
* Add option flag `-v` for verbose messages. Alphabetize the optionsDavid Young2020-03-241-3/+7
| | | | switch-statement.
* When creating a shadow index for testing, increase the page number fromDavid Young2020-03-241-1/+3
| | | | | one entry to the next by *at least* 1 so that the index is well-formed. This fixes a crash that occurred with H5_SHADOW_INDEX_SEED=1585006453.
* The forced-fail index comes only from the environment, never fromDavid Young2020-03-241-1/+1
| | | | time(3).
* 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-235-1/+40
| | | | 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-202-2/+193
| | | | | | | | | | 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
* Deduplicate create_zoo() and validate_zoo() and refactor for reuse byDavid Young2020-03-203-336/+167
| | | | | | VFD SWMR tests. This change reduces the length of genall5.c by 171 lines.
* Use more iterations on the variable-length string reader & writer toDavid Young2020-03-171-2/+2
| | | | lower the possibility of a false test failure.
* Test H5Dread() for the right "success" conditions. I'm not sure howDavid Young2020-03-161-1/+1
| | | | this even appeared to work, before.
* Add tests for the two expected failure modes for variable-length (VL) stringsDavid Young2020-03-136-115/+243
| | | | in VFD SWMR mode.
* Add disable_estack() and restore_estack() for disabling the current error-stackDavid Young2020-03-122-9/+33
| | | | handling and restoring the previous error-stack handling.
* Add my work in progress on variable-length string test for VFD SWMR.David Young2020-03-103-1/+554
|