]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* tests/output13.test: New test.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Nov 2007 15:23:52 +0000 (16:23 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 18 Nov 2007 15:23:52 +0000 (16:23 +0100)
* tests/Makefile.am: Adjust.
Prompted by report from Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00479.html>.

ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/output13.test [new file with mode: 0755]

index c4ef88d248b7704bce64715a50957d25a609ee86..0c7d2d43cefa02e65dd234739c8cc66a8677d832 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-11-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * tests/output13.test: New test.
+       * tests/Makefile.am: Adjust.
+       Prompted by report from Bruno Haible in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00479.html>.
+
        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,
index 3c586a1dc3436f57c52d0825375da53a4bf0bca9..c4e7fc6d4e3249a3d8a83a0edfc31f6657782922 100644 (file)
@@ -416,6 +416,7 @@ output9.test \
 output10.test \
 output11.test \
 output12.test \
+output13.test \
 overrid.test \
 parse.test \
 percent.test \
index b446130551831006c292182bd2e1af0d55e0445b..e5e71ef00736e64e5b3aae43b7357973101c37d5 100644 (file)
@@ -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 (executable)
index 0000000..05b8ea3
--- /dev/null
@@ -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