diff options
author | vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com> | 2021-03-03 20:20:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 20:20:33 (GMT) |
commit | 0e61a9abf6954cb734f37b261204d04aff0279c3 (patch) | |
tree | 3cbd8e65691f007429510315c865c1e07144d07b | |
parent | db95737047fbbf967d928bf9a693d470884f4890 (diff) | |
parent | c18b6eaea86281a478c61af5a342e76d4b6fce34 (diff) | |
download | hdf5-0e61a9abf6954cb734f37b261204d04aff0279c3.zip hdf5-0e61a9abf6954cb734f37b261204d04aff0279c3.tar.gz hdf5-0e61a9abf6954cb734f37b261204d04aff0279c3.tar.bz2 |
Merge pull request #413 from vchoi-hdfgroup/feature/vfd_swmr
VFD SWMR TestExpress limits on testvfdswmr.sh
-rw-r--r-- | test/testvfdswmr.sh.in | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in index a66ddf4..a2e47b1 100644 --- a/test/testvfdswmr.sh.in +++ b/test/testvfdswmr.sh.in @@ -40,6 +40,30 @@ 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: +## 0: Exhaustive run: Tests take a long time to run. +## 1: Default run. +## 2+: Quick run +############################################################################### +if [ -z $HDF5TestExpress ]; then # Set to default when not set + HDF5TestExpress=1 +fi +## +##Default setting +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) +if [[ "$HDF5TestExpress" -eq 0 ]] ; then # Setting for exhaustive run + BIGSET_n=50 + BIGSET_few_s=40 + BIGSET_many_s=1000 +elif [[ "$HDF5TestExpress" -gt 1 ]]; then # Setting for quick run + BIGSET_n=10 + BIGSET_few_s=10 + BIGSET_many_s=100 +fi + +############################################################################### ## definitions for message file to coordinate test runs ############################################################################### WRITER_MESSAGE=VFD_SWMR_WRITER_MESSAGE # The message file created by writer that the open is complete @@ -641,11 +665,11 @@ for options in "-d 1" "-d 1 -F" "-d 2" "-d 2 -F" "-d 1 -V" "-d 1 -M" "-d 1 -V -F # echo launch vfd_swmr_bigset_writer many small, options $options catch_out_err_and_rc vfd_swmr_bigset_writer \ - ../vfd_swmr_bigset_writer -n 50 $options -s 1000 -r 16 -c 16 -q & + ../vfd_swmr_bigset_writer -n $BIGSET_n $options -s $BIGSET_many_s -r 16 -c 16 -q & pid_writer=$! catch_out_err_and_rc vfd_swmr_bigset_reader \ - ../vfd_swmr_bigset_reader -n 50 $options -s 1000 -r 16 -c 16 -q -W & + ../vfd_swmr_bigset_reader -n $BIGSET_n $options -s $BIGSET_many_s -r 16 -c 16 -q -W & pid_reader=$! # Wait for the reader to finish before signalling the @@ -690,11 +714,11 @@ for options in "-d 1" "-d 1 -F" "-d 2" "-d 2 -F" "-d 1 -V" "-d 1 -M" "-d 1 -V -F fi echo launch vfd_swmr_bigset_writer few big, options $options catch_out_err_and_rc vfd_swmr_bigset_writer \ - ../vfd_swmr_bigset_writer -n 50 $options -s 40 -r 256 -c 256 -q & + ../vfd_swmr_bigset_writer -n $BIGSET_n $options -s $BIGSET_few_s -r 256 -c 256 -q & pid_writer=$! catch_out_err_and_rc vfd_swmr_bigset_reader \ - ../vfd_swmr_bigset_reader -n 50 $options -s 40 -r 256 -c 256 -q -W & + ../vfd_swmr_bigset_reader -n $BIGSET_n $options -s $BIGSET_few_s -r 256 -c 256 -q -W & pid_reader=$! # Wait for the reader to finish before signalling the |