summaryrefslogtreecommitdiff
path: root/tests/cp/acl
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-05 11:50:56 +0000
committerJim Meyering <jim@meyering.net>2006-09-05 11:50:56 +0000
commitef2071bc678b0659cc32ba6d39039ff0f98d2a7d (patch)
treefb2e5833caf34a35a2712a7e728644f6536103f4 /tests/cp/acl
parentfe99a4f8c8017b3940ccb9206600788e6d86107f (diff)
downloadcoreutils-ef2071bc678b0659cc32ba6d39039ff0f98d2a7d.tar.xz
* tests/cp/acl: Skip this test when cp lacks ACL support.
* tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
Diffstat (limited to 'tests/cp/acl')
-rwxr-xr-xtests/cp/acl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cp/acl b/tests/cp/acl
index 5221ee9ac..02761ced2 100755
--- a/tests/cp/acl
+++ b/tests/cp/acl
@@ -23,6 +23,13 @@
# Make sure we get English translations.
. $srcdir/../lang-default
+# Skip this test if cp was built without ACL support:
+grep '^#define USE_ACL 0' $CONFIG_HEADER > /dev/null && \
+ {
+ echo 1>&2 "$0: insufficient ACL support, so skipping this test"
+ (exit 77); exit 77
+ }
+
if test "$VERBOSE" = yes; then
set -x
mv --version