summaryrefslogtreecommitdiff
path: root/tests/test-file-has-acl-1.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-05 11:23:55 +0200
committerBruno Haible <bruno@clisp.org>2011-09-05 11:23:55 +0200
commit977389d936eb39475d8540651074ab48fcfd85a1 (patch)
treee0363f6f9186c62d7b525bca663298db61e55fa9 /tests/test-file-has-acl-1.sh
parent5b89c4d735274de30f40daaad3b4ba1bd1d2d82b (diff)
downloadgnulib-977389d936eb39475d8540651074ab48fcfd85a1.tar.gz
acl: Try unit tests on more file systems.
* tests/test-file-has-acl-1.sh: New file. * tests/test-file-has-acl-2.sh: New file. * tests/test-set-mode-acl-1.sh: New file. * tests/test-set-mode-acl-2.sh: New file. * tests/test-copy-acl-1.sh: New file. * tests/test-copy-acl-2.sh: New file. * modules/acl-tests (Files): Add them. (Makefile.am): Add them to TESTS.
Diffstat (limited to 'tests/test-file-has-acl-1.sh')
-rwxr-xr-xtests/test-file-has-acl-1.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-file-has-acl-1.sh b/tests/test-file-has-acl-1.sh
new file mode 100755
index 0000000000..e3ad9c0e8c
--- /dev/null
+++ b/tests/test-file-has-acl-1.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Test file-has-acl on the file system of /var/tmp, which usually is a local
+# file system.
+
+if test -d /var/tmp; then
+ TMPDIR=/var/tmp
+else
+ TMPDIR=/tmp
+fi
+export TMPDIR
+
+exec "${srcdir}/test-file-has-acl.sh"