X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=run-tests.sh;h=75414cab82878d2209d1d6214bdd99386673a0d2;hb=60f8c02626369db69769474307a95caf61ec3d81;hp=a5f7692b7e28e5d4d70a01a06235e48f3c4c6d10;hpb=d87d053c3183ccdbfe60a3c957cffa85212131c0;p=apply-default-acl.git diff --git a/run-tests.sh b/run-tests.sh index a5f7692..75414ca 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -9,7 +9,7 @@ TESTDIR=test acl_reset() { # Remove any ACLs on our test directory and remove its contents. setfacl --remove-all --recursive "$TESTDIR" - rm -f "${TESTDIR}"/* + rm -rf "${TESTDIR}"/* } compare() { @@ -92,3 +92,27 @@ EOF ACTUAL=`getfacl --omit-header "${TARGET}"` compare + +# Same test as before except with a directory. +setfacl -d -m group:mail:rwx "${TESTDIR}" +mkdir "${TARGET}" +chmod 755 "${TARGET}" +./aclq "${TARGET}" + +EXPECTED=$(cat <