From: Ralf Wildenhues Date: Sun, 18 Nov 2007 15:23:52 +0000 (+0100) Subject: * tests/output13.test: New test. X-Git-Tag: v1.10b~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6477308a15213f3625d18bb309392bfc1ce2ea5;p=thirdparty%2Fautomake.git * tests/output13.test: New test. * tests/Makefile.am: Adjust. Prompted by report from Bruno Haible in . --- diff --git a/ChangeLog b/ChangeLog index c4ef88d24..0c7d2d43c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-18 Ralf Wildenhues + * tests/output13.test: New test. + * tests/Makefile.am: Adjust. + Prompted by report from Bruno Haible in + . + Fix signal handling in aclocal. * aclocal.in (unlink_tmp): If invoked by a signal, note so in verbose mode. Reinstall default signal handler and reraise, diff --git a/tests/Makefile.am b/tests/Makefile.am index 3c586a1dc..c4e7fc6d4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -416,6 +416,7 @@ output9.test \ output10.test \ output11.test \ output12.test \ +output13.test \ overrid.test \ parse.test \ percent.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index b44613055..e5e71ef00 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -564,6 +564,7 @@ output9.test \ output10.test \ output11.test \ output12.test \ +output13.test \ overrid.test \ parse.test \ percent.test \ diff --git a/tests/output13.test b/tests/output13.test new file mode 100755 index 000000000..05b8ea364 --- /dev/null +++ b/tests/output13.test @@ -0,0 +1,56 @@ +#! /bin/sh +# Copyright (C) 2007 Free Software Foundation, Inc. +# +# This file is part of GNU Automake. +# +# GNU Automake is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Automake is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Automake; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. + +# Make sure an AC_CONFIG_FILES, AC_CONFIG_LINKS, and AC_CONFIG_COMMANDS +# are not prerequisites of `all'. + +. ./defs || exit 1 + +set -e + +cat >> configure.in << \END +AC_SUBST([FOO], [foo]) +if $create; then + AC_CONFIG_FILES([file]) + AC_CONFIG_LINKS([link:input]) + AC_CONFIG_COMMANDS([stamp], [echo stamp > stamp]) +fi +AC_OUTPUT +END + +: >Makefile.am + +echo link > input +echo @FOO@ >file.in + +$ACLOCAL +$AUTOCONF +$AUTOMAKE + +./configure create=false +$MAKE +test ! -f file +test ! -f link +test ! -f stamp + +./configure create=: +test -f file +test -f link +test -f stamp