From d56c49481c2ab666a34a1902b7e39f82819db4a3 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 17 Jun 2018 19:47:42 -0400 Subject: [PATCH] run-tests.sh: add test to ensure that ".." works as an argument. --- run-tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/run-tests.sh b/run-tests.sh index d656091..da39813 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -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 -- 2.44.2