From: Akim Demaille Date: Thu, 2 Nov 2000 12:23:42 +0000 (+0000) Subject: * tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when X-Git-Tag: autoconf-2.50~489 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a537cc265b98ca35c05b8a373e4aa7d2f8f838;p=thirdparty%2Fautoconf.git * tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when `-v' is passed. --- diff --git a/ChangeLog b/ChangeLog index 9dce4c8af..aff384518 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-11-02 Akim Demaille + + * tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when + `-v' is passed. + 2000-11-01 Pavel Roskin * autoconf.sh: Using trap-safe "exit". diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 0d1cc0a4f..0096dd707 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -193,7 +193,7 @@ divert(2)[]dnl # Wrap up the testing suite with summary statistics. -rm -f at-check-line +rm -f at-check-line at-setup-line at_fail_count=0 if test -z "$at_failed_list"; then if test "$at_ignore_count" = 0; then @@ -281,11 +281,16 @@ pushdef([AT_data_experr], ) if $at_stop_on_error && test -n "$at_failed_list"; then :; else divert(1)[]dnl echo AT_LINE > at-check-line + echo AT_LINE > at-setup-line if $at_verbose; then echo 'testing AT_group_description' echo $at_n " $at_c" fi - echo $at_n "substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c" + if $at_verbose; then + echo "AT_ordinal. $srcdir/AT_LINE..." + else + echo $at_n "substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c" + fi if test -z "$at_skip_mode"; then ( [#] Snippet (d[]AT_ordinal[]( @@ -306,15 +311,18 @@ AT_DEFINE([AT_CLEANUP], $at_traceoff [[#] Snippet )s[]AT_ordinal[]) ) - case $? in + at_status=$? + $at_verbose && + echo $at_n " AT_ordinal. $srcdir/`cat at-setup-line`: $at_c" + case $at_status in 0) echo ok - ;; + ;; 77) echo "ignored near \``cat at-check-line`'" - at_ignore_count=`expr $at_ignore_count + 1` - ;; + at_ignore_count=`expr $at_ignore_count + 1` + ;; *) echo "FAILED near \``cat at-check-line`'" - at_failed_list="$at_failed_list AT_ordinal" - ;; + at_failed_list="$at_failed_list AT_ordinal" + ;; esac else echo 'ignored (skipped)' @@ -364,7 +372,7 @@ $2[]_ATEOF # their content is not checked. AT_DEFINE([AT_CHECK], [$at_traceoff -$at_verbose && echo "$srcdir/AT_LINE: testing..." +$at_verbose && echo "$srcdir/AT_LINE: patsubst([$1], [\([\"`$]\)], \\\1)" echo AT_LINE > at-check-line $at_check_stds && exec 5>&1 6>&2 1>stdout 2>stderr $at_traceon diff --git a/man/autoreconf.1 b/man/autoreconf.1 index 21db35574..dc8f0a2db 100644 --- a/man/autoreconf.1 +++ b/man/autoreconf.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022. -.TH AUTORECONF "1" "October 2000" "GNU autoconf 2.49b" FSF +.TH AUTORECONF "1" "November 2000" "GNU autoconf 2.49b" FSF .SH NAME autoreconf \- Update generated configuration files .SH SYNOPSIS diff --git a/tests/atgeneral.m4 b/tests/atgeneral.m4 index 0d1cc0a4f..0096dd707 100644 --- a/tests/atgeneral.m4 +++ b/tests/atgeneral.m4 @@ -193,7 +193,7 @@ divert(2)[]dnl # Wrap up the testing suite with summary statistics. -rm -f at-check-line +rm -f at-check-line at-setup-line at_fail_count=0 if test -z "$at_failed_list"; then if test "$at_ignore_count" = 0; then @@ -281,11 +281,16 @@ pushdef([AT_data_experr], ) if $at_stop_on_error && test -n "$at_failed_list"; then :; else divert(1)[]dnl echo AT_LINE > at-check-line + echo AT_LINE > at-setup-line if $at_verbose; then echo 'testing AT_group_description' echo $at_n " $at_c" fi - echo $at_n "substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c" + if $at_verbose; then + echo "AT_ordinal. $srcdir/AT_LINE..." + else + echo $at_n "substr(AT_ordinal. $srcdir/AT_LINE , 0, 30)[]$at_c" + fi if test -z "$at_skip_mode"; then ( [#] Snippet (d[]AT_ordinal[]( @@ -306,15 +311,18 @@ AT_DEFINE([AT_CLEANUP], $at_traceoff [[#] Snippet )s[]AT_ordinal[]) ) - case $? in + at_status=$? + $at_verbose && + echo $at_n " AT_ordinal. $srcdir/`cat at-setup-line`: $at_c" + case $at_status in 0) echo ok - ;; + ;; 77) echo "ignored near \``cat at-check-line`'" - at_ignore_count=`expr $at_ignore_count + 1` - ;; + at_ignore_count=`expr $at_ignore_count + 1` + ;; *) echo "FAILED near \``cat at-check-line`'" - at_failed_list="$at_failed_list AT_ordinal" - ;; + at_failed_list="$at_failed_list AT_ordinal" + ;; esac else echo 'ignored (skipped)' @@ -364,7 +372,7 @@ $2[]_ATEOF # their content is not checked. AT_DEFINE([AT_CHECK], [$at_traceoff -$at_verbose && echo "$srcdir/AT_LINE: testing..." +$at_verbose && echo "$srcdir/AT_LINE: patsubst([$1], [\([\"`$]\)], \\\1)" echo AT_LINE > at-check-line $at_check_stds && exec 5>&1 6>&2 1>stdout 2>stderr $at_traceon