autoconf-patches
[Top][All Lists]
Advanced

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

15autotest-more-info-prettier.diff


From: derek
Subject: 15autotest-more-info-prettier.diff
Date: 13 Aug 2003 22:12:49 -0000

This is a quick patch, on top of the 13*.diff I just sent, to cause messages
longer than `ok' to print on the line following the test name in order to keep
the output under 80 characters.  Here's a quick sample:

## ----------------------------------------------------- ##
## Concurrent Versions System (CVS) 1.12.1.1 test suite. ##
## ----------------------------------------------------- ##

Initialize a repository

  1: init.at:16        : init                                                ok
  2: init.at:16        : init-l                                              ok
  3: init.at:16        : init-r                                              ok
  4: init.at:16        : init-r-l                                            ok

CVS Version Strings

  5: version.at:16     : version
                         FAILED near `version.at:57'
  6: version.at:16     : version-l
                         FAILED near `version.at:57'
  7: version.at:16     : version-r
                         FAILED near `version.at:50'
  8: version.at:16     : version-r-l
                         FAILED near `version.at:50'
...

Derek

Index: ChangeLog

2003-08-05  Derek Price  <address@hidden>

        * lib/autotest/general.m4 (AT_INIT): Print messages longer than `ok'
        on the line after the test to keep output under 80 characters.

Index: lib/autotest/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v
retrieving revision 1.150
diff -u -r1.150 general.m4
--- lib/autotest/general.m4     13 Aug 2003 21:35:28 -0000      1.150
+++ lib/autotest/general.m4     13 Aug 2003 21:47:10 -0000
@@ -640,6 +640,7 @@
       at_group_count=`expr 1 + $at_group_count`
       $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C"
       echo $ECHO_N "$at_group. $at_setup_line: $ECHO_C" >> $at_group_log
+      at_skip_line=:
       case $at_xfail:$at_status in
        yes:0)
            at_msg="UNEXPECTED PASS"
@@ -647,6 +648,7 @@
            at_errexit=$at_errexit_p
            ;;
        no:0)
+            at_skip_line=false
            at_msg="ok"
            at_pass_list="$at_pass_list $at_group"
            at_errexit=false
@@ -667,6 +669,10 @@
            at_errexit=$at_errexit_p
            ;;
       esac
+      if $at_skip_line; then
+        echo
+        echo $ECHO_N "                         $ECHO_C"
+      fi
       echo $at_msg
       at_log_msg="$at_group. $at_setup_line: $at_msg"
       case $at_status in




reply via email to

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