generic: test for file fsync after moving it to a new parent directory
[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 _supported_os Linux
31
32 _require_scratch
33 _require_sparse_files
34
35 _scratch_mkfs >/dev/null 2>&1
36 _scratch_mount "-o nosuid"
37
38 mkdir $SCRATCH_MNT/looptest
39
40 src/looptest -i 100000 -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest1.tst
41 src/looptest -i 10000 -t -r -w -s -b 102400 $SCRATCH_MNT/looptest/looptest2.tst
42 src/looptest -i 50000 -r -w -b 256 -s $SCRATCH_MNT/looptest/looptest3.tst
43 src/looptest -i 2000 -o -r -w -b 8192 -s $SCRATCH_MNT/looptest/looptest4.tst
44
45 status=0
46 exit