fstests: move test group info to test files
[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 . ./common/preamble
10 _begin_fstest perms auto quick
11
12 # Override the default cleanup function.
13 _cleanup()
14 {
15     cd /
16 }
17
18 # Import common functions.
19 . ./common/filter
20
21 # real QA test starts here
22 _supported_fs generic
23 _require_test
24 _require_chown
25
26 QA_FS_PERMS=$here/src/fs_perms
27
28 cd $TEST_DIR
29 cp $here/src/testx ./testx.file
30
31 # file_perm owner_uid owner_gid tester_uid tester_gid perm_to_test expected_result pass=1
32 $QA_FS_PERMS 001 99 99 12 100 x 1
33 $QA_FS_PERMS 010 99 99 200 99 x 1
34 $QA_FS_PERMS 100 99 99 99 500 x 1
35 $QA_FS_PERMS 002 99 99 12 100 w 1
36 $QA_FS_PERMS 020 99 99 200 99 w 1
37 $QA_FS_PERMS 200 99 99 99 500 w 1
38 $QA_FS_PERMS 004 99 99 12 100 r 1
39 $QA_FS_PERMS 040 99 99 200 99 r 1
40 $QA_FS_PERMS 400 99 99 99 500 r 1
41 $QA_FS_PERMS 000 99 99 99 99 r 1
42 $QA_FS_PERMS 000 99 99 99 99 w 1
43 $QA_FS_PERMS 000 99 99 99 99 x 1
44 $QA_FS_PERMS 010 99 99 99 500 x 1
45 $QA_FS_PERMS 100 99 99 200 99 x 1
46 $QA_FS_PERMS 020 99 99 99 500 w 1
47 $QA_FS_PERMS 200 99 99 200 99 w 1
48 $QA_FS_PERMS 040 99 99 99 500 r 1
49 $QA_FS_PERMS 400 99 99 200 99 r 1
50
51 rm -f ./testx.file
52
53 status=0
54 exit