Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't initialize `seed` without need. NFCI. | David Young | 2020-05-11 | 1 | -1/+1 |
| | |||||
* | Look for the personality in the program name *suffix*, because on | David Young | 2020-05-11 | 1 | -2/+4 |
| | | | | `jelly` libtool adds an `lt-` prefix to the program name. | ||||
* | Extend VFD SWMR tick length and maximum lag parameters. | David Young | 2020-05-09 | 1 | -2/+2 |
| | |||||
* | Delete extra line. NFCI. | David Young | 2020-05-09 | 1 | -1/+0 |
| | |||||
* | Add missing return-value check. | David Young | 2020-05-09 | 1 | -0/+3 |
| | |||||
* | Take care not to leak property lists or data spaces. | David Young | 2020-05-09 | 1 | -8/+12 |
| | |||||
* | Fix bugs in the dataset dimensions checks. | David Young | 2020-05-07 | 1 | -4/+6 |
| | |||||
* | Create a reader for the extensible datasets tests. | David Young | 2020-05-07 | 2 | -26/+236 |
| | |||||
* | Add my work-in-progress dataset test. It writes a handful of datasets | David Young | 2020-05-06 | 2 | -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 given | David Young | 2020-05-06 | 2 | -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 control | David Young | 2020-04-30 | 4 | -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/from | David Young | 2020-04-30 | 1 | -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 content | David Young | 2020-04-30 | 1 | -0/+6 |
| | | | | before waiting for the reader's message. | ||||
* | In fetch_env_ulong(), report a parse that consumes fewer than all | David Young | 2020-04-30 | 1 | -1/+5 |
| | | | | characters differently than other parse failures. | ||||
* | Add a rudimentary zoo test to the VFD SWMR test script. | David Young | 2020-04-28 | 1 | -1/+55 |
| | | | | Briefly describe the variable-length test with a comment. | ||||
* | Change some fprintf callss to dbgf calls, and increase the debug level | David Young | 2020-04-28 | 1 | -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 and | David Young | 2020-04-28 | 1 | -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 eventual | David Young | 2020-04-28 | 3 | -29/+32 |
| | | | | reuse by the zoo writer. | ||||
* | To avoid name clashes, rename FILENAME -> COMMON_FILENAME in | David Young | 2020-04-27 | 9 | -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 Young | 2020-04-23 | 1 | -28/+35 |
| | |||||
* | Flesh out the delete/validate-deletion tests. Extract a shared | David Young | 2020-04-23 | 1 | -14/+29 |
| | | | | subroutine. | ||||
* | Delete dead code. Re-enable the coordination between reader and writer: | David Young | 2020-04-23 | 1 | -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 for | David Young | 2020-04-21 | 4 | -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 a | David Young | 2020-04-21 | 1 | -4/+20 |
| | | | | | (commented out) private version of strsignal(3), just in case we need one on some platform. | ||||
* | Delete an empty line. NFCI. | David Young | 2020-04-21 | 1 | -1/+0 |
| | |||||
* | Quiet some used-before-initialized warnings. | David Young | 2020-04-20 | 1 | -4/+4 |
| | |||||
* | Straggler from last: retire vfd_swmr_writer_g. | David Young | 2020-04-20 | 1 | -2/+2 |
| | |||||
* | Retire globals vfd_swmr_writer_g and end_of_tick_g. | David Young | 2020-04-20 | 1 | -11/+11 |
| | |||||
* | Quiet some used-before-initialized warnings and, while I am here, | David Young | 2020-04-20 | 1 | -3/+3 |
| | | | | initialize one variable with a named constant instead of -1. | ||||
* | Refactor: extract subroutine estack_get_state() for reuse in a commit | David Young | 2020-04-16 | 2 | -1/+11 |
| | | | | that's coming soon. | ||||
* | Send debug messages to stderr instead of to stdout. | David Young | 2020-04-16 | 1 | -1/+1 |
| | |||||
* | Count failures of the variable-length string tests as "soft errors" | David Young | 2020-04-07 | 1 | -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 Young | 2020-04-07 | 1 | -1/+2 |
| | |||||
* | Quiet a warning about the variable being used before it is initialized. | David Young | 2020-04-07 | 1 | -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 Young | 2020-04-06 | 1 | -2/+2 |
| | | | | anything, since calloc(0, ...) is undefined. | ||||
* | Add a `reader` personality to vfd_swmr_zoo_writer. Remove the disused | David Young | 2020-03-31 | 2 | -22/+46 |
| | | | | | `-t` option. Disable the error stack across create_/validate_zoo() calls. | ||||
* | Prepare for reuse in vfd_swmr_zoo_{reader,writer}: in | David Young | 2020-03-31 | 3 | -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 Young | 2020-03-24 | 1 | -1/+0 |
| | |||||
* | Add option flag `-v` for verbose messages. Alphabetize the options | David Young | 2020-03-24 | 1 | -3/+7 |
| | | | | switch-statement. | ||||
* | When creating a shadow index for testing, increase the page number from | David Young | 2020-03-24 | 1 | -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 from | David Young | 2020-03-24 | 1 | -1/+1 |
| | | | | time(3). | ||||
* | Use the name vfd_swmr_zoo.h5 for the zoo file, not vfd_swmr_vlstr.h5. | David Young | 2020-03-23 | 1 | -1/+1 |
| | |||||
* | Let tests provide a "hook" that runs after each step in create_zoo(). | David Young | 2020-03-23 | 5 | -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 same | David Young | 2020-03-20 | 2 | -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 by | David Young | 2020-03-20 | 3 | -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 to | David Young | 2020-03-17 | 1 | -2/+2 |
| | | | | lower the possibility of a false test failure. | ||||
* | Test H5Dread() for the right "success" conditions. I'm not sure how | David Young | 2020-03-16 | 1 | -1/+1 |
| | | | | this even appeared to work, before. | ||||
* | Add tests for the two expected failure modes for variable-length (VL) strings | David Young | 2020-03-13 | 6 | -115/+243 |
| | | | | in VFD SWMR mode. | ||||
* | Add disable_estack() and restore_estack() for disabling the current error-stack | David Young | 2020-03-12 | 2 | -9/+33 |
| | | | | handling and restoring the previous error-stack handling. | ||||
* | Add my work in progress on variable-length string test for VFD SWMR. | David Young | 2020-03-10 | 3 | -1/+554 |
| |