generic: test for non-zero used blocks while writing into a file
[xfstests-dev.git] / tests / overlay / 101
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2020 CTERA Networks. All Rights Reserved.
4 #
5 # FS QA Test 101
6 #
7 # Run unionmount testsuite to verify correctness
8 # with single lower layer not on same fs as upper
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_unionmount_testsuite_cleanup; exit \$status" 0 1 2 3 15
18
19 # get standard environment, filters and checks
20 . ./common/rc
21 . ./common/filter
22
23 # remove previous $seqres.full before test
24 rm -f $seqres.full
25
26 # real QA test starts here
27
28 _supported_fs overlay
29 _require_test
30 _require_scratch
31 _require_unionmount_testsuite
32
33 _unionmount_testsuite_run --ov --verify
34
35 # success, all done
36 echo "Silence is golden"
37 status=0
38 exit