diff options
author | Songyu Lu <songyulu@hdfgroup.org> | 2021-03-22 21:08:27 (GMT) |
---|---|---|
committer | Songyu Lu <songyulu@hdfgroup.org> | 2021-03-22 21:08:27 (GMT) |
commit | cace7d45ca5749be1f534b84c85fec8fdb384f67 (patch) | |
tree | 712d60350f0f3ea7fd646dfb8ef4a3ea5b5c4777 /test | |
parent | 35f1b6c3cbbecaa3ac732d3a87f42f7ca69c96b8 (diff) | |
download | hdf5-cace7d45ca5749be1f534b84c85fec8fdb384f67.zip hdf5-cace7d45ca5749be1f534b84c85fec8fdb384f67.tar.gz hdf5-cace7d45ca5749be1f534b84c85fec8fdb384f67.tar.bz2 |
Adding group number adjustment for vfd_swmr_group_writer.c based on the level of HDF5TestExpress, to speed up the test or do more thorough test.
Diffstat (limited to 'test')
-rw-r--r-- | test/testvfdswmr.sh.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in index 6562ccc..edfdb27 100644 --- a/test/testvfdswmr.sh.in +++ b/test/testvfdswmr.sh.in @@ -40,7 +40,8 @@ nsofterrors=0 # soft errors are expected to occur some of the time # on a couple of nondeterministic tests. ############################################################################### -## test parameters for vfd_swmr_bigset_writer.c based on HDF5TestExpress: +## test parameters for vfd_swmr_bigset_writer.c and vfd_swmr_group_writer.c +## based on HDF5TestExpress: ## 0: Exhaustive run: Tests take a long time to run. ## 1: Default run. ## 2+: Quick run @@ -53,14 +54,17 @@ fi BIGSET_n=25 # -n option: # of iterations BIGSET_few_s=20 # -s option: # of datasets (for few_big test) BIGSET_many_s=500 # -s option: # of datasets (for many_small test) +GROUP_n=100 # -n option: # of groups (for vfd_swmr_group_writer.c) if [[ "$HDF5TestExpress" -eq 0 ]] ; then # Setting for exhaustive run BIGSET_n=50 BIGSET_few_s=40 BIGSET_many_s=1000 + GROUP_n = 400 elif [[ "$HDF5TestExpress" -gt 1 ]]; then # Setting for quick run BIGSET_n=10 BIGSET_few_s=10 BIGSET_many_s=100 + GROUP_n = 40 fi ############################################################################### @@ -610,17 +614,17 @@ if [ ${do_zoo:-no} = yes ]; then fi # -# Make sure that we can create 1000 groups while a reader waits -# for each to appear. +# Make sure that we can create GROUP_n groups (40, 100, or 400 depending on the HDF5TestExpress level) +# while a reader waits for each to appear. # if [ ${do_groups:-no} = yes ]; then echo launch vfd_swmr_group_writer catch_out_err_and_rc vfd_swmr_group_writer \ - ../vfd_swmr_group_writer -q -c 10 -n 100 & + ../vfd_swmr_group_writer -q -c 10 -n $GROUP_n & pid_writer=$! catch_out_err_and_rc vfd_swmr_group_reader \ - ../vfd_swmr_group_reader -q -c 10 -n 100 -u 5 & + ../vfd_swmr_group_reader -q -c 10 -n $GROUP_n -u 5 & pid_reader=$! # Wait for the reader to finish before signalling the |