From c9f461c4ebfdcff2fdbc3b2b76ec45de16d4a124 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 28 May 2020 00:42:15 +0300 Subject: [PATCH] mdbx-test: don't use `--speculum` option for nops > 10K. Change-Id: I431e2de1882fab8a176b51aa9aa19cb409559181 --- test/long_stochastic.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/long_stochastic.sh b/test/long_stochastic.sh index e16ff3ff..7141ee62 100755 --- a/test/long_stochastic.sh +++ b/test/long_stochastic.sh @@ -176,7 +176,7 @@ function probe { echo "----------------------------------------------- $(date)" echo "${caption}: $*" rm -f ${TESTDB_DIR}/* \ - && ${VALGRIND} ./mdbx_test --speculum --ignore-dbfull --repeat=3 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no "$@" \ + && ${VALGRIND} ./mdbx_test ${speculum} --ignore-dbfull --repeat=3 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no "$@" \ | tee >(lz4 > ${TESTDB_DIR}/long.log.lz4) | grep -e reach -e achieve \ && ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db | tee ${TESTDB_DIR}/long-chk.log \ && ([ ! -e ${TESTDB_DIR}/long.db-copy ] || ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db-copy | tee ${TESTDB_DIR}/long-chk-copy.log) \ @@ -190,6 +190,7 @@ cases='?' for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do echo "=======================================================================" wbatch=$((nops / 10 + 1)) + speculum=$([ $nops -le 1000 ] && echo '--speculum' || true) while true; do echo "=======================================================================" banner "$nops / $wbatch"