* Re: [RFA/testsuite] Significantly speed up commands.exp
@ 2002-04-03 7:19 Michael Elizabeth Chastain
2002-04-03 7:30 ` Fernando Nasser
0 siblings, 1 reply; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2002-04-03 7:19 UTC (permalink / raw)
To: drow, fnasser; +Cc: gdb-patches
Fernando Nasser writes:
> So lets go ahead and remove the hack.
> Thank you very much.
My test bed gives it ten configurations up. Test suite time drops from
636 seconds to 528 seconds for a typical configuration. Note that I
use dejagnu 1.4.2, expect 5.33, tcl 8.34.
Works for me,
Michael C
> 2002-04-02 Daniel Jacobowitz <drow@mvista.com>
>
> * lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
> (gdb_expect): Remove $notransfer hack.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFA/testsuite] Significantly speed up commands.exp
2002-04-03 7:19 [RFA/testsuite] Significantly speed up commands.exp Michael Elizabeth Chastain
@ 2002-04-03 7:30 ` Fernando Nasser
0 siblings, 0 replies; 5+ messages in thread
From: Fernando Nasser @ 2002-04-03 7:30 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: drow, gdb-patches
Michael Elizabeth Chastain wrote:
>
> Fernando Nasser writes:
> > So lets go ahead and remove the hack.
> > Thank you very much.
>
> My test bed gives it ten configurations up. Test suite time drops from
> 636 seconds to 528 seconds for a typical configuration. Note that I
> use dejagnu 1.4.2, expect 5.33, tcl 8.34.
>
> Works for me,
>
> Michael C
>
Thanks for verifying it Michael.
Cheers,
Fernando
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFA/testsuite] Significantly speed up commands.exp
2002-04-03 6:21 ` Fernando Nasser
@ 2002-04-03 8:17 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-04-03 8:17 UTC (permalink / raw)
To: gdb-patches
On Wed, Apr 03, 2002 at 09:18:59AM -0500, Fernando Nasser wrote:
> This apparently was a problem with HP-UX. Anyway, we should not
> have to hack GDB -- HP-UX folks have to get a newer Dejagnu if
> they have not done so yet.
>
> So lets go ahead and remove the hack.
>
> Thank you very much.
Thanks, it's in.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFA/testsuite] Significantly speed up commands.exp
2002-04-02 22:20 Daniel Jacobowitz
@ 2002-04-03 6:21 ` Fernando Nasser
2002-04-03 8:17 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Fernando Nasser @ 2002-04-03 6:21 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
This apparently was a problem with HP-UX. Anyway, we should not
have to hack GDB -- HP-UX folks have to get a newer Dejagnu if
they have not done so yet.
So lets go ahead and remove the hack.
Thank you very much.
Fernando
Daniel Jacobowitz wrote:
>
> There's no good reason for how long commands.exp takes on any fast machine.
> I figured something was timing out somewhere and went digging. Sure enough,
> there's a nasty hack in gdb_expect to support -notransfer as the first
> argument to gdb_expect and pass it on to remote_expect in the same way; but
> the comment alludes to a DejaGNU bug which seems to be long gone. At least,
> I couldn't find it in any version of DejaGNU I looked at. Similarly, since
> 1994 at least and probably earlier, expect has wanted -notransfer before the
> individual -re entries, not before the whole block.
>
> Killing the hack saves about a minute in timeouts; every line of a
> multi-line command was pausing for two seconds. This makes my 4-way test
> runs a little happier. I think there's another culprit somewhere, but
> before this patch:
>
> real 23m38.255s
> user 8m22.000s
> sys 1m44.880s
>
> Afterwards, it should be about 19min. Wall clock twice system time used
> isn't too shabby, since there's a lot of I/O involved.
>
> OK to commit?
>
> --
> Daniel Jacobowitz Carnegie Mellon University
> MontaVista Software Debian GNU/Linux Developer
>
> 2002-04-02 Daniel Jacobowitz <drow@mvista.com>
>
> * lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
> (gdb_expect): Remove $notransfer hack.
>
> Index: gdb.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
> retrieving revision 1.14
> diff -u -p -r1.14 gdb.exp
> --- gdb/gdb/testsuite/lib/gdb.exp 2001/10/02 19:42:10 1.14
> +++ gdb/gdb/testsuite/lib/gdb.exp 2002/04/03 06:14:12
> @@ -440,9 +440,9 @@ proc gdb_test { args } {
> # we need to set -notransfer expect option so that
> # command output is not lost for pattern matching
> # - guo
> - gdb_expect -notransfer 2 {
> - -re "\[\r\n\]" { }
> - timeout { }
> + gdb_expect 2 {
> + -notransfer -re "\[\r\n\]" { verbose "partial: match" 3 }
> + timeout { verbose "partial: timeout" 3 }
> }
> set string [string range "$string" [expr $foo + 1] end];
> } else {
> @@ -1132,20 +1132,6 @@ proc send_gdb { string } {
> #
>
> proc gdb_expect { args } {
> - # allow -notransfer expect flag specification,
> - # used by gdb_test routine for multi-line commands.
> - # packed with gtimeout when fed to remote_expect routine,
> - # which is a hack but due to what looks like a res and orig
> - # parsing problem in remote_expect routine (dejagnu/lib/remote.exp):
> - # what's fed into res is not removed from orig.
> - # - guo
> - if { [lindex $args 0] == "-notransfer" } {
> - set notransfer -notransfer;
> - set args [lrange $args 1 end];
> - } else {
> - set notransfer "";
> - }
> -
> if { [llength $args] == 2 && [lindex $args 0] != "-re" } {
> set gtimeout [lindex $args 0];
> set expcode [list [lindex $args 1]];
> @@ -1186,7 +1172,7 @@ proc gdb_expect { args } {
> }
> }
> set code [catch \
> - {uplevel remote_expect host "$gtimeout $notransfer" $expcode} string];
> + {uplevel remote_expect host $gtimeout $expcode} string];
> if [info exists old_val] {
> set remote_suppress_flag $old_val;
> } else {
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 5+ messages in thread
* [RFA/testsuite] Significantly speed up commands.exp
@ 2002-04-02 22:20 Daniel Jacobowitz
2002-04-03 6:21 ` Fernando Nasser
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-04-02 22:20 UTC (permalink / raw)
To: gdb-patches, fnasser
There's no good reason for how long commands.exp takes on any fast machine.
I figured something was timing out somewhere and went digging. Sure enough,
there's a nasty hack in gdb_expect to support -notransfer as the first
argument to gdb_expect and pass it on to remote_expect in the same way; but
the comment alludes to a DejaGNU bug which seems to be long gone. At least,
I couldn't find it in any version of DejaGNU I looked at. Similarly, since
1994 at least and probably earlier, expect has wanted -notransfer before the
individual -re entries, not before the whole block.
Killing the hack saves about a minute in timeouts; every line of a
multi-line command was pausing for two seconds. This makes my 4-way test
runs a little happier. I think there's another culprit somewhere, but
before this patch:
real 23m38.255s
user 8m22.000s
sys 1m44.880s
Afterwards, it should be about 19min. Wall clock twice system time used
isn't too shabby, since there's a lot of I/O involved.
OK to commit?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
2002-04-02 Daniel Jacobowitz <drow@mvista.com>
* lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
(gdb_expect): Remove $notransfer hack.
Index: gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.14
diff -u -p -r1.14 gdb.exp
--- gdb/gdb/testsuite/lib/gdb.exp 2001/10/02 19:42:10 1.14
+++ gdb/gdb/testsuite/lib/gdb.exp 2002/04/03 06:14:12
@@ -440,9 +440,9 @@ proc gdb_test { args } {
# we need to set -notransfer expect option so that
# command output is not lost for pattern matching
# - guo
- gdb_expect -notransfer 2 {
- -re "\[\r\n\]" { }
- timeout { }
+ gdb_expect 2 {
+ -notransfer -re "\[\r\n\]" { verbose "partial: match" 3 }
+ timeout { verbose "partial: timeout" 3 }
}
set string [string range "$string" [expr $foo + 1] end];
} else {
@@ -1132,20 +1132,6 @@ proc send_gdb { string } {
#
proc gdb_expect { args } {
- # allow -notransfer expect flag specification,
- # used by gdb_test routine for multi-line commands.
- # packed with gtimeout when fed to remote_expect routine,
- # which is a hack but due to what looks like a res and orig
- # parsing problem in remote_expect routine (dejagnu/lib/remote.exp):
- # what's fed into res is not removed from orig.
- # - guo
- if { [lindex $args 0] == "-notransfer" } {
- set notransfer -notransfer;
- set args [lrange $args 1 end];
- } else {
- set notransfer "";
- }
-
if { [llength $args] == 2 && [lindex $args 0] != "-re" } {
set gtimeout [lindex $args 0];
set expcode [list [lindex $args 1]];
@@ -1186,7 +1172,7 @@ proc gdb_expect { args } {
}
}
set code [catch \
- {uplevel remote_expect host "$gtimeout $notransfer" $expcode} string];
+ {uplevel remote_expect host $gtimeout $expcode} string];
if [info exists old_val] {
set remote_suppress_flag $old_val;
} else {
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-03 16:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03 7:19 [RFA/testsuite] Significantly speed up commands.exp Michael Elizabeth Chastain
2002-04-03 7:30 ` Fernando Nasser
-- strict thread matches above, loose matches on Subject: below --
2002-04-02 22:20 Daniel Jacobowitz
2002-04-03 6:21 ` Fernando Nasser
2002-04-03 8:17 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox