From: Michael Orlitzky Date: Tue, 18 Dec 2012 04:26:03 +0000 (-0500) Subject: Add tests for --recursive mode. X-Git-Tag: v0.0.2~6 X-Git-Url: https://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=c03a7e0eed0349bbffdea2663aae846483e4c3f6 Add tests for --recursive mode. --- diff --git a/run-tests.sh b/run-tests.sh index fc5e2b4..7b44550 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -257,3 +257,80 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + + + +# The --recursive mode should work normally if the argument is a +# normal file. See Test #1. +TESTNUM=11 +TARGET="${TESTDIR}"/foo +setfacl -d -m user::r-- "${TESTDIR}" +setfacl -d -m group::r-- "${TESTDIR}" +setfacl -d -m other::r-- "${TESTDIR}" +touch "${TARGET}" +chmod 777 "${TARGET}" +$BIN --recursive "${TARGET}" + +EXPECTED=$(cat <