X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=run-tests.sh;h=d33fcf0b9cf461a51868735d71f9165470730f0b;hp=923c19c6a3a9c222001270726af5d0fe392be253;hb=5fa76c4883985b89802574ec7f47ccc186eb2201;hpb=940d3a24319ed7fd67ae0f400add78af4e37b1c7 diff --git a/run-tests.sh b/run-tests.sh index 923c19c..d33fcf0 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -259,7 +259,7 @@ ACTUAL=$(getfacl --omit-header "${TARGET}") compare -# A slightly modified test #1 to make sure it works right. +# A slightly modified version of the first test, to make sure it works. ((TESTNUM++)) TARGET="${TESTDIR}"/foo touch "${TARGET}" @@ -306,7 +306,7 @@ compare # The --recursive mode should work normally if the argument is a -# normal file. See Test #1. +# normal file. See the first test. ((TESTNUM++)) TARGET="${TESTDIR}"/foo setfacl -d -m user::r-- "${TESTDIR}" @@ -533,57 +533,6 @@ compare -# Test #16's setup repeated with the --no-exec-mask flag. -# -((TESTNUM++)) -TARGET="${TESTDIR}"/foo -touch "${TARGET}" -chmod 644 "${TARGET}" -# The directory allows execute for user, group, and other, so the file -# should actually inherit them regardless of its initial mode when the -# --no-exec-mask flag is passed. -setfacl -d -m user:${USERS[0]}:rwx "${TESTDIR}" - -$BIN --no-exec-mask "${TARGET}" - -EXPECTED=$(cat <&1 ) EXPECTED="test/nonexistent: No such file or directory" compare + # Same as the previous test, but with --recursive. ((TESTNUM++)) ACTUAL=$( "${BIN}" --recursive test/nonexistent 2>&1 ) EXPECTED="test/nonexistent: No such file or directory" compare + # If we call apply-default-acl on more than one file, it should report any # that don't exist (but proceed to operate on the others). ((TESTNUM++)) @@ -712,8 +663,7 @@ EOF compare -# Ensure that symlinks are not followed in subdirectories -# (recursively). +# Ensure that symlinks are not followed in subdirectories (recursively). ((TESTNUM++)) TARGET="${TESTDIR}/bar" touch "${TARGET}"