New ACL unit tests.
[gnulib.git] / modules / acl-tests
1 Files:
2 tests/test-file-has-acl.sh
3 tests/test-set-mode-acl.sh
4 tests/test-copy-acl.sh
5 tests/test-file-has-acl.c
6 tests/test-set-mode-acl.c
7 tests/test-copy-acl.c
8 tests/test-sameacls.c
9
10 Depends-on:
11 progname
12 read-file
13 unistd
14 xalloc
15
16 configure.ac:
17 AC_REQUIRE([gl_FUNC_ACL])
18 save_LIBS="$LIBS"
19 LIBS="$LIB_ACL $LIBS"
20 dnl Test for functions present on Linux, FreeBSD, MacOS X, IRIX, Tru64.
21 AC_CHECK_FUNCS([acl_get_file])
22 dnl Test for functions present on Solaris, Cygwin.
23 AC_CHECK_FUNCS([acl])
24 dnl Test for functions present on HP-UX.
25 AC_CHECK_FUNCS([getacl])
26 dnl Test for functions present on AIX.
27 AC_CHECK_FUNCS([aclx_get])
28 dnl Test for functions present on older AIX.
29 AC_CHECK_FUNCS([statacl])
30 LIBS="$save_LIBS"
31
32 Makefile.am:
33 TESTS += test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh
34 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@'
35 check_PROGRAMS += test-file-has-acl test-set-mode-acl test-copy-acl test-sameacls
36 test_file_has_acl_LDADD = $(LDADD) $(LIB_ACL)
37 test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
38 test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@
39 test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@