summaryrefslogtreecommitdiffstats
path: root/test/genall5.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-21 20:39:25 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-04-21 20:39:25 (GMT)
commit13e930d306fc38940b00fe020ededbc9a191c4d2 (patch)
tree97cd868d970c2a0c9ae6c6eb0fb3a85afa5862e8 /test/genall5.h
parentde18e8c95a3b6c5d7f9fee66d70546fa46046d21 (diff)
downloadhdf5-13e930d306fc38940b00fe020ededbc9a191c4d2.zip
hdf5-13e930d306fc38940b00fe020ededbc9a191c4d2.tar.gz
hdf5-13e930d306fc38940b00fe020ededbc9a191c4d2.tar.bz2
Add a `skip compact` configuration for skipping the "zoo" tests for
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.
Diffstat (limited to 'test/genall5.h')
-rw-r--r--test/genall5.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/test/genall5.h b/test/genall5.h
index 3878da1..4e5fbba 100644
--- a/test/genall5.h
+++ b/test/genall5.h
@@ -11,17 +11,21 @@
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/* Programmer: John Mainzer
- * 9/4/15
- *
- * This file contains declarations of all functions defined
- * in genall5.c
+/*
+ * This file contains declarations of all functions defined in genall5.c
*/
-bool create_zoo(hid_t fid, const char *base_path, int proc_num,
- bool skip_varlen);
-bool validate_zoo(hid_t fid, const char *base_path, int proc_num,
- bool skip_varlen);
+typedef struct _zoo_config {
+ int proc_num;
+ bool continue_on_failure;
+ bool skip_compact;
+ bool skip_varlen;
+} zoo_config_t;
+
+bool create_zoo(hid_t, const char *, zoo_config_t);
+bool validate_zoo(hid_t, const char *, zoo_config_t);
+bool delete_zoo(hid_t, const char *, zoo_config_t);
+bool validate_deleted_zoo(hid_t, const char *, zoo_config_t);
bool ns_grp_0(hid_t fid, const char *group_name);
bool vrfy_ns_grp_0(hid_t fid, const char *group_name);