summaryrefslogtreecommitdiff
path: root/tests/cp
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
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')
-rw-r--r--tests/cp/Makefile.am1
-rwxr-xr-xtests/cp/acl7
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/cp/Makefile.am b/tests/cp/Makefile.am
index dd758404f..a96eab7ae 100644
--- a/tests/cp/Makefile.am
+++ b/tests/cp/Makefile.am
@@ -34,4 +34,5 @@ TESTS = \
EXTRA_DIST = $(TESTS)
TESTS_ENVIRONMENT = \
MAKE=$(MAKE) \
+ CONFIG_HEADER=$(CONFIG_HEADER) \
PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
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