summaryrefslogtreecommitdiff
path: root/tests/remake7.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2010-08-13 11:50:31 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2010-12-16 11:34:43 +0100
commit36a58826182f44d25e765816c6a51c3afc8d3f12 (patch)
tree0ebaa85d8116b8b7930c774f4b8787615164c00c /tests/remake7.test
parent4abf2246375e96b8a82affdf04f079e3e9ee7c73 (diff)
downloadautomake-36a58826182f44d25e765816c6a51c3afc8d3f12.tar.gz
Tests: extend checks on remake rules.
This adds proper semantical tests (i.e. run make to check the rebuild rules are correctly triggered) in addition to tentative grepping of the generated Makefile.in(s). * tests/remake.test: Enable `errexit' shell flag, and related changes. Modernize `configure.in'. Add trailing `:' command. Improve heading comments, and add a reference to new sister test remake1a.test. * tests/remake3.test: Likewise (but with sister test being remake3a.test). * tests/remake2.test: Improve heading comments. Enable `errexit' shell flag, and related changes. Modernize `configure.in'. Make grepping of `Makefile.in' slightly stricter. Add trailing `:' command. * tests/remake5.test: Also run the `distcheck' target. Add trailing `:' command. Use proper m4 quoting in configure.in. * tests/remake4.test: Prefer `$me' over hard-coded test name. * tests/remake7.test: Use the `configure.in' stub created by ./defs, rather than writing it from scratch. * tests/remake6.test: Likewise. Also, add trailing `:' command, and ensure verbose printing of captured make output. * tests/remake1a.test: New test, sister of remake.test. * tests/remake3a.test: New test, sister of remake3.test. * tests/remake8a.test: New test. * tests/remake8b.test: Likewise. * tests/remake9a.test: Likewise. * tests/remake9b.test: Likewise. * tests/remake9c.test: Likewise. * tests/remake9d.test: Likewise. * tests/remake10a.test: Likewise. * tests/remake10b.test: Likewise. * tests/remake10c.test: Likewise. * tests/remake11.test: Likewise. * tests/remake12.test: Likewise. * tests/Makefile.am (TESTS): Updated.
Diffstat (limited to 'tests/remake7.test')
-rwxr-xr-xtests/remake7.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/remake7.test b/tests/remake7.test
index 670f60b00..66d4b9c59 100755
--- a/tests/remake7.test
+++ b/tests/remake7.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2010 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -17,12 +17,12 @@
# Make sure remaking rules fail when they should.
. ./defs || Exit 1
+
set -e
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AC_OUTPUT(Makefile sub/Makefile)
+cat >> configure.in << 'END'
+AC_CONFIG_FILES([sub/Makefile])
+AC_OUTPUT
END
cat > Makefile.am <<'END'
@@ -67,4 +67,5 @@ $MAKE && Exit 1
rm -f Makefile.in
$MAKE && Exit 1
+
: