Added config for new mahcine
[xfstests-dev.git] / 129
1 #! /bin/sh
2 # FSQA Test No. 129
3 #
4 # looptests created from CXFSQA test looptest
5 #
6 #
7 #-----------------------------------------------------------------------
8 #  Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 # creator
12 owner=allanr@sgi.com
13
14 seq=`basename $0`
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 tmp=/tmp/$$
19 status=1        # failure is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
21
22 _cleanup()
23 {
24     cd /
25     _cleanup_testdir
26 }
27
28 # get standard environment, filters and checks
29 . ./common.rc
30 . ./common.filter
31
32 echo_and_run()
33 {
34     echo "$1"
35     $1
36 }
37
38 # real QA test starts here
39 _supported_fs xfs
40 _supported_os Linux
41
42 _setup_testdir
43 _require_scratch
44 _require_user
45
46 _scratch_mkfs >/dev/null 2>&1
47 _scratch_mount "-o nosuid"
48
49 mkdir $SCRATCH_MNT/looptest
50
51 src/looptest -i 100000 -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest1.tst
52 src/looptest -i 10000 -t -r -w -s -b 102400 $SCRATCH_MNT/looptest/looptest2.tst 
53 src/looptest -i 50000 -r -w -b 256 -s $SCRATCH_MNT/looptest/looptest3.tst
54 src/looptest -i 2000 -o -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest4.tst
55
56 status=0
57 exit