generic: add test for boundary in xfs_attr_shortform_verify
[xfstests-dev.git] / tests / generic / 436
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 SUSE.  All Rights Reserved.
4 #
5 # FS QA Test No. 436
6 #
7 # More SEEK_DATA/SEEK_HOLE sanity tests.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
19
20 _cleanup()
21 {
22         rm -f $tmp.* $BASE_TEST_FILE.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 _supported_fs generic
30 _supported_os Linux
31
32 _require_test
33 _require_seek_data_hole
34 # All the seek sanity test cases here do falloc
35 _require_xfs_io_command "falloc"
36
37 _require_test_program "seek_sanity_test"
38
39 _run_seek_sanity_test -s 13 -e 16 $BASE_TEST_FILE > $seqres.full 2>&1 ||
40         _fail "seek sanity check failed!"
41
42 # success, all done
43 echo "Silence is golden"
44 status=0
45 exit