From 6f880d1558d240ba33afd37456755fc382b0f5d2 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sun, 6 Jun 2010 19:46:11 +0200 Subject: [PATCH] Coverage for use of anachronistic variables. * tests/oldvars.test: New test. * tests/Makefile.am: Update. Signed-off-by: Ralf Wildenhues --- ChangeLog | 4 ++++ tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/oldvars.test | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100755 tests/oldvars.test diff --git a/ChangeLog b/ChangeLog index 3be7359..7d19cf1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-06-06 Ralf Wildenhues + Coverage for use of anachronistic variables. + * tests/oldvars.test: New test. + * tests/Makefile.am: Update. + Testsuite coverage for bogus macro file serial numbers. * tests/acloca18.test: Also test ill-formed serial numbers and serial numbers after macro definitions. diff --git a/tests/Makefile.am b/tests/Makefile.am index 0db7851..2a46750 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -518,6 +518,7 @@ number.test \ objc.test \ objc2.test \ obsolete.test \ +oldvars.test \ order.test \ outdir.test \ output.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index a59d1ba..f09b1f0 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -756,6 +756,7 @@ number.test \ objc.test \ objc2.test \ obsolete.test \ +oldvars.test \ order.test \ outdir.test \ output.test \ diff --git a/tests/oldvars.test b/tests/oldvars.test new file mode 100755 index 0000000..7a2bb71 --- /dev/null +++ b/tests/oldvars.test @@ -0,0 +1,37 @@ +#! /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 . + +# Use of these variables is deprecated: +# LISP, HEADERS, DATA, SCRIPTS, LTLIBRARIES, LIBRARIES, PROGRAMS, MANS. + +. ./defs || Exit 1 + +set -e + +cat >Makefile.am <<\EOF +DATA = +HEADERS = +LIBRARIES = +LISP = +LTLIBRARIES = +MANS = +PROGRAMS = +SCRIPTS = +EOF + +$ACLOCAL +AUTOMAKE_fails +test `grep -c anachronism stderr` -eq 8 -- 2.7.4