From: Michael Orlitzky Date: Thu, 14 Jun 2018 11:01:31 +0000 (-0400) Subject: run-tests.sh: add test to ensure that "." works as an argument. X-Git-Tag: v0.4.1~10 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=0abf0c49a4367c1d0f234e457db2c59a8443afbf;p=apply-default-acl.git run-tests.sh: add test to ensure that "." works as an argument. --- diff --git a/run-tests.sh b/run-tests.sh index d33fcf0..d656091 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -866,3 +866,18 @@ EXPECTED="1" "${BIN}" --recursive "${TARGET}" ACTUAL=$? compare + + +# Ensure that "." works as an argument. +((TESTNUM++)) +TARGET="${TESTDIR}" +mkdir "${TARGET}/foo" +mkdir "${TARGET}/bar" +setfacl --default --modify user:${USERS[0]}:rw "${TARGET}" +"${BIN}" --recursive "${TARGET}/foo" +EXPECTED=$( getfacl --omit-header "${TARGET}/foo" ) +pushd "${TARGET}/bar" > /dev/null +"${BIN}" --recursive "." +ACTUAL=$( getfacl --omit-header "." ) +popd > /dev/null +compare