From: Stefano Lattarini Date: Fri, 22 Jun 2012 13:14:20 +0000 (+0200) Subject: tests: work in VPATH setup again X-Git-Tag: v1.12.2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74c0fd3e53c75d08ac4c428b0a2f5d21f189a34b;p=thirdparty%2Fautomake.git tests: work in VPATH setup again * defs: Drop overly paranoid sanity checks that was causing all the tests to fail spuriously when run in a VPATH setup, with a message like: "../t/nodef.sh: ./t/ax/test-init.sh: not found in current directory". Those checks looked for invariants that, even if broken, would still cause the test to fail very early and with a pretty clear error message anyway. Signed-off-by: Stefano Lattarini --- diff --git a/defs b/defs index 559eea049..a47a54117 100644 --- a/defs +++ b/defs @@ -20,14 +20,6 @@ # might be just a Bourne shell, non POSIX-conforming, like on Solaris # up to version 11 at least). -# Ensure we are running from the right directory. -for f in defs-static t/ax/test-init.sh; do - if test ! -f ./$f; then - echo "$0: ./$f: not found in current directory" >&2 - exit 99 - fi -done - # Source the shell static setup and variable definitions. . ./defs-static test $? -eq 0 || exit 99