aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-09-01 07:53:31 -0700
committerZorro Lang <zlang@kernel.org>2023-09-02 13:54:38 +0800
commit7a2663730e69799dd1f29a345b3be256b53f9120 (patch)
tree9e63543fafa00c41f0aceada45d9b4269cbc87fc
parent6769d7e094f2a63679665dd17c64711e69faab42 (diff)
downloadxfstests-dev-7a2663730e69799dd1f29a345b3be256b53f9120.tar.gz
generic/61[67]: support SOAK_DURATION
Now that I've finally gotten liburing installed on my test machine, I can actually test io_uring. Adapt these two tests to support SOAK_DURATION so I can add it to that too. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/generic/6163
-rwxr-xr-xtests/generic/6173
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/generic/616 b/tests/generic/616
index 538b480ba7..5b0b02c5e4 100755
--- a/tests/generic/616
+++ b/tests/generic/616
@@ -8,7 +8,7 @@
# fsx ops to limit the testing time to be an auto group test.
#
. ./common/preamble
-_begin_fstest auto rw io_uring stress
+_begin_fstest auto rw io_uring stress soak
# Import common functions.
. ./common/filter
@@ -33,6 +33,7 @@ fsx_args+=(-N $nr_ops)
fsx_args+=(-p $((nr_ops / 100)))
fsx_args+=(-o $op_sz)
fsx_args+=(-l $file_sz)
+test -n "$SOAK_DURATION" && fsx_args+=(--duration="$SOAK_DURATION")
run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
diff --git a/tests/generic/617 b/tests/generic/617
index 3bb3112e99..a977870023 100755
--- a/tests/generic/617
+++ b/tests/generic/617
@@ -8,7 +8,7 @@
# fsx ops to limit the testing time to be an auto group test.
#
. ./common/preamble
-_begin_fstest auto rw io_uring stress
+_begin_fstest auto rw io_uring stress soak
# Import common functions.
. ./common/filter
@@ -39,6 +39,7 @@ fsx_args+=(-r $min_dio_sz)
fsx_args+=(-t $min_dio_sz)
fsx_args+=(-w $min_dio_sz)
fsx_args+=(-Z)
+test -n "$SOAK_DURATION" && fsx_args+=(--duration="$SOAK_DURATION")
run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'