generic: convert tests to SPDX license tags
[xfstests-dev.git] / tests / generic / 241
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 241
6 #
7 # Run parallel dbench & check for filesystem corruption
8 # This corrupted ext4 inode bitmaps due to races at one point
9 #
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=1        # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
19
20 _cleanup()
21 {
22     cd /
23     rm -f $tmp.*
24 }
25
26 # get standard environment, filters and checks
27 . ./common/rc
28 . ./common/filter
29
30 _supported_fs generic
31 _supported_os Linux
32 _require_test
33
34 [ "$DBENCH_PROG" = "" ] && _notrun "dbench not found"
35
36 echo "Silence is golden."
37
38 # real QA test starts here
39 rm -f $seqres.full
40
41 rm -rf $TEST_DIR/dbench
42 mkdir $TEST_DIR/dbench
43
44 dbench -t 60 -D $TEST_DIR/dbench 4 >> $seqres.full
45
46 status=$?
47 exit