common/rc: add _scratch_{u}mount_idmapped() helpers
[xfstests-dev.git] / tests / generic / 088
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 088
6 #
7 # test out CAP_DAC_OVERRIDE and CAP_DAC_SEARCH code in 
8 # xfs_iaccess(ip,mode,cr)
9 #
10 seqfull=$0
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 "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19
20 # get standard environment, filters and checks
21 . ./common/rc
22 . ./common/filter
23
24 _filter()
25 {
26     _filter_test_dir | sed -e '/----------/d'
27 }
28
29 # real QA test starts here
30 _supported_fs generic
31 _require_test
32
33 path=$TEST_DIR/t_access
34 $here/src/t_access_root $path | tee $seqres.full | _filter
35
36 # success, all done
37 status=0
38 exit