]> 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>
Sun, 17 Jun 2018 23:47:42 +0000 (19:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 18 Jun 2018 00:55:22 +0000 (20:55 -0400)
run-tests.sh

index d65609152e5681d239ac35faa2d8a0bcae6ecc81..da398138f6b7a67db70168dafb0fb5b59137412e 100755 (executable)
@@ -881,3 +881,17 @@ pushd "${TARGET}/bar" > /dev/null
 ACTUAL=$( getfacl --omit-header "." )
 popd > /dev/null
 compare
+
+# Ensure that ".." works as an argument.
+((TESTNUM++))
+TARGET="${TESTDIR}"
+mkdir "${TARGET}/foo"
+mkdir -p "${TARGET}/bar/baz"
+setfacl --default --modify user:${USERS[0]}:rw "${TARGET}"
+"${BIN}" --recursive "${TARGET}/foo"
+EXPECTED=$( getfacl --omit-header "${TARGET}/foo" )
+pushd "${TARGET}/bar/baz" > /dev/null
+"${BIN}" --recursive ".."
+ACTUAL=$( getfacl --omit-header ".." )
+popd > /dev/null
+compare