fstests: use _require_symlinks on all necessary tests
[xfstests-dev.git] / tests / generic / 070
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 070
6 #
7 # fsstress incarnation testing extended attributes writes
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 "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20     cd /
21     rm -rf $TEST_DIR/fsstress
22     rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28 . ./common/attr
29
30 # real QA test starts here
31 _supported_fs generic
32 _supported_os Linux
33
34 _require_test
35 _require_attrs
36
37 FSSTRESS_ARGS=`_scale_fsstress_args \
38         -d $TEST_DIR/fsstress \
39         -f allocsp=0 \
40         -f freesp=0 \
41         -f bulkstat=0 \
42         -f bulkstat1=0 \
43         -f resvsp=0 \
44         -f unresvsp=0 \
45         -f attr_set=100 \
46         -f attr_remove=100 \
47         -p 1 -n 10000 -S c`
48 $FSSTRESS_PROG $FSSTRESS_ARGS >$seqres.full 2>&1
49
50 status=$?
51 exit