2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=0 # success is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
21 rm -f $TEST_DIR/aio-stress.$$.*
24 # get standard environment, filters and checks
35 _files="$TEST_DIR/aiostress.$$.$_n"
37 [ $__proc -gt 1 ] && _param="-t $__proc $_param"
38 while [ $__proc -gt 1 ]; do
39 _files="$_files $TEST_DIR/aiostress.$$.$_n.$__proc"
45 echo "-----------------------------------------------"
46 echo "aio-stress.$_n : $_param"
47 echo "-----------------------------------------------"
48 if ! $here/ltp/aio-stress $_param $AIOSTRESS_AVOID -I $_count $_files >>$tmp.out 2>&1
50 echo " aio-stress (count=$_count) returned $?"
60 # real QA test starts here
66 [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
68 echo "brevity is wit..."
76 _do_test 1 "-s 120m" $count 1
78 # and the default with multiprocess
79 _do_test 2 "-s 10m" $count $procs
81 # as above, but now using direct IO
82 _do_test 3 "-s 10m -O" $count $procs
84 # dio with O_SYNC and unwritten extent conversion
85 _do_test 4 "-s 10m -O -S" $count $procs
87 # random dio writes with O_SYNC and unwritten extent conversion
88 _do_test 5 "-s 10m -O -S -o 2" $count $procs