common/xfs: refactor commands to select a particular xfs backing device
[xfstests-dev.git] / tests / overlay / 107
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2020 CTERA Networks. All Rights Reserved.
4 #
5 # FS QA Test 107
6 #
7 # Run unionmount testsuite to verify correctness
8 # with multi lower layers, some layers on unique fs,
9 # one layer is on tmpfs with xino enabled.
10 #
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=1        # failure is the default!
18 trap "_unionmount_testsuite_cleanup; exit \$status" 0 1 2 3 15
19
20 # get standard environment, filters and checks
21 . ./common/rc
22 . ./common/filter
23
24 # remove previous $seqres.full before test
25 rm -f $seqres.full
26
27 # real QA test starts here
28
29 _supported_fs overlay
30 _require_extra_fs tmpfs
31 _require_test
32 _require_scratch
33 _require_unionmount_testsuite
34
35 _unionmount_testsuite_run --ov=10 --maxfs=1 --xino --verify
36
37 # success, all done
38 echo "Silence is golden"
39 status=0
40 exit