2007-12-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Quote $abs_top_srcdir in tests.
+ * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
+ * tests/tools.at (Syntax of the shell scripts): Likewise.
+
* tests/m4sh.at (LINENO): Quote $0.
Fix testsuite program wrapper for whitespace in `pwd`.
[AT_CHECK([/bin/sh -n $1])])])
m4_define([AT_CHECK_PERL_SYNTAX],
-[AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c $abs_top_builddir/bin/$1],
+[AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c "$abs_top_builddir"/bin/$1],
0, [], [ignore])])
## ------------------ ##
# Specify the absolute name of the tool, as some shells don't honor PATH when
# running `sh PROG'.
-AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/bin/autoconf])
-AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/tests/autoconf])
-AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/tests/testsuite])
+AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/bin/autoconf"])
+AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/tests/autoconf"])
+AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/tests/testsuite"])
# These are not built, they are in the src tree.
-AT_CHECK_SHELL_SYNTAX([$abs_top_srcdir/build-aux/install-sh])
-AT_CHECK_SHELL_SYNTAX([$abs_top_srcdir/build-aux/missing])
+AT_CHECK_SHELL_SYNTAX(["$abs_top_srcdir/build-aux/install-sh"])
+AT_CHECK_SHELL_SYNTAX(["$abs_top_srcdir/build-aux/missing"])
AT_CLEANUP