From: Stefano Lattarini Date: Tue, 10 Aug 2010 16:56:38 +0000 (+0200) Subject: Tweak and extend tests `pr[!0-9]*.test'. X-Git-Tag: v1.11.1b~62^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39584250af1d57402795753de4008a8afd87334b;p=thirdparty%2Fautomake.git Tweak and extend tests `pr[!0-9]*.test'. * tests/primary3.test: Add trailing `:' command. * tests/primary.test: Make grepping of Automake's stderr stricter. Also, add trailing `:' command, and cosmetic changes in spacing. * tests/primary2.test: Likewise. * tests/prefix.test: Enable `errexit' shell flags, and related changes. Add a trailing `:' command. * tests/proginst.test: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 633703e53..e39a5b847 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2010-08-09 Stefano Lattarini + Tweak and extend tests `pr[!0-9]*.test'. + * tests/primary3.test: Add trailing `:' command. + * tests/primary.test: Make grepping of Automake's stderr stricter. + Also, add trailing `:' command, and cosmetic changes in spacing. + * tests/primary2.test: Likewise. + * tests/prefix.test: Enable `errexit' shell flags, and related + changes. Add a trailing `:' command. + * tests/proginst.test: Likewise. + Modernize, improve and extend tests for PR (`pr[0-9]*.test'). * tests/pr2.test: Add trailing `:' command. * tests/pr229.test: Likewise. diff --git a/tests/prefix.test b/tests/prefix.test index 8199bd456..8ba92ef6c 100755 --- a/tests/prefix.test +++ b/tests/prefix.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1996, 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 @@ -27,5 +29,7 @@ bnidir = $(prefix)/bni bni_PROGRAMS = zardoz EOF -$ACLOCAL || Exit 1 +$ACLOCAL $AUTOMAKE + +: diff --git a/tests/primary.test b/tests/primary.test index ac5e54fc4..a866f8f7d 100755 --- a/tests/primary.test +++ b/tests/primary.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 1996, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 1996, 2001, 2002, 2003, 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 @@ -26,4 +27,7 @@ END $ACLOCAL AUTOMAKE_fails -grep 'EXTRA_PROGRAMS' stderr +grep 'bin_PROGRAMS.*configure substitution' stderr +grep 'EXTRA_PROGRAMS.*not defined' stderr + +: diff --git a/tests/primary2.test b/tests/primary2.test index faa7aed70..2fb3a605c 100755 --- a/tests/primary2.test +++ b/tests/primary2.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 1996, 1997, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 2001, 2002, 2003, 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 @@ -29,4 +30,6 @@ END $ACLOCAL AUTOMAKE_fails -grep EXTRA_PROGRAMS stderr +grep 'EXTRA_PROGRAMS.*configure substitution' stderr + +: diff --git a/tests/primary3.test b/tests/primary3.test index 578d05324..afccd0cbc 100755 --- a/tests/primary3.test +++ b/tests/primary3.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 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 @@ -38,3 +38,5 @@ $AUTOCONF $AUTOMAKE ./configure $MAKE + +: diff --git a/tests/proginst.test b/tests/proginst.test index 8881b9d6f..31745b7e3 100755 --- a/tests/proginst.test +++ b/tests/proginst.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 1996, 1998, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1996, 1998, 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,13 @@ . ./defs || Exit 1 +set -e + cat > Makefile.am << 'END' bin_SCRIPTS = zardoz qbert brownie END -$ACLOCAL || Exit 1 +$ACLOCAL $AUTOMAKE + +: