summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-11-26 22:31:06 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-11-26 22:31:06 +0100
commitf57bd856b2a0e6ecd96fd34f112d28de18a9f212 (patch)
treebd06c31fea5ec51b4608167fbb07a62db6392fd7
parenta7ef9660176bc5927a39fc519abbc03f13c4cbf9 (diff)
downloadautomake-f57bd856b2a0e6ecd96fd34f112d28de18a9f212.tar.gz
Quote file names in tests that can be absolute.
* tests/auxdir.test, tests/check3.test, tests/check4.test, tests/compile.test, tests/cond33.test, tests/condhook.test, tests/distdir.test, tests/dollar.test, tests/empty.test, tests/gnits2.test, tests/gnits3.test, tests/include2.test, tests/insthook.test, tests/java.test, tests/libtool7.test, tests/lisp4.test, tests/lisp5.test, tests/lisp6.test, tests/ltcond.test, tests/ltconv.test, tests/mkinst2.test, tests/multlib.test, tests/nobase.test, tests/nodist2.test, tests/obsolete.test, tests/pr287.test, tests/pr300-lib.test, tests/pr300-ltlib.test, tests/pr300-prog.test, tests/python10.test, tests/python3.test, tests/strip.test, tests/transform.test, tests/txinfo13.test, tests/txinfo19.test, tests/txinfo22.test, tests/txinfo23.test, tests/txinfo26.test, tests/txinfo27.test: Likewise.
-rw-r--r--ChangeLog16
-rwxr-xr-xtests/auxdir.test4
-rwxr-xr-xtests/check3.test4
-rwxr-xr-xtests/check4.test4
-rwxr-xr-xtests/compile.test4
-rwxr-xr-xtests/cond33.test6
-rwxr-xr-xtests/condhook.test4
-rwxr-xr-xtests/distdir.test4
-rwxr-xr-xtests/dollar.test4
-rwxr-xr-xtests/empty.test4
-rwxr-xr-xtests/gnits2.test4
-rwxr-xr-xtests/gnits3.test4
-rwxr-xr-xtests/include2.test4
-rwxr-xr-xtests/insthook.test10
-rwxr-xr-xtests/java.test4
-rwxr-xr-xtests/libtool7.test2
-rwxr-xr-xtests/lisp4.test26
-rwxr-xr-xtests/lisp5.test14
-rwxr-xr-xtests/lisp6.test6
-rwxr-xr-xtests/ltcond.test4
-rwxr-xr-xtests/ltconv.test4
-rwxr-xr-xtests/mkinst2.test4
-rwxr-xr-xtests/multlib.test6
-rwxr-xr-xtests/nobase.test6
-rwxr-xr-xtests/nodist2.test4
-rwxr-xr-xtests/obsolete.test4
-rwxr-xr-xtests/pr287.test4
-rwxr-xr-xtests/pr300-lib.test4
-rwxr-xr-xtests/pr300-ltlib.test4
-rwxr-xr-xtests/pr300-prog.test4
-rwxr-xr-xtests/python10.test38
-rwxr-xr-xtests/python3.test8
-rwxr-xr-xtests/strip.test4
-rwxr-xr-xtests/transform.test4
-rwxr-xr-xtests/txinfo13.test4
-rwxr-xr-xtests/txinfo19.test4
-rwxr-xr-xtests/txinfo22.test4
-rwxr-xr-xtests/txinfo23.test4
-rwxr-xr-xtests/txinfo26.test4
-rwxr-xr-xtests/txinfo27.test4
40 files changed, 135 insertions, 119 deletions
diff --git a/ChangeLog b/ChangeLog
index 827195937..fb86952a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
2007-11-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Quote file names in tests that can be absolute.
+ * tests/auxdir.test, tests/check3.test, tests/check4.test,
+ tests/compile.test, tests/cond33.test, tests/condhook.test,
+ tests/distdir.test, tests/dollar.test, tests/empty.test,
+ tests/gnits2.test, tests/gnits3.test, tests/include2.test,
+ tests/insthook.test, tests/java.test, tests/libtool7.test,
+ tests/lisp4.test, tests/lisp5.test, tests/lisp6.test,
+ tests/ltcond.test, tests/ltconv.test, tests/mkinst2.test,
+ tests/multlib.test, tests/nobase.test, tests/nodist2.test,
+ tests/obsolete.test, tests/pr287.test, tests/pr300-lib.test,
+ tests/pr300-ltlib.test, tests/pr300-prog.test, tests/python10.test,
+ tests/python3.test, tests/strip.test, tests/transform.test,
+ tests/txinfo13.test, tests/txinfo19.test, tests/txinfo22.test,
+ tests/txinfo23.test, tests/txinfo26.test, tests/txinfo27.test:
+ Likewise.
+
Quote @abs_top_builddir@ and @abs_top_srcdir@.
* tests/aclocal.in: Likewise.
* tests/automake.in: Likewise.
diff --git a/tests/auxdir.test b/tests/auxdir.test
index 771d08bab..36fcc625b 100755
--- a/tests/auxdir.test
+++ b/tests/auxdir.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -34,7 +34,7 @@ cat > Makefile.am << 'END'
pkgdata_DATA =
END
-cp $testsrcdir/../lib/mkinstalldirs .
+cp "$testsrcdir/../lib/mkinstalldirs" .
# The "././" prefix confuses Automake into thinking it is doing a
# subdir build. Yes, this is hacky.
diff --git a/tests/check3.test b/tests/check3.test
index e8639968c..034c44771 100755
--- a/tests/check3.test
+++ b/tests/check3.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -61,7 +61,7 @@ END
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE check >stdout
cat stdout
grep 'PASS: subrun.sh' stdout
diff --git a/tests/check4.test b/tests/check4.test
index 3d37c23e4..c1632cfa0 100755
--- a/tests/check4.test
+++ b/tests/check4.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -53,7 +53,7 @@ chmod +x ok.sh dir/fail.sh
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE check >stdout && exit 1
cat stdout
grep 'FAIL: fail.sh' stdout
diff --git a/tests/compile.test b/tests/compile.test
index 1f4c413c3..0fbf2b7e8 100755
--- a/tests/compile.test
+++ b/tests/compile.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -24,7 +24,7 @@
set -e
-cp $testsrcdir/../lib/compile .
+cp "$testsrcdir/../lib/compile" .
# -o 'a c' should not be stripped because 'a c' is not an object
# (it does not matter whether touch creates ./-- or not)
diff --git a/tests/cond33.test b/tests/cond33.test
index 7275b1bc2..081504110 100755
--- a/tests/cond33.test
+++ b/tests/cond33.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -52,7 +52,7 @@ $AUTOMAKE
mkdir nowhere
chmod a-w nowhere
-./configure --prefix=`pwd`/nowhere --bindir=`pwd`/bin --includedir=`pwd`/inc
+./configure "--prefix=`pwd`/nowhere" "--bindir=`pwd`/bin" "--includedir=`pwd`/inc"
$MAKE installdirs
test ! -d bin
test -d inc/foo
@@ -63,7 +63,7 @@ test ! -d bin
test -f inc/foo/foo.h
rm -rf inc
./configure two=two \
- --prefix=`pwd`/nowhere --bindir=`pwd`/bin --includedir=`pwd`/inc
+ "--prefix=`pwd`/nowhere" "--bindir=`pwd`/bin" "--includedir=`pwd`/inc"
$MAKE install
test ! -d inc
test -f bin/x.sh
diff --git a/tests/condhook.test b/tests/condhook.test
index 3b9ffd964..230a3a16d 100755
--- a/tests/condhook.test
+++ b/tests/condhook.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -43,5 +43,5 @@ END
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
diff --git a/tests/distdir.test b/tests/distdir.test
index 3e4b361c2..6c52272da 100755
--- a/tests/distdir.test
+++ b/tests/distdir.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -61,7 +61,7 @@ VERSION=10 MKDIR_P='echo MKDIR_P' $MAKE -e distdir >make.log || :
grep 'MKDIR_P.*\.' make.log && exit 1
cd ..
-./configure --prefix `pwd`
+./configure --prefix "`pwd`"
$MAKE distcheck
exit 0
diff --git a/tests/dollar.test b/tests/dollar.test
index 9ae39940f..e0cd68776 100755
--- a/tests/dollar.test
+++ b/tests/dollar.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -44,7 +44,7 @@ EOF
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
test -f 'inst/my/hello$world'
$MAKE check-dist
diff --git a/tests/empty.test b/tests/empty.test
index bb43b525f..3cfbb6b1e 100755
--- a/tests/empty.test
+++ b/tests/empty.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2007
# Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
@@ -32,5 +32,5 @@ echo 'data_DATA =' >Makefile.am
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
diff --git a/tests/gnits2.test b/tests/gnits2.test
index 747e97c12..2b4dc9e45 100755
--- a/tests/gnits2.test
+++ b/tests/gnits2.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -106,7 +106,7 @@ mkdir build
cd build
# Use --program-prefix to make sure the std-options check honors it.
-../configure --prefix=`pwd`/../inst-dir --program-prefix=p
+../configure "--prefix=`pwd`/../inst-dir" --program-prefix=p
$MAKE all
$MAKE test-install
$MAKE -k installcheck 2>stderr || : # Never trust the exit status of make -k.
diff --git a/tests/gnits3.test b/tests/gnits3.test
index c97c4938b..d6c37e53e 100755
--- a/tests/gnits3.test
+++ b/tests/gnits3.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -84,7 +84,7 @@ mkdir build
cd build
# Use --program-prefix to make sure the std-options check honors it.
-../configure --prefix=`pwd`/../inst-dir --program-prefix=p
+../configure "--prefix=`pwd`/../inst-dir" --program-prefix=p
$MAKE
$MAKE install
$MAKE -k installcheck 2>stderr || : # Never trust the exit status of make -k.
diff --git a/tests/include2.test b/tests/include2.test
index 0cd4de61b..3353de752 100755
--- a/tests/include2.test
+++ b/tests/include2.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -51,5 +51,5 @@ $AUTOCONF
$AUTOMAKE
# Use --srcdir with an absolute path because it's harder
# to support in `distdir'.
-./configure --srcdir `pwd`
+./configure --srcdir "`pwd`"
$MAKE test
diff --git a/tests/insthook.test b/tests/insthook.test
index 217130a32..e5e827671 100755
--- a/tests/insthook.test
+++ b/tests/insthook.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -33,13 +33,13 @@ cat >Makefile.am <<'END'
dist_bin_SCRIPTS = foo
install-exec-hook:
- cd $(DESTDIR)$(bindir) && \
+ cd "$(DESTDIR)$(bindir)" && \
mv -f foo foo-$(VERSION) && \
$(LN_S) foo-$(VERSION) foo
installcheck-local:
- test -f $(bindir)/foo
- test -f $(bindir)/foo-$(VERSION)
+ test -f "$(bindir)/foo"
+ test -f "$(bindir)/foo-$(VERSION)"
: > $(top_srcdir)/../ok
END
@@ -59,7 +59,7 @@ test -f ok
# second version will overwrite `foo'. Hopefully `install' and `install-sh'
# are smart enough to erase the `foo' symlink before installing the new
# version.)
-./configure --bindir=`pwd`/bin
+./configure "--bindir=`pwd`/bin"
$MAKE install
echo 2 > foo
VERSION=2.0 $MAKE -e install
diff --git a/tests/java.test b/tests/java.test
index 345467acc..5a1f3aa05 100755
--- a/tests/java.test
+++ b/tests/java.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -53,5 +53,5 @@ class b
}
EOF
-./configure --prefix `pwd`
+./configure --prefix "`pwd`"
$MAKE distcheck
diff --git a/tests/libtool7.test b/tests/libtool7.test
index 845e975e6..563a1265f 100755
--- a/tests/libtool7.test
+++ b/tests/libtool7.test
@@ -85,7 +85,7 @@ $ACLOCAL
$AUTOCONF
$AUTOMAKE --add-missing --copy
-./configure --prefix=`pwd`/_inst
+./configure "--prefix=`pwd`/_inst"
env LIBTOOLFLAGS=--silent $MAKE print >output 2>&1
cat output
grep '1BEG: libmod1.la mod2.la :END1' output
diff --git a/tests/lisp4.test b/tests/lisp4.test
index 7b3e8f9e1..51c0b70bb 100755
--- a/tests/lisp4.test
+++ b/tests/lisp4.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -41,20 +41,20 @@ test:
test ! -f elc-stamp
install-test: install
- test -f $(lispdir)/am-one.el
- test -f $(lispdir)/am-two.el
- test -f $(lispdir)/am-three.el
- test ! -f $(lispdir)/am-one.elc
- test ! -f $(lispdir)/am-two.elc
- test ! -f $(lispdir)/am-three.elc
+ test -f "$(lispdir)/am-one.el"
+ test -f "$(lispdir)/am-two.el"
+ test -f "$(lispdir)/am-three.el"
+ test ! -f "$(lispdir)/am-one.elc"
+ test ! -f "$(lispdir)/am-two.elc"
+ test ! -f "$(lispdir)/am-three.elc"
install-test2: install
- test ! -f $(lispdir)/am-one.el
- test ! -f $(lispdir)/am-two.el
- test ! -f $(lispdir)/am-three.el
- test ! -f $(lispdir)/am-one.elc
- test ! -f $(lispdir)/am-two.elc
- test ! -f $(lispdir)/am-three.elc
+ test ! -f "$(lispdir)/am-one.el"
+ test ! -f "$(lispdir)/am-two.el"
+ test ! -f "$(lispdir)/am-three.el"
+ test ! -f "$(lispdir)/am-one.elc"
+ test ! -f "$(lispdir)/am-two.elc"
+ test ! -f "$(lispdir)/am-three.elc"
EOF
cat >> configure.in << 'EOF'
diff --git a/tests/lisp5.test b/tests/lisp5.test
index bfc39973c..7584d62a9 100755
--- a/tests/lisp5.test
+++ b/tests/lisp5.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -40,12 +40,12 @@ test:
test ! -f elc-stamp
install-test: install
- test -f $(lispdir)/am-one.el
- test -f $(lispdir)/am-two.el
- test -f $(lispdir)/am-three.el
- test ! -f $(lispdir)/am-one.elc
- test ! -f $(lispdir)/am-two.elc
- test ! -f $(lispdir)/am-three.elc
+ test -f "$(lispdir)/am-one.el"
+ test -f "$(lispdir)/am-two.el"
+ test -f "$(lispdir)/am-three.el"
+ test ! -f "$(lispdir)/am-one.elc"
+ test ! -f "$(lispdir)/am-two.elc"
+ test ! -f "$(lispdir)/am-three.elc"
EOF
cat >> configure.in << 'EOF'
diff --git a/tests/lisp6.test b/tests/lisp6.test
index 1ccfed238..918345bb1 100755
--- a/tests/lisp6.test
+++ b/tests/lisp6.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -51,7 +51,7 @@ echo "(require 'am-one)" > am-three.el
$ACLOCAL
$AUTOCONF
$AUTOMAKE --add-missing
-./configure --with-lispdir=`pwd`/lisp
+./configure "--with-lispdir=`pwd`/lisp"
$MAKE
test -f am-one.elc
@@ -76,7 +76,7 @@ test ! -f am-three.elc
test ! -f elc-stamp
-./configure --with-lispdir=`pwd`/lisp want_two=1
+./configure "--with-lispdir=`pwd`/lisp" want_two=1
$MAKE
test -f am-one.elc
test -f am-two.elc
diff --git a/tests/ltcond.test b/tests/ltcond.test
index 6fe094ca5..244fa980c 100755
--- a/tests/ltcond.test
+++ b/tests/ltcond.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -69,7 +69,7 @@ $AUTOMAKE --add-missing
# Install libraries in lib/, and the rest in empty/.
# (in fact there is no "rest", so as the name imply empty/ is
# expected to remain empty).
-./configure --prefix=`pwd`/empty --libdir=`pwd`/lib
+./configure "--prefix=`pwd`/empty" "--libdir=`pwd`/lib"
$MAKE
test -f lib1foo.la
diff --git a/tests/ltconv.test b/tests/ltconv.test
index ac18c970b..bc95924bd 100755
--- a/tests/ltconv.test
+++ b/tests/ltconv.test
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -118,7 +118,7 @@ $AUTOMAKE --add-missing
# Install libraries in lib/, programs in bin/, and the rest in empty/.
# (in fact there is no "rest", so as the name imply empty/ is
# expected to remain empty).
-./configure --prefix=`pwd`/empty --libdir=`pwd`/lib --bindir=`pwd`/bin
+./configure "--prefix=`pwd`/empty" "--libdir=`pwd`/lib" "--bindir=`pwd`/bin"
$MAKE
test -f libtop.la
diff --git a/tests/mkinst2.test b/tests/mkinst2.test
index 8f104d2aa..4bde87445 100755
--- a/tests/mkinst2.test
+++ b/tests/mkinst2.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1996, 1997, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 2001, 2002, 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -36,7 +36,7 @@ END
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/sub
+./configure --prefix "`pwd`/sub"
$MAKE installdirs
test ! -d sub/man
diff --git a/tests/multlib.test b/tests/multlib.test
index 8f846ee51..05dd6ee37 100755
--- a/tests/multlib.test
+++ b/tests/multlib.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -110,8 +110,8 @@ mkdir libbar/sub
: > libbar/bar.c
-cp $testsrcdir/../lib/config-ml.in .
-cp $testsrcdir/../lib/symlink-tree .
+cp "$testsrcdir/../lib/config-ml.in" .
+cp "$testsrcdir/../lib/symlink-tree" .
$ACLOCAL
$AUTOCONF
diff --git a/tests/nobase.test b/tests/nobase.test
index 9895c52b2..7d3871007 100755
--- a/tests/nobase.test
+++ b/tests/nobase.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -114,7 +114,7 @@ libtoolize
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a --copy
-./configure --prefix `pwd`/inst --program-prefix=p
+./configure --prefix "`pwd`/inst" --program-prefix=p
$MAKE
$MAKE test-install-data
@@ -131,7 +131,7 @@ $MAKE uninstall
$MAKE distclean
mkdir build
cd build
-../configure --prefix `pwd`/inst --program-prefix=p
+../configure --prefix "`pwd`/inst" --program-prefix=p
$MAKE
$MAKE test-install-data
$MAKE test-install-exec
diff --git a/tests/nodist2.test b/tests/nodist2.test
index cbb71b16b..c92c06d2f 100755
--- a/tests/nodist2.test
+++ b/tests/nodist2.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -38,5 +38,5 @@ set -e
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix `pwd`/install
+./configure --prefix "`pwd`/install"
$MAKE install-data
diff --git a/tests/obsolete.test b/tests/obsolete.test
index ab6f59a7a..72ba3b4be 100755
--- a/tests/obsolete.test
+++ b/tests/obsolete.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 2001, 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -27,7 +27,7 @@ AC_INIT
END
$PERL -ne '/AU_DEFUN\(\[(\w+)\]/ && print "$1\n"' \
- $testsrcdir/../m4/obsolete.m4 >> obs
+ "$testsrcdir/../m4/obsolete.m4" >> obs
cat obs >> configure.in
$PERL -ne 'chomp; print "grep $_ stderr || exit 1\n"; ' obs > obs.1
$PERL -ne 'chomp; print "grep $_ configure.in && exit 1\n"; ' obs > obs.2
diff --git a/tests/pr287.test b/tests/pr287.test
index 7f0ac21e8..794199ae3 100755
--- a/tests/pr287.test
+++ b/tests/pr287.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -49,6 +49,6 @@ mkdir install
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix=`cd install && pwd`
+./configure "--prefix=`cd install && pwd`"
$MAKE
$MAKE distdir
diff --git a/tests/pr300-lib.test b/tests/pr300-lib.test
index 821d766e3..beba7dc2d 100755
--- a/tests/pr300-lib.test
+++ b/tests/pr300-lib.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -50,7 +50,7 @@ END
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE
test -f subdir/liba.a
diff --git a/tests/pr300-ltlib.test b/tests/pr300-ltlib.test
index 6e168cd5e..ad352a063 100755
--- a/tests/pr300-ltlib.test
+++ b/tests/pr300-ltlib.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -51,7 +51,7 @@ libtoolize
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE
test -f subdir/liba.la
diff --git a/tests/pr300-prog.test b/tests/pr300-prog.test
index 9841b07b1..57309c357 100755
--- a/tests/pr300-prog.test
+++ b/tests/pr300-prog.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -67,7 +67,7 @@ END
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE test-all
$MAKE test-install
$MAKE test-uninstall
diff --git a/tests/python10.test b/tests/python10.test
index f240bd060..ba83b82b2 100755
--- a/tests/python10.test
+++ b/tests/python10.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -60,28 +60,28 @@ mkdir build
cd build
../configure --prefix="$inst"
$MAKE install
-test -f $inst/your/two.py
-test -f $inst/your/two.pyc
-test -f $inst/your/two.pyo
-test ! -f $inst/my/one.py
-test ! -f $inst/my/one.pyc
-test ! -f $inst/my/one.pyo
+test -f "$inst/your/two.py"
+test -f "$inst/your/two.pyc"
+test -f "$inst/your/two.pyo"
+test ! -f "$inst/my/one.py"
+test ! -f "$inst/my/one.pyc"
+test ! -f "$inst/my/one.pyo"
$MAKE uninstall
-test ! -f $inst/your/two.py
-test ! -f $inst/your/two.pyc
-test ! -f $inst/your/two.pyo
+test ! -f "$inst/your/two.py"
+test ! -f "$inst/your/two.pyc"
+test ! -f "$inst/your/two.pyo"
../configure --prefix="$inst" one=1
$MAKE install
-test ! -f $inst/your/two.py
-test ! -f $inst/your/two.pyc
-test ! -f $inst/your/two.pyo
-test -f $inst/my/one.py
-test -f $inst/my/one.pyc
-test -f $inst/my/one.pyo
+test ! -f "$inst/your/two.py"
+test ! -f "$inst/your/two.pyc"
+test ! -f "$inst/your/two.pyo"
+test -f "$inst/my/one.py"
+test -f "$inst/my/one.pyc"
+test -f "$inst/my/one.pyo"
$MAKE uninstall
-test ! -f $inst/my/one.py
-test ! -f $inst/my/one.pyc
-test ! -f $inst/my/one.pyo
+test ! -f "$inst/my/one.py"
+test ! -f "$inst/my/one.pyc"
+test ! -f "$inst/my/one.pyo"
$MAKE disttest
diff --git a/tests/python3.test b/tests/python3.test
index e8df59bc7..e03032419 100755
--- a/tests/python3.test
+++ b/tests/python3.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -48,6 +48,6 @@ mkdir build
cd build
../configure --prefix="$inst"
$MAKE install
-test -f $inst/my/one.py
-test -f $inst/my/one.pyc
-test -f $inst/my/one.pyo
+test -f "$inst/my/one.py"
+test -f "$inst/my/one.pyc"
+test -f "$inst/my/one.pyo"
diff --git a/tests/strip.test b/tests/strip.test
index 6a708cd50..05ee1e9b4 100755
--- a/tests/strip.test
+++ b/tests/strip.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -49,6 +49,6 @@ mkdir install
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix=`cd install && pwd`
+./configure "--prefix=`cd install && pwd`"
$MAKE
$MAKE install-strip
diff --git a/tests/transform.test b/tests/transform.test
index a420dea49..ae7978b58 100755
--- a/tests/transform.test
+++ b/tests/transform.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -56,7 +56,7 @@ $ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --program-prefix=gnu- --prefix `pwd`/inst --mandir `pwd`/inst/man
+./configure --program-prefix=gnu- --prefix "`pwd`/inst" --mandir "`pwd`/inst/man"
$MAKE
$MAKE test-install
$MAKE uninstall
diff --git a/tests/txinfo13.test b/tests/txinfo13.test
index c79151552..8e0f888a5 100755
--- a/tests/txinfo13.test
+++ b/tests/txinfo13.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -34,7 +34,7 @@ info_TEXINFOS = subdir/main.texi
subdir_main_TEXINFOS = subdir/inc.texi
installcheck-local:
- test -f $(infodir)/main.info
+ test -f "$(infodir)/main.info"
check-local:
test ! -f $(srcdir)/subdir/main.info.bak
END
diff --git a/tests/txinfo19.test b/tests/txinfo19.test
index 2b9813d92..4b45c511b 100755
--- a/tests/txinfo19.test
+++ b/tests/txinfo19.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -44,7 +44,7 @@ $ACLOCAL
$AUTOMAKE --add-missing
$AUTOCONF
-./configure --infodir=`pwd`/_inst
+./configure "--infodir=`pwd`/_inst"
$MAKE
# Make sure .iNN files are installed.
diff --git a/tests/txinfo22.test b/tests/txinfo22.test
index d7b29799c..8afc01ede 100755
--- a/tests/txinfo22.test
+++ b/tests/txinfo22.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -57,7 +57,7 @@ END
mkdir aux1
mkdir tex
-cp $testsrcdir/../lib/texinfo.tex tex
+cp "$testsrcdir/../lib/texinfo.tex" tex
$ACLOCAL
$AUTOMAKE --add-missing
diff --git a/tests/txinfo23.test b/tests/txinfo23.test
index 3aa84faed..225960fa1 100755
--- a/tests/txinfo23.test
+++ b/tests/txinfo23.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -34,7 +34,7 @@ info_TEXINFOS = subdir/main.texi
subdir_main_TEXINFOS = subdir/inc.texi
installcheck-local:
- test -f $(infodir)/main.info
+ test -f "$(infodir)/main.info"
END
mkdir subdir
diff --git a/tests/txinfo26.test b/tests/txinfo26.test
index 86549b250..4d755890b 100755
--- a/tests/txinfo26.test
+++ b/tests/txinfo26.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -53,7 +53,7 @@ $MAKE
$MAKE distclean
mkdir build
cd build
-../configure --srcdir=`pwd`/.. --prefix=`pwd`/_inst --infodir=`pwd`/_inst/info
+../configure "--srcdir=`pwd`/.." "--prefix=`pwd`/_inst" "--infodir=`pwd`/_inst/info"
$MAKE install
test -f ../main.info
test ! -f ./main.info
diff --git a/tests/txinfo27.test b/tests/txinfo27.test
index 3e3a6ef24..0bc18b07c 100755
--- a/tests/txinfo27.test
+++ b/tests/txinfo27.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
@@ -47,6 +47,6 @@ $ACLOCAL
$AUTOMAKE --add-missing
$AUTOCONF
-./configure --prefix=`pwd`/inst --infodir=`pwd`/inst/info
+./configure "--prefix=`pwd`/inst" "--infodir=`pwd`/inst/info"
$MAKE install-info
test -f inst/info/main.info