]>
gitweb.michael.orlitzky.com - apply-default-acl.git/blob - run-tests.sh
6 # The directory where we'll do all the ACL manipulation.
10 # Remove any ACLs on our test directory and remove its contents.
11 setfacl
--remove-all --recursive "$TESTDIR"
16 if [[ "${ACTUAL}" == "${EXPECTED}" ]]; then
21 echo "Expected result:"
29 # Start by removing and recreating the 'acl' directory.
34 # When using a minimal ACL, the default user, group, and other
35 # permissions should all be propagated to the mode bits.
36 TARGET
="${TESTDIR}"/foo
37 setfacl
-d -m user
::r
-- "${TESTDIR}"
38 setfacl
-d -m group
::r
-- "${TESTDIR}"
39 setfacl
-d -m other
::r
-- "${TESTDIR}"
52 ACTUAL
=`getfacl --omit-header "${TARGET}"`
55 # Do the same thing as the last test, except with an extended ACL.
56 setfacl
-d -m user
::r
-- "${TESTDIR}"
57 setfacl
-d -m group
::r
-- "${TESTDIR}"
58 setfacl
-d -m other
::r
-- "${TESTDIR}"
59 setfacl
-d -m user
:mail:rwx
"${TESTDIR}"
74 ACTUAL
=`getfacl --omit-header "${TARGET}"`
77 # A directory shared by a group, should still be group-writable
79 setfacl
-d -m group
:mail:rwx
"${TESTDIR}"
87 group:mail:rwx #effective:rw-
93 ACTUAL
=`getfacl --omit-header "${TARGET}"`