aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2023-07-27 12:07:33 -0400
committerTheodore Ts'o <tytso@mit.edu>2023-07-27 12:07:33 -0400
commit18be2c09acb63fd367bee80b5fa3628394a4beff (patch)
treed79884305166bc275500e002cda8e2032b925eec
parent32d13a9ee3ae55b73e59c37dcc0c4aac2949bdf9 (diff)
downloadxfstests-bld-18be2c09acb63fd367bee80b5fa3628394a4beff.tar.gz
test-appliance: add support for --soak-duration
This allows the user to specify soak time duration and plumbs it through to setting SOAK_DURATION for the fstests' check script. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--run-fstests/util/parse_cli8
-rwxr-xr-xtest-appliance/files/root/runtests.sh3
2 files changed, 11 insertions, 0 deletions
diff --git a/run-fstests/util/parse_cli b/run-fstests/util/parse_cli
index 770c2046..c71e8dfb 100644
--- a/run-fstests/util/parse_cli
+++ b/run-fstests/util/parse_cli
@@ -304,6 +304,7 @@ spot-fallback
primary_fstype:
repo:
skip-kernel-arch-probe
+soak-duration:
stress-mem:
stress-opts:
testrunid:
@@ -802,6 +803,9 @@ while (( $# >= 1 )); do
--skip-kernel-arch-probe)
SKIP_KERNEL_ARCH_PROBE=YES
;;
+ --soak-duration) shift
+ SOAK_DURATION="$1"
+ ;;
--monitor-timeout) shift
MONITOR_TIMEOUT="$1"
;;
@@ -1094,6 +1098,10 @@ if test "$NO_ZERO" = yes ; then
FSTESTOPT="$FSTESTOPT,no_zero"
fi
+if test -n "$SOAK_DURATION" ; then
+ FSTESTOPT="$FSTESTOPT,soak,$SOAK_DURATION"
+fi
+
FSTESTOPT=${FSTESTOPT/#,/}
case "$FSTESTCFG" in
diff --git a/test-appliance/files/root/runtests.sh b/test-appliance/files/root/runtests.sh
index 30859e4c..743e3e90 100755
--- a/test-appliance/files/root/runtests.sh
+++ b/test-appliance/files/root/runtests.sh
@@ -207,6 +207,9 @@ while [ "$1" != "" ]; do
extra_opt) shift
EXTRA_OPT="$EXTRA_OPT $1"
;;
+ soak) shift
+ export SOAK_DURATION="$1"
+ ;;
*)
echo " "
echo "Unrecognized option $1"