]> gitweb.michael.orlitzky.com - apply-default-acl.git/commitdiff
run-tests.sh: add test to ensure that "." works as an argument.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 14 Jun 2018 11:01:31 +0000 (07:01 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 14 Jun 2018 11:01:31 +0000 (07:01 -0400)
run-tests.sh

index d33fcf0b9cf461a51868735d71f9165470730f0b..d65609152e5681d239ac35faa2d8a0bcae6ecc81 100755 (executable)
@@ -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