[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autotest function usage
From: |
Ralf Wildenhues |
Subject: |
Re: Autotest function usage |
Date: |
Tue, 20 Nov 2007 22:46:01 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* Paolo Bonzini wrote on Tue, Nov 20, 2007 at 10:26:48PM CET:
> Ralf Wildenhues wrote:
> >* Paolo Bonzini wrote on Tue, Nov 20, 2007 at 10:10:41PM CET:
> >>>I don't mind such a change (except you need to forward port it now), but
> >>>apparently Paolo seemed to think it was ugly for some reason.
> >>Me? :-)
> >
> >I guess I overlooked that smiley in:
> ><http://thread.gmane.org/gmane.comp.sysutils.autoconf.patches/4923/focus=4935>
> For sure I did not think it was a oneliner.
Yeah, I guess I also forgot to actually mention that.
> Also, I was hoping to get the non-quadratic patch in, in the first
> place. But now, I don't see why not.
OK. Well, it's not a one-liner any more. Without objections, I'll
apply tomorrow.
Cheers,
Ralf
2007-11-20 Stepan Kasal <address@hidden>
and Ralf Wildenhues <address@hidden>
* lib/autotest/general.m4 (AT_INIT): Exit awk script after
extracting the line numbers of the last needed test.
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index 8b6a34a..b40db8d 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -872,6 +872,9 @@ else
at_diff=diff
fi
+# Get the last needed group.
+for at_group in $at_groups; do :; done
+
# Extract the start and end lines of each test group at the tail
# of this file
awk '
@@ -880,7 +883,9 @@ BEGIN { FS="" }
start = NR
}
/address@hidden:@AT_STOP_/ {
- print "at_sed" substr ($ 0, 10) "=\"1," start "d;" NR "q\""
+ test = substr ($ 0, 10)
+ print "at_sed" test "=\"1," start "d;" NR "q\""
+ if (test == '$at_group') exit
}' "$at_myself" > "$at_test_source"
. "$at_test_source"
- Re: Autotest function usage, (continued)