generic/402: Drop useless fail message
[xfstests-dev.git] / tests / generic / 126
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FSQA Test No. 126
6 #
7 # tests various file permission options modified from CXFSQA test fs_perms
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
17
18 _cleanup()
19 {
20     cd /
21 }
22
23 # get standard environment, filters and checks
24 . ./common/rc
25 . ./common/filter
26
27 # real QA test starts here
28 _supported_fs generic
29 _require_test
30
31 QA_FS_PERMS=$here/src/fs_perms
32
33 cd $TEST_DIR
34 cp $here/src/testx ./testx.file
35
36 # file_perm owner_uid owner_gid tester_uid tester_gid perm_to_test expected_result pass=1
37 $QA_FS_PERMS 001 99 99 12 100 x 1
38 $QA_FS_PERMS 010 99 99 200 99 x 1
39 $QA_FS_PERMS 100 99 99 99 500 x 1
40 $QA_FS_PERMS 002 99 99 12 100 w 1
41 $QA_FS_PERMS 020 99 99 200 99 w 1
42 $QA_FS_PERMS 200 99 99 99 500 w 1
43 $QA_FS_PERMS 004 99 99 12 100 r 1
44 $QA_FS_PERMS 040 99 99 200 99 r 1
45 $QA_FS_PERMS 400 99 99 99 500 r 1
46 $QA_FS_PERMS 000 99 99 99 99 r 1
47 $QA_FS_PERMS 000 99 99 99 99 w 1
48 $QA_FS_PERMS 000 99 99 99 99 x 1
49 $QA_FS_PERMS 010 99 99 99 500 x 1
50 $QA_FS_PERMS 100 99 99 200 99 x 1
51 $QA_FS_PERMS 020 99 99 99 500 w 1
52 $QA_FS_PERMS 200 99 99 200 99 w 1
53 $QA_FS_PERMS 040 99 99 99 500 r 1
54 $QA_FS_PERMS 400 99 99 200 99 r 1
55
56 rm -f ./testx.file
57
58 status=0
59 exit