fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 445
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test 445
6 #
7 # Another SEEK_DATA/SEEK_HOLE sanity test.
8 #
9 . ./common/preamble
10 _begin_fstest auto quick rw seek prealloc
11
12 tmp=$$
13
14 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
15
16 # Override the default cleanup function.
17 _cleanup()
18 {
19         rm -f $tmp.* $BASE_TEST_FILE.*
20 }
21
22 # Import common functions.
23 . ./common/filter
24
25 _supported_fs generic
26
27 _require_test
28 _require_seek_data_hole
29 # All the seek sanity test cases here do falloc
30 _require_xfs_io_command "falloc"
31
32 _require_test_program "seek_sanity_test"
33
34 _run_seek_sanity_test -s 17 -e 17 $BASE_TEST_FILE > $seqres.full 2>&1 ||
35         _fail "seek sanity check failed!"
36
37 # success, all done
38 echo "Silence is golden"
39 status=0
40 exit