summaryrefslogtreecommitdiffstats
path: root/test/testvfdswmr.sh.in
diff options
context:
space:
mode:
authorraylu-hdf <60487644+raylu-hdf@users.noreply.github.com>2021-03-05 16:05:41 (GMT)
committerGitHub <noreply@github.com>2021-03-05 16:05:41 (GMT)
commit9835edcdad2cfb567c7d8af98e8dbbaa4e712eca (patch)
tree2bf92f9d0387f909711c7653381984a9482d401c /test/testvfdswmr.sh.in
parent8e14c386aaa9e09dd9bc7d2b28995ff73b1a9903 (diff)
parent84b31b5a558bdc816e91c414f98155bf72ae1502 (diff)
downloadhdf5-9835edcdad2cfb567c7d8af98e8dbbaa4e712eca.zip
hdf5-9835edcdad2cfb567c7d8af98e8dbbaa4e712eca.tar.gz
hdf5-9835edcdad2cfb567c7d8af98e8dbbaa4e712eca.tar.bz2
Merge branch 'feature/vfd_swmr' into raylu_zoo_test
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 97c13cf..acd8185 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
@@ -637,11 +661,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
@@ -686,11 +710,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