From 0abf0c49a4367c1d0f234e457db2c59a8443afbf Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 14 Jun 2018 07:01:31 -0400 Subject: [PATCH] run-tests.sh: add test to ensure that "." works as an argument. --- run-tests.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.44.2