summaryrefslogtreecommitdiff
path: root/tests/suffix.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2010-06-19 17:32:31 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-06-20 20:31:41 +0200
commite8413c400ac63bdc65a05851d23c2f076dcdee48 (patch)
treef00f26eb0d4d59d4acfd8dbb7023d0daf2cf51a5 /tests/suffix.test
parent2be348413512b885042fe11f35f58a3bcdbc4894 (diff)
downloadautomake-e8413c400ac63bdc65a05851d23c2f076dcdee48.tar.gz
Modernize, improve and extend tests `suffix*.test'.
* tests/suffix3.test: Enable `errexit' shell flag, and related changes. * tests/suffix4.test: Likewise. * tests/suffix6.test: Likewise, and do not create a useless dummy source file. * tests/suffix7.test: Likewise. * tests/suffix5.test: Enable `errexit' shell flag, and related changes. Make grepping of Makefile.in slighty stricter. * tests/suffix.test: Enable `errexit' shell flag, and related changes. Also, do not redirect grep output to /dev/null, as this might unmotivatedly hide useful information. * tests/suffix2.test: Move setting of `errexit' shell flag earlier in the script (just after inclusion of ./defs). Use a more idiomatic way to count text occurrences in Makefile.in with grep. Do not create useless dummy source files. * tests/suffix10.test: Ensure verbose printing of captured make stdout. Minor cosmetic changes. * tests/suffix8.test: Likewise. Also, drop useless call to the env(1) utility, and make grepping of make output stricter by using $FGREP rather than plain grep. * tests/suffix11.test: Likewise. * tests/suffix12.test: Likewise. * tests/suffix9.test: Prefet cat + here-doc over echo to append to the `configure.in' stub. Cosmetic changes. * tests/suffix13.test: Cosmetic spacing change. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/suffix.test')
-rwxr-xr-xtests/suffix.test16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/suffix.test b/tests/suffix.test
index b77e19df6..c790c66a4 100755
--- a/tests/suffix.test
+++ b/tests/suffix.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 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
@@ -18,6 +18,8 @@
. ./defs || Exit 1
+set -e
+
cat >> configure.in << 'END'
AC_PROG_CC
END
@@ -26,10 +28,12 @@ cat > Makefile.am << 'END'
noinst_PROGRAMS = foo
END
-$ACLOCAL || Exit 1
-$AUTOMAKE -i || Exit 1
+$ACLOCAL
+
+$AUTOMAKE -i
+grep '^\.c\.o' Makefile.in
-grep '^\.c\.o' Makefile.in > /dev/null || Exit 1
+$AUTOMAKE
+grep '^\.c\.o' Makefile.in
-$AUTOMAKE || Exit 1
-grep '^\.c\.o' Makefile.in > /dev/null || Exit 1
+: