* Dejagnu testsuite
@ 2004-04-14 18:56 Manoj Iyer
2004-04-14 20:29 ` Jason Molenda
0 siblings, 1 reply; 5+ messages in thread
From: Manoj Iyer @ 2004-04-14 18:56 UTC (permalink / raw)
To: gdb
Is there any documentation on how to compile and execute the testsuite
that is part of the GDB package?? Sorry if this is a very obvious
question.
--
manjo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dejagnu testsuite
2004-04-14 18:56 Dejagnu testsuite Manoj Iyer
@ 2004-04-14 20:29 ` Jason Molenda
2004-04-14 20:46 ` Manoj Iyer
0 siblings, 1 reply; 5+ messages in thread
From: Jason Molenda @ 2004-04-14 20:29 UTC (permalink / raw)
To: Manoj Iyer; +Cc: gdb
Hi Manoj,
On Apr 14, 2004, at 11:35 AM, Manoj Iyer wrote:
> Is there any documentation on how to compile and execute the testsuite
> that is part of the GDB package?
After you've built gdb, and have tcl, expect, and dejagnu pre-installed
on your system or have them in your build tree, you just run "make
check-gdb". Any tests that fail will print a FAIL message to the
screen; in gdb/testsuite there are two files of note, "gdb.sum" and
"gdb.log". The former shows the status of each test which ran. The
latter shows all of the communication with gdb during the test run.
There are many ways to change how tests are run, etc., this is most
easily done with the RUNTESTFLAGS argument to make. e.g. to run the
mi-stack.exp tests only you would do
make check-gdb RUNTESTFLAGS=mi-stack.exp
You can also pass "--help" as the RUNTESTFLAGS arg and you'll get a
list of all the options it will accept.
That should get you started.
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dejagnu testsuite
2004-04-14 20:29 ` Jason Molenda
@ 2004-04-14 20:46 ` Manoj Iyer
2004-04-14 21:30 ` Manoj Iyer
2004-04-15 9:20 ` Jason Molenda
0 siblings, 2 replies; 5+ messages in thread
From: Manoj Iyer @ 2004-04-14 20:46 UTC (permalink / raw)
To: Jason Molenda; +Cc: gdb
ok, go it! I was able to run the testcase, now I am trying to determine
why the testcase broke/failed, is there a way to re-create the failure
manually by running GDB against the test (using the assertion) that
failed?
--
Manjo
On Wed, 14 Apr 2004, Jason Molenda wrote:
> Hi Manoj,
>
> On Apr 14, 2004, at 11:35 AM, Manoj Iyer wrote:
>
> > Is there any documentation on how to compile and execute the testsuite
> > that is part of the GDB package?
>
> After you've built gdb, and have tcl, expect, and dejagnu pre-installed
> on your system or have them in your build tree, you just run "make
> check-gdb". Any tests that fail will print a FAIL message to the
> screen; in gdb/testsuite there are two files of note, "gdb.sum" and
> "gdb.log". The former shows the status of each test which ran. The
> latter shows all of the communication with gdb during the test run.
>
> There are many ways to change how tests are run, etc., this is most
> easily done with the RUNTESTFLAGS argument to make. e.g. to run the
> mi-stack.exp tests only you would do
>
> make check-gdb RUNTESTFLAGS=mi-stack.exp
>
> You can also pass "--help" as the RUNTESTFLAGS arg and you'll get a
> list of all the options it will accept.
>
> That should get you started.
>
> Jason
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dejagnu testsuite
2004-04-14 20:46 ` Manoj Iyer
@ 2004-04-14 21:30 ` Manoj Iyer
2004-04-15 9:20 ` Jason Molenda
1 sibling, 0 replies; 5+ messages in thread
From: Manoj Iyer @ 2004-04-14 21:30 UTC (permalink / raw)
To: Jason Molenda; +Cc: gdb
For example how does the testcase translate variables like $hex? how does
it know that $hex is the right value that GDB prints??
--
Manjo
On Wed, 14 Apr 2004, Manoj Iyer wrote:
>
> ok, go it! I was able to run the testcase, now I am trying to determine
> why the testcase broke/failed, is there a way to re-create the failure
> manually by running GDB against the test (using the assertion) that
> failed?
>
> --
> Manjo
>
> On Wed, 14 Apr 2004, Jason Molenda wrote:
>
> > Hi Manoj,
> >
> > On Apr 14, 2004, at 11:35 AM, Manoj Iyer wrote:
> >
> > > Is there any documentation on how to compile and execute the testsuite
> > > that is part of the GDB package?
> >
> > After you've built gdb, and have tcl, expect, and dejagnu pre-installed
> > on your system or have them in your build tree, you just run "make
> > check-gdb". Any tests that fail will print a FAIL message to the
> > screen; in gdb/testsuite there are two files of note, "gdb.sum" and
> > "gdb.log". The former shows the status of each test which ran. The
> > latter shows all of the communication with gdb during the test run.
> >
> > There are many ways to change how tests are run, etc., this is most
> > easily done with the RUNTESTFLAGS argument to make. e.g. to run the
> > mi-stack.exp tests only you would do
> >
> > make check-gdb RUNTESTFLAGS=mi-stack.exp
> >
> > You can also pass "--help" as the RUNTESTFLAGS arg and you'll get a
> > list of all the options it will accept.
> >
> > That should get you started.
> >
> > Jason
> >
> >
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dejagnu testsuite
2004-04-14 20:46 ` Manoj Iyer
2004-04-14 21:30 ` Manoj Iyer
@ 2004-04-15 9:20 ` Jason Molenda
1 sibling, 0 replies; 5+ messages in thread
From: Jason Molenda @ 2004-04-15 9:20 UTC (permalink / raw)
To: Manoj Iyer; +Cc: gdb
On Apr 14, 2004, at 1:20 PM, Manoj Iyer wrote:
>
> ok, go it! I was able to run the testcase, now I am trying to determine
> why the testcase broke/failed, is there a way to re-create the failure
> manually by running GDB against the test (using the assertion) that
> failed?
See the gdb/testsuite/gdb.log file for what was going on.
> For example how does the testcase translate variables like $hex? how
> does
> it know that $hex is the right value that GDB prints??
It's a convenience regexp which matches a hex value. $decimal, $ws
(whitespace), $nl, etc. are also used in test cases.
J
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-14 21:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 18:56 Dejagnu testsuite Manoj Iyer
2004-04-14 20:29 ` Jason Molenda
2004-04-14 20:46 ` Manoj Iyer
2004-04-14 21:30 ` Manoj Iyer
2004-04-15 9:20 ` Jason Molenda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox