2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2011 Oracle Inc. All Rights Reserved.
4 # Copyright (c) 2011 Red Hat. All Rights Reserved.
8 # SEEK_DATA/SEEK_HOLE sanity tests.
10 # Improved by Jeff.liu@oracle.com
11 # Creater: josef@redhat.com
14 seqres=$RESULT_DIR/$seq
15 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
28 _require_seek_data_hole
30 BASE_TEST_FILE=$TEST_DIR/seek_sanity_testfile
32 _require_test_program "seek_sanity_test"
36 eval "rm -f $BASE_TEST_FILE.*"
39 _run_seek_sanity_test $BASE_TEST_FILE > $seqres.full 2>&1 ||
40 _fail "seek sanity check failed!"