2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * 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.
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
}
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
# 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
*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