From: Ralf Wildenhues Date: Sat, 8 Dec 2007 10:10:39 +0000 (+0100) Subject: * tests/defs.in: Quote $srcdir, $PATH; skip libtool and gettext X-Git-Tag: v1.10b~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3ab6bd2b54659cd7451d22d20d63b528b52a71;p=thirdparty%2Fautomake.git * tests/defs.in: Quote $srcdir, $PATH; skip libtool and gettext tests if the absolute source or build tree name contain whitespace. --- diff --git a/ChangeLog b/ChangeLog index 135fa7c9c..e6811bcd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-12-08 Ralf Wildenhues + * tests/defs.in: Quote $srcdir, $PATH; skip libtool and gettext + tests if the absolute source or build tree name contain whitespace. + Modify some tests for absolute trees containing whitespace. * tests/missing.test: Use "./missing" instead of "`pwd`/missing". * tests/missing2.test: Likewise. diff --git a/tests/defs.in b/tests/defs.in index 107bfe8f4..c15c5300f 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -49,11 +49,11 @@ if test -z "$srcdir"; then VERBOSE=x # compute $srcdir. srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'` - test $srcdir = $0 && srcdir=. + test "$srcdir" = $0 && srcdir=. else :; fi # Ensure $srcdir is set correctly. -test -f $srcdir/defs.in || { +test -f "$srcdir/defs.in" || { echo "$srcdir/defs.in not found, check \$srcdir" 1>&2 exit 1 } @@ -92,7 +92,7 @@ export ACLOCAL_TESTSUITE_FLAGS test -z "$AUTOMAKE" && AUTOMAKE="automake-@APIVERSION@ --foreign -Werror -Wall" PATH="`pwd`@PATH_SEPARATOR@$PATH" -echo $PATH +echo "$PATH" # Some shells forget to export modified environment variables. # (See note about `export' in the Autoconf manual.) export PATH @@ -260,7 +260,7 @@ signal=0 # Copy in some files we need. for file in install-sh missing depcomp; do - cp $srcdir/../lib/$file $testSubDir/$file || exit 1 + cp "$srcdir/../lib/$file" "$testSubDir/$file" || exit 1 done cd ./$testSubDir @@ -320,6 +320,12 @@ case $required in *libtool* ) test $libtool_found = yes || exit 77 ;; *gettext* ) test $gettext_found = yes || exit 77 ;; esac + # Libtool cannot cope with spaces in the build tree. Our testsuite setup + # cannot cope with spaces in the source tree name for Libtool and gettext + # tests. + case $srcdir,`pwd` in + *\ * | *\ *) exit 77 ;; + esac ACLOCAL="$ACLOCAL -Wno-syntax -I $srcdir/../m4 $extra_includes -I $aclocaldir" ;; esac