summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
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