From: Stefano Lattarini Date: Mon, 20 Dec 2010 18:28:35 +0000 (+0100) Subject: New test on silent-rules mode and portability warnings. X-Git-Tag: ng-0.5a~248^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bdcb49a98a4d57a2daac9945d1623e39c3c8a91;p=thirdparty%2Fautomake.git New test on silent-rules mode and portability warnings. * tests/silent-nowarn.test: New test. * tests/Makefile.am (TESTS): Update. --- diff --git a/ChangeLog b/ChangeLog index 665e16571..d30523d61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-01-15 Stefano Lattarini + New test on silent-rules mode and portability warnings. + * tests/silent-nowarn.test: New test. + * tests/Makefile.am (TESTS): Update. + Add new tests on strictness and warnings precedence and overriding. * tests/strictness-override.test: New test. * tests/strictness-precedence.test: New test. diff --git a/tests/Makefile.am b/tests/Makefile.am index 4b6400b70..53dbe9cc6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -792,6 +792,7 @@ silent-lex-gcc.test \ silent-lex-generic.test \ silent-yacc-gcc.test \ silent-yacc-generic.test \ +silent-nowarn.test \ sinclude.test \ srcsub.test \ srcsub2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index c15fc1244..f2d695fc2 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1055,6 +1055,7 @@ silent-lex-gcc.test \ silent-lex-generic.test \ silent-yacc-gcc.test \ silent-yacc-generic.test \ +silent-nowarn.test \ sinclude.test \ srcsub.test \ srcsub2.test \ diff --git a/tests/silent-nowarn.test b/tests/silent-nowarn.test new file mode 100755 index 000000000..f0f5e7078 --- /dev/null +++ b/tests/silent-nowarn.test @@ -0,0 +1,44 @@ +#!/bin/sh +# Copyright (C) 2011 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 +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Check that the 'silent-rules' mode suppresses the warnings for recursive +# make variable expansions. This should happen regardless of whether and +# where these warnings are requested. + +. ./defs || Exit 1 + +cat > configure.in < Makefile.am <<'END' +AUTOMAKE_OPTIONS = gnu -Wall -Wportability-recursive +foo = $($(v)) $(x$(v)) $($(v)x) $(y$(v)z) +END + +# Files required bu gnu strictness. +touch AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS + +$ACLOCAL +$AUTOMAKE --gnu -Wall -Wportability-recursive + +: