libtool-patches
[Top][All Lists]
Advanced

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

Enable colored Autotest testsuite output if available.


From: Ralf Wildenhues
Subject: Enable colored Autotest testsuite output if available.
Date: Sun, 13 Jun 2010 13:17:02 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

OK to commit this patch if this one is accepted into Autoconf?
<http://lists.gnu.org/archive/html/autoconf-patches/2010-06/msg00031.html>

The move the testsuite.at code above AT_INIT should have no impact
beside reordering things in the PREPARE_TESTS diversion a bit, which
should be harmless (I checked the diff with current git Autoconf).

Thanks,
Ralf

    Enable colored Autotest testsuite output if available.
    
    * tests/testsuite.at: Move AT_INIT call down to late in the
    file, all prior code can go beforehand.
    Call AT_COLOR_TESTS if defined.

diff --git a/tests/testsuite.at b/tests/testsuite.at
index 423e544..3935962 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -1,6 +1,6 @@
 # Process with autom4te to create an -*- Autotest -*- test suite.
 #
-#   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+#   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 #   Foundation, Inc.
 #   Written by Gary V. Vaughan, 2004
 #
@@ -23,8 +23,6 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 ####
 
-AT_INIT
-
 m4_divert_push([PREPARE_TESTS])dnl
 : ${tst_dist=dist}
 : ${ACLOCAL=aclocal}
@@ -441,6 +439,11 @@ m4_pattern_allow([^dnl$])
 # We exercise these tools.
 dnl AT_TESTED([grep autoreconf autom4te automake])
 
+# Enable colored output if available.
+m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS])
+
+AT_INIT
+
 ## ----------- ##
 ## The suite.  ##
 ## ----------- ##



reply via email to

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