]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/61[67]: support SOAK_DURATION
authorDarrick J. Wong <djwong@kernel.org>
Fri, 1 Sep 2023 14:53:31 +0000 (07:53 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Sep 2023 05:54:38 +0000 (13:54 +0800)
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>
tests/generic/616
tests/generic/617

index 538b480ba7998c660cb120853137d840a2484665..5b0b02c5e4c95e3cfea34b6c1e9da973b7ea3e85 100755 (executable)
@@ -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'
 
index 3bb3112e9902bc21434f0c05e3935f29923c29dd..a977870023b3ac3267d7c17822d71f047ace832b 100755 (executable)
@@ -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'