From: Ralf Wildenhues Date: Sun, 6 Jun 2010 17:48:52 +0000 (+0200) Subject: Coverage for TAGS_DEPENDENCIES warning. X-Git-Tag: ng-0.5a~411^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd7cefb2083816ab1e7126e1ed39d2fd9868230;p=thirdparty%2Fautomake.git Coverage for TAGS_DEPENDENCIES warning. * tests/tags2.test: New test. * tests/Makefile.am: Update. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 7d19cf13d..fdcf86f5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-06-06 Ralf Wildenhues + Coverage for TAGS_DEPENDENCIES warning. + * tests/tags2.test: New test. + * tests/Makefile.am: Update. + Coverage for use of anachronistic variables. * tests/oldvars.test: New test. * tests/Makefile.am: Update. diff --git a/tests/Makefile.am b/tests/Makefile.am index 2a467506d..361294b24 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -711,6 +711,7 @@ symlink2.test \ symlink3.test \ syntax.test \ tags.test \ +tags2.test \ tagsub.test \ tar.test \ tar2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index f09b1f02e..a259a365d 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -949,6 +949,7 @@ symlink2.test \ symlink3.test \ syntax.test \ tags.test \ +tags2.test \ tagsub.test \ tar.test \ tar2.test \ diff --git a/tests/tags2.test b/tests/tags2.test new file mode 100755 index 000000000..f6e018c48 --- /dev/null +++ b/tests/tags2.test @@ -0,0 +1,44 @@ +#! /bin/sh +# Copyright (C) 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 +# 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 . + +# TAGS_DEPENDENCIES only make sense if other tag-worthy things (such as +# sources) exist. + +. ./defs || Exit 1 + +set -e + +cat >> configure.in << 'END' +AC_PROG_CC +AC_OUTPUT +END + +cat >Makefile.am << 'END' +TAGS_DEPENDENCIES = foo +END + +$ACLOCAL +AUTOMAKE_fails +grep 'define.*TAGS_DEPENDENCIES.*without' stderr + +cat >>Makefile.am << 'END' +bin_PROGRAMS = bar +END + +AUTOMAKE_run 0 +grep 'define.*TAGS_DEPENDENCIES.*without' stderr && Exit 1 + +: