]>
gitweb.michael.orlitzky.com - apply-default-acl.git/blob - run-tests.sh
7f6838f66d5e7d1036aa73098cd4b30ba7cb8c31
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
20 echo "Expected result:"
28 # Start by removing and recreating the 'acl' directory.
33 # When using a minimal ACL, the default user, group, and other
34 # permissions should all be propagated to the mode bits.
36 TARGET
="${TESTDIR}"/foo
39 setfacl
-d -m user
::r
-- "${TESTDIR}"
40 setfacl
-d -m group
::r
-- "${TESTDIR}"
41 setfacl
-d -m other
::r
-- "${TESTDIR}"
53 ACTUAL
=`getfacl --omit-header "${TARGET}"`