common/rc: Add _require_{chown,chmod}()
[xfstests-dev.git] / tests / generic / 129
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FSQA Test No. 129
6 #
7 # looptests created from CXFSQA test looptest
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/filter
21
22 echo_and_run()
23 {
24     echo "$1"
25     $1
26 }
27
28 # real QA test starts here
29 _supported_fs generic
30
31 _require_scratch
32 _require_sparse_files
33
34 _scratch_mkfs >/dev/null 2>&1
35 _scratch_mount "-o nosuid"
36
37 mkdir $SCRATCH_MNT/looptest
38
39 $here/src/looptest -i 100000 -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest1.tst
40 $here/src/looptest -i 10000 -t -r -w -s -b 102400 $SCRATCH_MNT/looptest/looptest2.tst
41 $here/src/looptest -i 50000 -r -w -b 256 -s $SCRATCH_MNT/looptest/looptest3.tst
42 $here/src/looptest -i 2000 -o -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest4.tst
43
44 status=0
45 exit