fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 521
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle.  All Rights Reserved.
4 #
5 # FS QA Test No. 521
6 #
7 # Long-soak directio fsx test
8 #
9 . ./common/preamble
10 _begin_fstest soak long_rw
11
12 # Import common functions.
13 . ./common/filter
14
15 # real QA test starts here
16
17 # Modify as appropriate.
18 _supported_fs generic
19 _require_test
20 _require_odirect
21
22 # Run fsx for a million ops or more
23 nr_ops=$((1000000 * TIME_FACTOR))
24 op_sz=$((128000 * LOAD_FACTOR))
25 file_sz=$((600000 * LOAD_FACTOR))
26 fsx_file=$TEST_DIR/fsx.$seq
27 min_dio_sz=$(_min_dio_alignment)
28
29 fsx_args=(-q)
30 fsx_args+=(-N $nr_ops)
31 fsx_args+=(-p $((nr_ops / 100)))
32 fsx_args+=(-o $op_sz)
33 fsx_args+=(-l $file_sz)
34 fsx_args+=(-r $min_dio_sz)
35 fsx_args+=(-t $min_dio_sz)
36 fsx_args+=(-w $min_dio_sz)
37 fsx_args+=(-Z)
38
39 run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
40
41 # success, all done
42 echo Silence is golden
43 status=0
44 exit