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.
#! /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.
#
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.
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE check >stdout
cat stdout
grep 'PASS: subrun.sh' stdout
#! /bin/sh
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE check >stdout && exit 1
cat stdout
grep 'FAIL: fail.sh' stdout
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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)
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU 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
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
#!/bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
#! /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.
#
grep 'MKDIR_P.*\.' make.log && exit 1
cd ..
-./configure --prefix `pwd`
+./configure --prefix "`pwd`"
$MAKE distcheck
exit 0
#!/bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
test -f 'inst/my/hello$world'
$MAKE check-dist
#! /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.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE install
#! /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.
#
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.
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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.
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$AUTOMAKE
# Use --srcdir with an absolute path because it's harder
# to support in `distdir'.
-./configure --srcdir `pwd`
+./configure --srcdir "`pwd`"
$MAKE test
#! /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.
#
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
# 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
#! /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.
#
}
EOF
-./configure --prefix `pwd`
+./configure --prefix "`pwd`"
$MAKE distcheck
$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
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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'
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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'
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --add-missing
-./configure --with-lispdir=`pwd`/lisp
+./configure "--with-lispdir=`pwd`/lisp"
$MAKE
test -f am-one.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
#!/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.
#
# 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
#!/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.
#
# 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
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix `pwd`/sub
+./configure --prefix "`pwd`/sub"
$MAKE installdirs
test ! -d sub/man
#! /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.
#
: > 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
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a --copy
-./configure --prefix `pwd`/inst --program-prefix=p
+./configure --prefix "`pwd`/inst" --program-prefix=p
$MAKE
$MAKE test-install-data
$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
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix `pwd`/install
+./configure --prefix "`pwd`/install"
$MAKE install-data
#! /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.
#
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
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix=`cd install && pwd`
+./configure "--prefix=`cd install && pwd`"
$MAKE
$MAKE distdir
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE
test -f subdir/liba.a
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE
test -f subdir/liba.la
#! /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.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE --copy --add-missing
-./configure --prefix `pwd`/inst
+./configure --prefix "`pwd`/inst"
$MAKE test-all
$MAKE test-install
$MAKE test-uninstall
#! /bin/sh
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
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"
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix=`cd install && pwd`
+./configure "--prefix=`cd install && pwd`"
$MAKE
$MAKE install-strip
#! /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.
#
$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
#! /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.
#
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
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$AUTOMAKE --add-missing
$AUTOCONF
-./configure --infodir=`pwd`/_inst
+./configure "--infodir=`pwd`/_inst"
$MAKE
# Make sure .iNN files are installed.
#! /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.
#
mkdir aux1
mkdir tex
-cp $testsrcdir/../lib/texinfo.tex tex
+cp "$testsrcdir/../lib/texinfo.tex" tex
$ACLOCAL
$AUTOMAKE --add-missing
#! /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.
#
subdir_main_TEXINFOS = subdir/inc.texi
installcheck-local:
- test -f $(infodir)/main.info
+ test -f "$(infodir)/main.info"
END
mkdir subdir
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$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
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$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