fsx: Replace use of bzero() with memset()
[xfstests-dev.git] / 080
1 #! /bin/sh
2 # FS QA Test No. 080
3 #
4 # rwtest (iogen|doio)
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2003 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=nathans@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.filter
24
25 _cleanup()
26
27     cd /
28     rm -f $tmp.*
29    _cleanup_testdir
30 }
31
32 _supported_fs xfs
33
34 # Apparently should be able to work on IRIX,
35 # but not at the moment.
36 # It does not work on Linux due to some locking issues...
37 _supported_os IRIX
38
39 [ $HOSTOS == IRIX ] && _notrun "Not working on IRIX yet"
40
41 _setup_testdir
42
43 #quiet=-q
44 clean=-c
45
46 export here
47 cd $testdir
48 echo
49
50 # real QA test starts here
51
52 # to get sh working like ksh on IRIX
53 export _XPG=1
54
55 $here/ltp/rwtest.sh $quiet $clean -i 2000 -f direct,buffered,sync
56 status=$?
57 [ $status -ne 0 ] && exit
58 echo Completed rwtest pass 1 successfully.
59
60 #$here/ltp/rwtest.sh $quiet $clean -Dv -i 1000 -n 10 -f direct,buffered,sync
61 #[ $status -ne 0 ] && exit
62 #echo Completed rwtest pass 2 successfully.
63
64 exit