From 0c9f531c7223898e80c4fac6210334a6c820e29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 11 Aug 2024 00:23:34 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-testing:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=BF=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20`--db-upto-gb`=20=D0=B2=20=D1=81=D1=82=D0=BE=D1=85=D0=B0?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B9=20=D1=81?= =?UTF-8?q?=D0=BA=D1=80=D0=B8=D0=BF=D1=82.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/long_stochastic.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/long_stochastic.sh b/test/long_stochastic.sh index ece40bd5..4d951e4a 100755 --- a/test/long_stochastic.sh +++ b/test/long_stochastic.sh @@ -36,6 +36,7 @@ do echo "--loops NN Stop after the NN loops" echo "--dir PATH Specifies directory for test DB and other files (it will be cleared)" echo "--db-upto-mb NN Limits upper size of test DB to the NN megabytes" + echo "--db-upto-gb NN --''--''--''--''--''--''--''--''-- NN gigabytes" echo "--no-geometry-jitter Disable jitter for geometry upper-size" echo "--pagesize NN Use specified page size (256 is minimal and used by default)" echo "--dont-check-ram-size Don't check available RAM" @@ -118,6 +119,14 @@ do fi shift ;; + --db-upto-gb) + DB_UPTO_MB=$(($2 * 1024)) + if [ -z "$DB_UPTO_MB" -o "$DB_UPTO_MB" -lt 1 -o "$DB_UPTO_MB" -gt 4194304 ]; then + echo "Invalid value '$2' for --db-upto-gb option" + exit -2 + fi + shift + ;; --no-geometry-jitter) GEOMETRY_JITTER=no ;;