* [proposal/testsuite] require build == host
@ 2004-07-25 1:18 Michael Chastain
2004-07-25 1:52 ` Felix Lee
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Michael Chastain @ 2004-07-25 1:18 UTC (permalink / raw)
To: gdb
I'm working on a test script for the 'edit' command. In order to test
the 'edit' command, the test script has to manage files on the host
machine (where gdb is running), not the build machine (where dejagnu is
running).
A recapitulation:
build runs dejagnu and the *.exp scripts
host runs gcc, as, ld, and gdb
target runs the test program such as "callfuncs" or "structs2"
I started looking at how other gdb test scripts work in a configuration
where build and host are different machines, and, well, they don't.
There are about a dozen scripts that compile test files with header
files, and except for list.exp, none of them download their *.h files to
the host machine. gcore.exp manipulates files that gdb creates on the
host machine. It needs to "remote upload" the files that gdb creates
back to the build machine, but it doesn't. And so on.
Of course the test suite supports a target machine which is separate
from the build/host machine. That is not at issue.
I don't think anyone actually uses a configuration with separate build
and host. So I propose this patch to document that the gdb test suite
requires that build and host be the same machine.
I'll give this proposal a week for discussion. I'm hoping that the
discussion goes "you're right, build-cross-host is silly and
unnecessary, just drop it already", but someone may have a good reason
for wanting it.
Testing: I built gdbint.texinfo with makeinfo 4.7 to check the syntax.
But that's not really important yet. This is about the proposal,
not about the specific patch.
Comments?
Michael C
2004-07-24 Michael Chastain <mec.gnu@mindspring.com>
* gdbint.texinfo (Testsuite): Document that build and host
must be the same machine.
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.214
diff -c -3 -p -r1.214 gdbint.texinfo
*** gdbint.texinfo 1 Jul 2004 20:25:54 -0000 1.214
--- gdbint.texinfo 25 Jul 2004 00:01:08 -0000
*************** difficult to test, such as code that han
*** 6315,6320 ****
--- 6315,6325 ----
in particular versions of compilers, and it's OK not to try to write
tests for all of those.
+ DejaGNU supports separate build, host, and target machines. However,
+ the @value{GDBN} testsuite requires that the host machine be the
+ same as the build machine. This requirement simplifies the writing
+ of test files.
+
@section Testsuite Organization
@cindex test suite organization
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [proposal/testsuite] require build == host
2004-07-25 1:18 [proposal/testsuite] require build == host Michael Chastain
@ 2004-07-25 1:52 ` Felix Lee
2004-07-25 2:43 ` Daniel Jacobowitz
2004-07-25 7:59 ` Eli Zaretskii
2004-07-27 0:45 ` Andrew Cagney
2 siblings, 1 reply; 13+ messages in thread
From: Felix Lee @ 2004-07-25 1:52 UTC (permalink / raw)
To: Michael Chastain; +Cc: gdb
mec.gnu@mindspring.com (Michael Chastain):
> I don't think anyone actually uses a configuration with separate build
> and host. So I propose this patch to document that the gdb test suite
> requires that build and host be the same machine.
hm. gdb runs on more systems than expect does, and my feeling at
the moment is that it's sometimes easier to do build!=host
testing than it is to get expect running, like on weird embedded
linux devices.
not that I particularly like the testsuite complications added by
build!=host, but I don't know a better alternative yet.
--
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-25 1:52 ` Felix Lee
@ 2004-07-25 2:43 ` Daniel Jacobowitz
[not found] ` <drow@false.org>
0 siblings, 1 reply; 13+ messages in thread
From: Daniel Jacobowitz @ 2004-07-25 2:43 UTC (permalink / raw)
To: Felix Lee; +Cc: Michael Chastain, gdb
On Sat, Jul 24, 2004 at 06:18:16PM -0700, Felix Lee wrote:
> mec.gnu@mindspring.com (Michael Chastain):
> > I don't think anyone actually uses a configuration with separate build
> > and host. So I propose this patch to document that the gdb test suite
> > requires that build and host be the same machine.
>
> hm. gdb runs on more systems than expect does, and my feeling at
> the moment is that it's sometimes easier to do build!=host
> testing than it is to get expect running, like on weird embedded
> linux devices.
>
> not that I particularly like the testsuite complications added by
> build!=host, but I don't know a better alternative yet.
Have you ever actually needed to do this?
When I tested GDB on embedded Linux devices, expect was not the issue.
Expect is easy if you have enough RAM footprint to fit a GDB binary!
Also, what is a host on which GDB works but expect does not?
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-25 1:18 [proposal/testsuite] require build == host Michael Chastain
2004-07-25 1:52 ` Felix Lee
@ 2004-07-25 7:59 ` Eli Zaretskii
2004-07-27 0:45 ` Andrew Cagney
2 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2004-07-25 7:59 UTC (permalink / raw)
To: Michael Chastain; +Cc: gdb
> Date: Sat, 24 Jul 2004 20:03:44 -0400 (EDT)
> From: mec.gnu@mindspring.com (Michael Chastain)
>
> 2004-07-24 Michael Chastain <mec.gnu@mindspring.com>
>
> * gdbint.texinfo (Testsuite): Document that build and host
> must be the same machine.
I don't have an opinion about the issue, but the patch is okay with
me, provided that we agree to the requirement itself.
Perhaps this paragraph should be indexed, though: it sounds important
enough to warrant that.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-25 1:18 [proposal/testsuite] require build == host Michael Chastain
2004-07-25 1:52 ` Felix Lee
2004-07-25 7:59 ` Eli Zaretskii
@ 2004-07-27 0:45 ` Andrew Cagney
2004-07-27 2:31 ` Michael Chastain
2 siblings, 1 reply; 13+ messages in thread
From: Andrew Cagney @ 2004-07-27 0:45 UTC (permalink / raw)
To: Michael Chastain; +Cc: gdb
What do the dejagnu maintainers have to say about the feature? I can on
the one hand see it being abandoned while on the other hand being used
for something like parallel testing?
As for a system that would/should use this - djgpp.
Andrew
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-27 0:45 ` Andrew Cagney
@ 2004-07-27 2:31 ` Michael Chastain
2004-07-27 4:16 ` Eli Zaretskii
2004-07-27 15:32 ` Andrew Cagney
0 siblings, 2 replies; 13+ messages in thread
From: Michael Chastain @ 2004-07-27 2:31 UTC (permalink / raw)
To: cagney; +Cc: gdb
ac> What do the dejagnu maintainers have to say about the feature?
I haven't asked, but it's a supported feature of dejagnu and I'm
willing to accept that they will keep on supporting it.
Dan Kegel is at least one user of dejagnu who uses build != host
with gcc. He wrote a whole section in his cross-gcc faq about it.
People are testing gcc with dejagnu using build != host,
so it would be good if gdb testing worked in the same environment.
ac> As for a system that would/should use this - djgpp.
You got me there. It's been a while since I used windows,
but I suspect that windows has telnet/ftp servers.
Eli, is it possible to ftp into a windows box and upload and
download files? More important, is it possible to telnet into
a windows box and run a command-line interpreter?
It looks like I should go with Plan B: file PR's against the
test scripts that don't work on build != host, and eventually
fix them.
Michael C
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-27 2:31 ` Michael Chastain
@ 2004-07-27 4:16 ` Eli Zaretskii
2004-07-27 15:32 ` Andrew Cagney
1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2004-07-27 4:16 UTC (permalink / raw)
To: Michael Chastain; +Cc: cagney, gdb
> Date: Mon, 26 Jul 2004 20:52:26 -0400
> From: Michael Chastain <mec.gnu@mindspring.com>
>
> ac> As for a system that would/should use this - djgpp.
>
> You got me there. It's been a while since I used windows,
> but I suspect that windows has telnet/ftp servers.
(Btw, DJGPP produces DOS programs, not Windows programs. These
programs do run on Windows, but Windows treats them as DOS
executables.)
> Eli, is it possible to ftp into a windows box and upload and
> download files? More important, is it possible to telnet into
> a windows box and run a command-line interpreter?
It is possible to do that on Windows XP (perhaps after enabling some
service that is off by default, I don't remember).
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-27 2:31 ` Michael Chastain
2004-07-27 4:16 ` Eli Zaretskii
@ 2004-07-27 15:32 ` Andrew Cagney
2004-07-27 15:50 ` Christopher Faylor
2004-07-27 21:17 ` Michael Chastain
1 sibling, 2 replies; 13+ messages in thread
From: Andrew Cagney @ 2004-07-27 15:32 UTC (permalink / raw)
To: Michael Chastain; +Cc: gdb
> ac> What do the dejagnu maintainers have to say about the feature?
>
> I haven't asked, but it's a supported feature of dejagnu and I'm
> willing to accept that they will keep on supporting it.
It would be useful, just so that we know where they are going.
> Dan Kegel is at least one user of dejagnu who uses build != host
> with gcc. He wrote a whole section in his cross-gcc faq about it.
> People are testing gcc with dejagnu using build != host,
> so it would be good if gdb testing worked in the same environment.
>
> ac> As for a system that would/should use this - djgpp.
>
> You got me there. It's been a while since I used windows,
> but I suspect that windows has telnet/ftp servers.
>
> Eli, is it possible to ftp into a windows box and upload and
> download files? More important, is it possible to telnet into
> a windows box and run a command-line interpreter?
This is how the original cygwin testing was done - at a dos prompt.
> It looks like I should go with Plan B: file PR's against the
> test scripts that don't work on build != host, and eventually
> fix them.
For the moment, lets stick with the status quo. Tests are required to
work host==build. Having a test work host!=build is an added bonus, but
not a requrement. We can hardly enforce host!=build when there's no way
to test it and the return on investment is marginal.
Andrew
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-27 15:32 ` Andrew Cagney
@ 2004-07-27 15:50 ` Christopher Faylor
2004-07-27 21:17 ` Michael Chastain
1 sibling, 0 replies; 13+ messages in thread
From: Christopher Faylor @ 2004-07-27 15:50 UTC (permalink / raw)
To: gdb
On Tue, Jul 27, 2004 at 11:14:20AM -0400, Andrew Cagney wrote:
>>Eli, is it possible to ftp into a windows box and upload and download
>>files? More important, is it possible to telnet into a windows box and
>>run a command-line interpreter?
>
>This is how the original cygwin testing was done - at a dos prompt.
Right. And the test suite shennanigans necessary to support this were
truly ugly and, for some tests, only worked randomly.
>>It looks like I should go with Plan B: file PR's against the test
>>scripts that don't work on build != host, and eventually fix them.
>
>For the moment, lets stick with the status quo. Tests are required to
>work host==build. Having a test work host!=build is an added bonus,
>but not a requrement. We can hardly enforce host!=build when there's
>no way to test it and the return on investment is marginal.
FWIW, I agree.
cgf
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [proposal/testsuite] require build == host
2004-07-27 15:32 ` Andrew Cagney
2004-07-27 15:50 ` Christopher Faylor
@ 2004-07-27 21:17 ` Michael Chastain
1 sibling, 0 replies; 13+ messages in thread
From: Michael Chastain @ 2004-07-27 21:17 UTC (permalink / raw)
To: cagney; +Cc: gdb
ac> It would be useful, just so that we know where they are going.
I talked to Rob Savoye a month or two ago, and basically
Dejagnu is mature at this point. I don't think it's going to
add or drop major features.
ac> For the moment, lets stick with the status quo. Tests are required to
ac> work host==build. Having a test work host!=build is an added bonus, but
ac> not a requrement. We can hardly enforce host!=build when there's no way
ac> to test it and the return on investment is marginal.
The machine resources are easy to get. build == my laptop,
host == hp test drive machine (they support inbound telnet and ftp).
All I have to do is write a board file!
I'm going to move off the status quo in one direction or the other.
Either build != host is supported, or it's not. If it is supported,
then I have to test it (sigh), and at least characterize how many tests
are broken. If it's not supported, then I want the doco to say so.
Michael C
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-07-27 15:50 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-25 1:18 [proposal/testsuite] require build == host Michael Chastain
2004-07-25 1:52 ` Felix Lee
2004-07-25 2:43 ` Daniel Jacobowitz
[not found] ` <drow@false.org>
2004-07-25 22:36 ` Felix Lee
2004-07-26 18:07 ` Michael Chastain
2004-07-27 4:41 ` Felix Lee
2004-07-25 7:59 ` Eli Zaretskii
2004-07-27 0:45 ` Andrew Cagney
2004-07-27 2:31 ` Michael Chastain
2004-07-27 4:16 ` Eli Zaretskii
2004-07-27 15:32 ` Andrew Cagney
2004-07-27 15:50 ` Christopher Faylor
2004-07-27 21:17 ` Michael Chastain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox