6 #-----------------------------------------------------------------------
7 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
18 status=0 # success is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
24 rm -f $testdir/aio-stress.$$.*
28 # get standard environment, filters and checks
39 _files="$testdir/aiostress.$$.$_n"
41 [ $__proc -gt 1 ] && _param="-t $__proc $_param"
42 while [ $__proc -gt 1 ]; do
43 _files="$_files $testdir/aiostress.$$.$_n.$__proc"
44 __proc=`expr $__proc - 1`
49 echo "-----------------------------------------------"
50 echo "aio-stress.$_n : $_param"
51 echo "-----------------------------------------------"
52 if ! $here/ltp/aio-stress $_param $AIOSTRESS_AVOID -I $_count $_files >>$tmp.out 2>&1
54 echo " aio-stress (count=$_count) returned $?"
65 # real QA test starts here
68 [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
72 echo "brevity is wit..."
80 _do_test 1 "-s 120m" $count 1
82 # and the default with multiprocess
83 _do_test 2 "-s 10m" $count $procs
85 # as above, but now using direct IO
86 _do_test 3 "-s 10m -O" $count $procs