comparison tests/test-copy-acl.sh @ 40156:066c585853e5

tests: Accommodate a shell that is not in /bin/sh. * tests/init.sh (setup_): Set srcdir and builddir. (BOURNE_SHELL): New variable. * modules/acl-tests (Depends-on): Add 'test-framework-sh'. * modules/file-has-acl-tests (Depends-on): Likewise. * modules/copy-file-tests (Depends-on): Likewise. * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell scripts through $BOURNE_SHELL. * tests/test-set-mode-acl-2.sh: Likewise. * tests/test-copy-acl-1.sh: Likewise. * tests/test-copy-acl-2.sh: Likewise. * tests/test-file-has-acl-1.sh: Likewise. * tests/test-file-has-acl-2.sh: Likewise. * tests/test-copy-file-1.sh: Likewise. * tests/test-copy-file-2.sh: Likewise. * tests/test-set-mode-acl.sh (builddir): Consider value set by the invoker. * tests/test-copy-acl.sh (builddir): Likewise. * tests/test-file-has-acl.sh (builddir): Likewise. * tests/test-copy-file.sh (builddir): Likewise. * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL. * tests/test-vc-list-files-git.sh: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 16:01:23 +0100
parents 498a2211d839
children 8c1a17df67e0
comparison
equal deleted inserted replaced
40155:84fd38f4932c 40156:066c585853e5
39 exit 1 39 exit 1
40 } 40 }
41 } 41 }
42 42
43 func_tmpdir 43 func_tmpdir
44 builddir=`pwd` 44 # builddir may already be set by the script that invokes this one.
45 case "$builddir" in
46 '') builddir=`pwd` ;;
47 /* | ?:*) ;;
48 *) builddir=`pwd`/$builddir ;;
49 esac
45 cd "$builddir" || 50 cd "$builddir" ||
46 { 51 {
47 echo "$0: cannot determine build directory (unreadable parent dir?)" >&2 52 echo "$0: cannot determine build directory (unreadable parent dir?)" >&2
48 exit 1 53 exit 1
49 } 54 }