diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2010-06-18 12:12:54 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2010-08-10 19:39:22 +0200 |
commit | f9fe878b53bca8297dbb6df861a99632f2f9b5b3 (patch) | |
tree | 3159487e0ab77324c6cefa616e0a7ff49736da88 /tests/colon7.test | |
parent | 4a709b8a432a4e5619e526c4c313902c834770b4 (diff) | |
download | automake-f9fe878b53bca8297dbb6df861a99632f2f9b5b3.tar.gz |
Modernize, improve and/or extend tests `colon*.test.
* tests/colon.test: Rely on the `configure.in' stub created by
`./defs', rather than writing one from scratch. Do not create
a useless dummy file. Add trailing `:' command.
* tests/colon4.test: Enable the `errexit' shell flag, and
related changes. Rely on the `configure.in' stub created by
`./defs', rather than writing one from scratch.
* tests/colon7.test: Enable `errexit' shell flag, and related
changes. Improve the generated `configure.in' file. Add
trailing `:' command.
* tests/colon2.test: Likewise. Also, add some new checks.
* tests/colon5.test: Improve the generated `configure.in' file.
Add new, much deeper checks. Add trailing `:' command.
* tests/colon6.test: Likewise.
* tests/colon3.test: Improve the generated `configure.in' file.
Prefer perl over pipelined grep. Made stricter. Other changes,
cosmetic and not.
Diffstat (limited to 'tests/colon7.test')
-rwxr-xr-x | tests/colon7.test | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/colon7.test b/tests/colon7.test index 4df6a1302..4195188a2 100755 --- a/tests/colon7.test +++ b/tests/colon7.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1998, 2000, 2001, 2002, 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 @@ -19,9 +20,12 @@ . ./defs || Exit 1 +set -e + cat > configure.in << 'END' -AC_INIT -AM_INIT_AUTOMAKE(nonesuch, nonesuch) +AC_INIT([colon7], [1.0]) +AM_INIT_AUTOMAKE +dnl: Please do not add proper m4 quoting here. AC_OUTPUT(subdir/bar:subdir/foo \ Makefile \ subdir/Makefile @@ -34,8 +38,8 @@ mkdir subdir : > subdir/Makefile.am : > subdir/foo -$ACLOCAL || Exit 1 -$AUTOMAKE || Exit 1 +$ACLOCAL +$AUTOMAKE # shouldn't have any bar.in grep 'bar.in' subdir/Makefile.in && Exit 1 @@ -43,4 +47,4 @@ grep 'bar.in' subdir/Makefile.in && Exit 1 # DIST_COMMON should have foo, not subdir/foo grep 'DIST_COMMON.*subdir/foo' subdir/Makefile.in && Exit 1 -Exit 0 +: |