]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Modify some tests for absolute trees containing whitespace.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 8 Dec 2007 10:07:12 +0000 (11:07 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 8 Dec 2007 10:07:12 +0000 (11:07 +0100)
* tests/missing.test: Use "./missing" instead of "`pwd`/missing".
* tests/missing2.test: Likewise.
* tests/mmodely.test: Add `pwd` to $PATH instead of absolute
references to myyacc.sh and mylex.sh.
* tests/multlib.test: Likewise for mycc.
* tests/txinfo26.test: Skip if `pwd` contains whitespace, as
an absolute --srcdir does not work there.

ChangeLog
tests/missing.test
tests/missing2.test
tests/mmodely.test
tests/multlib.test
tests/txinfo26.test

index e65286efa0e8173ba0684917bd9e2e793a9eb546..135fa7c9c2f1bda2d58a2d172fa9205d2af5df96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2007-12-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Modify some tests for absolute trees containing whitespace.
+       * tests/missing.test: Use "./missing" instead of "`pwd`/missing".
+       * tests/missing2.test: Likewise.
+       * tests/mmodely.test: Add `pwd` to $PATH instead of absolute
+       references to myyacc.sh and mylex.sh.
+       * tests/multlib.test: Likewise for mycc.
+       * tests/txinfo26.test: Skip if `pwd` contains whitespace, as
+       an absolute --srcdir does not work there.
+
        * INSTALL, lib/INSTALL, lib/config-ml.in, lib/config.guess,
        lib/config.sub, lib/texinfo.tex: Sync from upstream.
 
index 8f4cc9e66cb2c83394f0ef2758bc5007b291fe5b..b425dddb4dc81266823968bf7f9d103e93211b23 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003, 2004, 2006  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -37,7 +37,7 @@ $AUTOMAKE --add-missing
 # Make sure we do use missing, even if the user exported AUTOCONF.
 # (We cannot export this new value, because it would be used by Automake
 # when tracing, and missing is no good for this.)
-MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+MYAUTOCONF="./missing --run $AUTOCONF"
 unset AUTOCONF
 
 ./configure AUTOCONF="$MYAUTOCONF"
index 0236270638d871d67e85ab4be6a1412470f66586..c091f83234a76496143688b9d17513482dc90bad 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003, 2004, 2006  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -38,7 +38,7 @@ $AUTOCONF
 $AUTOMAKE --add-missing
 
 # See missing.test for explanations about this.
-MYAUTOCONF="`pwd`/missing --run $AUTOCONF"
+MYAUTOCONF="./missing --run $AUTOCONF"
 unset AUTOCONF
 
 ./configure AUTOCONF="$MYAUTOCONF"
index 49b16e1e85e0e318892f6fcd793a783b1c824d98..19877b629345caa52c49aac750121036661b2d55 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2004, 2006  Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006, 2007  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -70,14 +70,21 @@ $AUTOMAKE -a
 ./configure
 $MAKE
 
-echo 'echo "$@" >y.tab.c' > myyacc.sh
-echo 'echo "$@" >lex.yy.c' > mylex.sh
+cat >myyacc.sh <<'END'
+#! /bin/sh
+echo "$@" >y.tab.c
+END
+cat >mylex.sh <<'END'
+echo "$@" >lex.yy.c
+END
+chmod +x myyacc.sh mylex.sh
+PATH="`pwd`:$PATH"
 
 # make maintainer-clean; ./configure; make should always work,
 # per GNU Standard.
 $MAKE maintainer-clean
 ./configure
-YACC="$SHELL `pwd`/myyacc.sh" LEX="$SHELL `pwd`/mylex.sh" \
+YACC="myyacc.sh" LEX="mylex.sh" \
    LEX_OUTPUT_ROOT='lex.yy' $MAKE -e zardoz.c joe.c
 grep zardoz.y zardoz.c
 grep joe.l joe.c
index 05dd6ee37cdac4540704e4b8ba5725666df36d20..b4e406a8b889d0230b1e82a5a11378ae5dd3add0 100755 (executable)
@@ -49,6 +49,7 @@ gcc ${1+"$@"}
 END
 
 chmod +x mycc
+PATH=`pwd`:$PATH
 
 cat >Makefile.am <<'EOF'
 SUBDIRS = @subdirs@
@@ -130,7 +131,7 @@ cd ..
 # Check VPATH builds
 mkdir build
 cd build
-../configure --enable-multilib CC=`pwd`/../mycc
+../configure --enable-multilib CC=mycc
 $MAKE
 $MAKE install
 $MAKE distcleancheck
@@ -138,5 +139,5 @@ $MAKE distcleancheck
 # Check standard builds.
 cd ..
 # Why to I have to specify --with-target-subdir?
-./configure --enable-multilib --with-target-subdir=. CC=`pwd`/mycc
+./configure --enable-multilib --with-target-subdir=. CC=mycc
 $MAKE
index 4d755890b225d8867616e7ec20ddb591e58afff5..489998681028cda8898ed4e55317a80325cd9b8b 100755 (executable)
@@ -51,6 +51,12 @@ $AUTOCONF
 ./configure
 $MAKE
 $MAKE distclean
+
+# We do not require this to work with a directory that contains white space.
+case `pwd` in
+  *\ * | *\    *) exit 77;;
+esac
+
 mkdir build
 cd build
 ../configure "--srcdir=`pwd`/.." "--prefix=`pwd`/_inst" "--infodir=`pwd`/_inst/info"