From c03a7e0eed0349bbffdea2663aae846483e4c3f6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 17 Dec 2012 23:26:03 -0500 Subject: [PATCH] Add tests for --recursive mode. --- run-tests.sh | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) 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 <