6 #-----------------------------------------------------------------------
7 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation.
13 # This program is distributed in the hope that it would be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write the Free Software Foundation,
20 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #-----------------------------------------------------------------------
26 seqres=$RESULT_DIR/$seq
27 echo "QA output created by $seq"
31 status=0 # success is the default!
32 trap "_cleanup; exit \$status" 0 1 2 3 15
37 rm -f $TEST_DIR/aio-stress.$$.*
40 # get standard environment, filters and checks
51 _files="$TEST_DIR/aiostress.$$.$_n"
53 [ $__proc -gt 1 ] && _param="-t $__proc $_param"
54 while [ $__proc -gt 1 ]; do
55 _files="$_files $TEST_DIR/aiostress.$$.$_n.$__proc"
61 echo "-----------------------------------------------"
62 echo "aio-stress.$_n : $_param"
63 echo "-----------------------------------------------"
64 if ! $here/ltp/aio-stress $_param $AIOSTRESS_AVOID -I $_count $_files >>$tmp.out 2>&1
66 echo " aio-stress (count=$_count) returned $?"
76 # real QA test starts here
82 [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
84 echo "brevity is wit..."
92 _do_test 1 "-s 120m" $count 1
94 # and the default with multiprocess
95 _do_test 2 "-s 10m" $count $procs
97 # as above, but now using direct IO
98 _do_test 3 "-s 10m -O" $count $procs
100 # dio with O_SYNC and unwritten extent conversion
101 _do_test 4 "-s 10m -O -S" $count $procs
103 # random dio writes with O_SYNC and unwritten extent conversion
104 _do_test 5 "-s 10m -O -S -o 2" $count $procs