summaryrefslogtreecommitdiffstats
path: root/test/testvfdswmr.sh.in
diff options
context:
space:
mode:
authorvchoi <vchoi@jelly.ad.hdfgroup.org>2021-03-02 17:59:33 (GMT)
committervchoi <vchoi@jelly.ad.hdfgroup.org>2021-03-02 17:59:33 (GMT)
commitc18b6eaea86281a478c61af5a342e76d4b6fce34 (patch)
tree3cbd8e65691f007429510315c865c1e07144d07b /test/testvfdswmr.sh.in
parentd9f44665cd19620118cd5f6a4fdfac5050200e70 (diff)
downloadhdf5-c18b6eaea86281a478c61af5a342e76d4b6fce34.zip
hdf5-c18b6eaea86281a478c61af5a342e76d4b6fce34.tar.gz
hdf5-c18b6eaea86281a478c61af5a342e76d4b6fce34.tar.bz2
Add test settings for vfd_swmr_bigset_writer.c based on HDF5TestExpress:
Default, Exhaustive, and quick runs.
Diffstat (limited to 'test/testvfdswmr.sh.in')
-rw-r--r--test/testvfdswmr.sh.in32
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