summaryrefslogtreecommitdiff
path: root/modules/acl-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-06-01 22:51:13 +0200
committerBruno Haible <bruno@clisp.org>2008-06-01 22:51:13 +0200
commit456355401219fdc2cb203baedd2bf176572e8310 (patch)
treefcc94473c83957614fe4debadadb130399978e7c /modules/acl-tests
parent28c952d8555a939d74a4096d63dba5c8e7863a90 (diff)
downloadgnulib-456355401219fdc2cb203baedd2bf176572e8310.tar.gz
New ACL unit tests.
Diffstat (limited to 'modules/acl-tests')
-rw-r--r--modules/acl-tests39
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/acl-tests b/modules/acl-tests
new file mode 100644
index 0000000000..f9e752524e
--- /dev/null
+++ b/modules/acl-tests
@@ -0,0 +1,39 @@
+Files:
+tests/test-file-has-acl.sh
+tests/test-set-mode-acl.sh
+tests/test-copy-acl.sh
+tests/test-file-has-acl.c
+tests/test-set-mode-acl.c
+tests/test-copy-acl.c
+tests/test-sameacls.c
+
+Depends-on:
+progname
+read-file
+unistd
+xalloc
+
+configure.ac:
+AC_REQUIRE([gl_FUNC_ACL])
+save_LIBS="$LIBS"
+LIBS="$LIB_ACL $LIBS"
+dnl Test for functions present on Linux, FreeBSD, MacOS X, IRIX, Tru64.
+AC_CHECK_FUNCS([acl_get_file])
+dnl Test for functions present on Solaris, Cygwin.
+AC_CHECK_FUNCS([acl])
+dnl Test for functions present on HP-UX.
+AC_CHECK_FUNCS([getacl])
+dnl Test for functions present on AIX.
+AC_CHECK_FUNCS([aclx_get])
+dnl Test for functions present on older AIX.
+AC_CHECK_FUNCS([statacl])
+LIBS="$save_LIBS"
+
+Makefile.am:
+TESTS += test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh
+TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@'
+check_PROGRAMS += test-file-has-acl test-set-mode-acl test-copy-acl test-sameacls
+test_file_has_acl_LDADD = $(LDADD) $(LIB_ACL)
+test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
+test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
+test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@