From: Ralf Wildenhues Date: Wed, 10 May 2006 20:59:29 +0000 (+0000) Subject: * tests/overrid.test: Change all regexes for warning messages to X-Git-Tag: Release-1-9b~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683b54c0fe403bb31abaca727bc141708bc84d47;p=thirdparty%2Fautomake.git * tests/overrid.test: Change all regexes for warning messages to match after a colon, so that the prepended file names do not cause false matches. Tighten overrides regex. Fix typo `cleam-am-local' -> `clean-am-local'. --- diff --git a/ChangeLog b/ChangeLog index 0e1664e3e..063391a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-05-10 Ralf Wildenhues + * tests/overrid.test: Change all regexes for warning messages to + match after a colon, so that the prepended file names do not + cause false matches. Tighten overrides regex. Fix typo + `cleam-am-local' -> `clean-am-local'. + * tests/java.test: `configure' uses a trap, so use `(exit 77); exit 77' to portably set the exit status similar to AS_EXIT. * tests/fn99.test: propagate nonzero exit status from subshell. diff --git a/tests/overrid.test b/tests/overrid.test index 82983d913..97abd0312 100755 --- a/tests/overrid.test +++ b/tests/overrid.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -48,18 +48,18 @@ END $ACLOCAL $AUTOMAKE -Wno-override AUTOMAKE_fails -grep install-local stderr && exit 1 # There is no such thing as install-local -grep installcheck-local stderr -grep html-local stderr +grep ':.*install-local' stderr && exit 1 # There is no such thing as install-local +grep ':.*installcheck-local' stderr +grep ':.*html-local' stderr # Make sure overriding *-am targets suggest using *-local, not *-am. -grep cleam-am-local stderr && exit 1 -grep clean-local stderr +grep ':.*clean-am-local' stderr && exit 1 +grep ':.*clean-local' stderr # Conditional overrides ought to be diagnosed, but it can't be done yet. # See the FIXME in Automake::Rule::define. Once this is fixed, the grep below # will fail. If you see the failure, it means you fixed Automake. Well done! # Just strip out the next '&& exit 1' and this comment. -grep ps stderr && exit 1 +grep ':.*overrides.*ps' stderr && exit 1 # Test for another issue. Overriding html: should cause only one # html: rule to be output.