automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: -Wall for the testsuite


From: Alexandre Duret-Lutz
Subject: FYI: -Wall for the testsuite
Date: 08 Jul 2002 20:52:04 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I'm checking this in, so that Automake is exercized with all warnings
turned on.  This is especially useful when adding a new warning which
is not enabled by default for users (that's the case in my next patch).

2002-07-08  Alexandre Duret-Lutz  <address@hidden>

        * tests/defs (AUTOMAKE): Add -Wall.
        * tests/outdir.test: Use -Wno-obsolete.

Index: tests/defs
===================================================================
RCS file: /cvs/automake/automake/tests/defs,v
retrieving revision 1.55
diff -u -r1.55 defs
--- tests/defs  6 Jul 2002 10:21:36 -0000       1.55
+++ tests/defs  8 Jul 2002 18:29:56 -0000
@@ -121,7 +121,10 @@
 if test -z "$AUTOMAKE"; then
    perllibdir=$srcdir/../lib
    export perllibdir
-   AUTOMAKE="$PERL `pwd`/../../automake --libdir=$srcdir/../lib --foreign 
-Werror"
+   # Use -Wall -Werror by default.  Tests for which this is inappropriate
+   # (e.g. when testing that a warning is enabled by a specific switch)
+   # should use -Wnone or/and -Wno-error
+   AUTOMAKE="$PERL `pwd`/../../automake --libdir=$srcdir/../lib --foreign 
-Werror -Wall"
 fi
 
 # See how aclocal should be run.
Index: tests/outdir.test
===================================================================
RCS file: /cvs/automake/automake/tests/outdir.test,v
retrieving revision 1.2
diff -u -r1.2 outdir.test
--- tests/outdir.test   20 Oct 2001 11:17:17 -0000      1.2
+++ tests/outdir.test   8 Jul 2002 19:02:29 -0000
@@ -12,7 +12,7 @@
 mkdir zardir
 
 $ACLOCAL || exit 1
-$AUTOMAKE --output-dir=zardir || exit 1
+$AUTOMAKE -Wno-obsolete --output-dir=zardir || exit 1
 
 test -f Makefile.in && exit 1
 test -f zardir/Makefile.in

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]