Mercurial > hg > octave-kai > gnulib-hg
changeset 15568:3acf9fb3aa69
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 05 Sep 2011 11:23:55 +0200 |
parents | 8c7936106a14 |
children | bc7d656f8f54 |
files | ChangeLog modules/acl-tests tests/test-copy-acl-1.sh tests/test-copy-acl-2.sh tests/test-file-has-acl-1.sh tests/test-file-has-acl-2.sh tests/test-set-mode-acl-1.sh tests/test-set-mode-acl-2.sh |
diffstat | 8 files changed, 88 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2011-09-05 Bruno Haible <bruno@clisp.org> + + 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. + 2011-09-04 Bruno Haible <bruno@clisp.org> acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
--- a/modules/acl-tests +++ b/modules/acl-tests @@ -1,7 +1,13 @@ Files: tests/test-file-has-acl.sh +tests/test-file-has-acl-1.sh +tests/test-file-has-acl-2.sh tests/test-set-mode-acl.sh +tests/test-set-mode-acl-1.sh +tests/test-set-mode-acl-2.sh tests/test-copy-acl.sh +tests/test-copy-acl-1.sh +tests/test-copy-acl-2.sh tests/test-file-has-acl.c tests/test-set-mode-acl.c tests/test-copy-acl.c @@ -18,7 +24,10 @@ AC_CHECK_DECLS_ONCE([alarm]) Makefile.am: -TESTS += test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh +TESTS += \ + test-file-has-acl.sh test-file-has-acl-1.sh test-file-has-acl-2.sh \ + test-set-mode-acl.sh test-set-mode-acl-1.sh test-set-mode-acl-2.sh \ + test-copy-acl.sh test-copy-acl-1.sh test-copy-acl-2.sh TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL) check_PROGRAMS += test-file-has-acl test-set-mode-acl test-copy-acl test-sameacls test_file_has_acl_LDADD = $(LDADD) $(LIB_ACL)
new file mode 100755 --- /dev/null +++ b/tests/test-copy-acl-1.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Test copy-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-copy-acl.sh"
new file mode 100755 --- /dev/null +++ b/tests/test-copy-acl-2.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Test copy-acl on the file system of the build directory, which may be +# a local file system or NFS mounted. + +TMPDIR=`pwd` +export TMPDIR + +exec "${srcdir}/test-copy-acl.sh"
new file mode 100755 --- /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"
new file mode 100755 --- /dev/null +++ b/tests/test-file-has-acl-2.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Test file-has-acl on the file system of the build directory, which may be +# a local file system or NFS mounted. + +TMPDIR=`pwd` +export TMPDIR + +exec "${srcdir}/test-file-has-acl.sh"
new file mode 100755 --- /dev/null +++ b/tests/test-set-mode-acl-1.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# Test set-mode-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-set-mode-acl.sh"