Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Wiki: Started a page on how to write testcases for GDB
@ 2009-12-26  5:45 Joel Brobecker
  2009-12-26  5:56 ` Joel Brobecker
  2009-12-26  8:44 ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Brobecker @ 2009-12-26  5:45 UTC (permalink / raw)
  To: gdb

Hello,

I found that I was always asking myself the very same questions
every time I have to write a new testcase, so I had this secret
plan of writing a HOWTO, or a cookbook.  I have just started a new
page in the GDB wiki, summarizing some of the things I know:

    http://sourceware.org/gdb/wiki/GDBTestcaseCookbook

It's only a start, so please feel free to correct and complete.
For instance, I just remembered that I forgot to mention gdb_test
and gdb_test_multiple vs send_gdb/gdb_expect.  Will do immediately.

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Wiki: Started a page on how to write testcases for GDB
  2009-12-26  5:45 Wiki: Started a page on how to write testcases for GDB Joel Brobecker
@ 2009-12-26  5:56 ` Joel Brobecker
  2009-12-26  8:44 ` Eli Zaretskii
  1 sibling, 0 replies; 6+ messages in thread
From: Joel Brobecker @ 2009-12-26  5:56 UTC (permalink / raw)
  To: gdb

> I found that I was always asking myself the very same questions
> every time I have to write a new testcase, so I had this secret
> plan of writing a HOWTO, or a cookbook.  I have just started a new
> page in the GDB wiki, summarizing some of the things I know:
> 
>     http://sourceware.org/gdb/wiki/GDBTestcaseCookbook

BTW: I should mention that the goal of this page is to help people
write consistent testcases, simplify their writing by pointing out
some useful convenience routines, helping avoiding common pitfals,
etc.  Right now, the testsuite looks  like a genetic experiment:
Every testcase is different from the other! To write a new testcase,
you marry two existing ones, they have lots of sex, and then start
producing new testcases that look like their parents, but are not
quite like their parents.

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Wiki: Started a page on how to write testcases for GDB
  2009-12-26  5:45 Wiki: Started a page on how to write testcases for GDB Joel Brobecker
  2009-12-26  5:56 ` Joel Brobecker
@ 2009-12-26  8:44 ` Eli Zaretskii
  2009-12-26  8:57   ` Joel Brobecker
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2009-12-26  8:44 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

> Date: Sat, 26 Dec 2009 09:44:48 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> I found that I was always asking myself the very same questions
> every time I have to write a new testcase, so I had this secret
> plan of writing a HOWTO, or a cookbook.  I have just started a new
> page in the GDB wiki, summarizing some of the things I know:
> 
>     http://sourceware.org/gdb/wiki/GDBTestcaseCookbook

Thanks.

It would be nice to have this as part of gdbint.texinfo as well.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Wiki: Started a page on how to write testcases for GDB
  2009-12-26  8:44 ` Eli Zaretskii
@ 2009-12-26  8:57   ` Joel Brobecker
  2009-12-26  9:06     ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2009-12-26  8:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

> Thanks.
> It would be nice to have this as part of gdbint.texinfo as well.

I think we should put the info in either document, but not both, or
we would be duplicating the info.  I chose the Wiki because it's very
easy to update and maintain.  To be honest, I don't think I will have
the courage to make fixes if it means having to go through the normal
review process.

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Wiki: Started a page on how to write testcases for GDB
  2009-12-26  8:57   ` Joel Brobecker
@ 2009-12-26  9:06     ` Eli Zaretskii
  2009-12-27  0:59       ` Christopher Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2009-12-26  9:06 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb

> Date: Sat, 26 Dec 2009 12:56:56 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb@sourceware.org
> 
> > Thanks.
> > It would be nice to have this as part of gdbint.texinfo as well.
> 
> I think we should put the info in either document, but not both, or
> we would be duplicating the info.  I chose the Wiki because it's very
> easy to update and maintain.  To be honest, I don't think I will have
> the courage to make fixes if it means having to go through the normal
> review process.

You don't need to add this to gdbint.texinfo until it's in good shape
and sufficiently complete.  Likewise, not every change on the wiki
needs to be immediately reflected in the manual, you can do that only
after a substantial amount of changes went in.  OTOH, fixing a typo or
some similar trivial correction don't need to be reviewed, and if they
are, the result is known in advance.

IOW, I'm willing to make a lot of allowances if that will convince you ;-)

My rationale is very simple: if we start putting important parts of
documentation on the wiki, then why maintain the manuals at all?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Wiki: Started a page on how to write testcases for GDB
  2009-12-26  9:06     ` Eli Zaretskii
@ 2009-12-27  0:59       ` Christopher Faylor
  0 siblings, 0 replies; 6+ messages in thread
From: Christopher Faylor @ 2009-12-27  0:59 UTC (permalink / raw)
  To: gdb, Joel Brobecker, Eli Zaretskii

On Sat, Dec 26, 2009 at 11:08:35AM +0200, Eli Zaretskii wrote:
>> Date: Sat, 26 Dec 2009 12:56:56 +0400
>> From: Joel Brobecker <brobecker@adacore.com>
>> Cc: gdb@sourceware.org
>> 
>> > Thanks.
>> > It would be nice to have this as part of gdbint.texinfo as well.
>> 
>> I think we should put the info in either document, but not both, or
>> we would be duplicating the info.  I chose the Wiki because it's very
>> easy to update and maintain.  To be honest, I don't think I will have
>> the courage to make fixes if it means having to go through the normal
>> review process.
>
>You don't need to add this to gdbint.texinfo until it's in good shape
>and sufficiently complete.  Likewise, not every change on the wiki
>needs to be immediately reflected in the manual, you can do that only
>after a substantial amount of changes went in.  OTOH, fixing a typo or
>some similar trivial correction don't need to be reviewed, and if they
>are, the result is known in advance.
>
>IOW, I'm willing to make a lot of allowances if that will convince you ;-)
>
>My rationale is very simple: if we start putting important parts of
>documentation on the wiki, then why maintain the manuals at all?

I don't suppose there's any way to grab the info from the wiki and
put it in the texinfo document or vice-versa?

cgf


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-27  0:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-26  5:45 Wiki: Started a page on how to write testcases for GDB Joel Brobecker
2009-12-26  5:56 ` Joel Brobecker
2009-12-26  8:44 ` Eli Zaretskii
2009-12-26  8:57   ` Joel Brobecker
2009-12-26  9:06     ` Eli Zaretskii
2009-12-27  0:59       ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox