diff mbox series

[1/2] generic/61[67]: support SOAK_DURATION

Message ID 169335095385.3534600.13449847282467855019.stgit@frogsfrogsfrogs (mailing list archive)
State New, archived
Headers show
Series fstests: io_uring tweaks | expand

Commit Message

Darrick J. Wong Aug. 29, 2023, 11:15 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

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>
---
 tests/generic/616 |    1 +
 tests/generic/617 |    1 +
 2 files changed, 2 insertions(+)

Comments

Zorro Lang Aug. 31, 2023, 2:18 p.m. UTC | #1
On Tue, Aug 29, 2023 at 04:15:53PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> 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>
> ---

This makes sense to me, but how these two cases into "soak" group. I'd like to
add all cases which supports "SOAK_DURATION" into "soak" group at least. Then
we can do soak tests better.

Thanks,
Zorro

>  tests/generic/616 |    1 +
>  tests/generic/617 |    1 +
>  2 files changed, 2 insertions(+)
> 
> 
> diff --git a/tests/generic/616 b/tests/generic/616
> index 538b480ba7..729898fded 100755
> --- a/tests/generic/616
> +++ b/tests/generic/616
> @@ -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..f0fd1feb2e 100755
> --- a/tests/generic/617
> +++ b/tests/generic/617
> @@ -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'
>  
>
diff mbox series

Patch

diff --git a/tests/generic/616 b/tests/generic/616
index 538b480ba7..729898fded 100755
--- a/tests/generic/616
+++ b/tests/generic/616
@@ -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..f0fd1feb2e 100755
--- a/tests/generic/617
+++ b/tests/generic/617
@@ -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'