This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: using gdb to do embedded unit/regression testing
- From: "EBo" <ebo at sandien dot com>
- To: "Michael Snyder" <msnyder at vmware dot com>, "ebo at sandien dot com" <ebo at sandien dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 3 Nov 2008 12:49:31 MST
- Subject: Re: using gdb to do embedded unit/regression testing
- References: <twig.1225739451.50844@swcp.com>, <twig.1225739451.50844@swcp.com>
- Reply-to: ebo at sandien dot com
Michael Snyder <msnyder@vmware.com> said:
> EBo wrote:
>
> You should check out src/gcc/testsuite. The gcc testsuites on
> embedded targets are all set up to use gdb as an execution engine.
Thanks for the pointer. It'll take me awhile to crawl through the testsuites
and absorb them...
> And you get to use dejagnu as your scripting language (lucky you).
The last time I took a serious look at dejagnu, which was YEARS ago, it seemed
so incomprehensible that I gave up. I'll take another look into it. Thanks
for the pointer.
> > ...to malloc?...
>
> Yeah, we've all run into that.
>
> Use gdb "echo", rather than print.
>
> Doesn't help if you have variables, but for simple diagnostics it's ok.
That did the trick. Thanks!
> > The second issue will be cleaning up and formatting the output from the
> > automated unit/regression test suites. For this I will want/need to suppress
> > almost all output from gdb, and use the print command above to deal with the
> > formatting. If I end up using gdb to help do this type of eXtreme/Agile
> > program testing I would like to work with the gdb maintainers to have it
> > integrated upstream...
>
> I think you want dejagnu.
Thanks, I'll start digging into it...
EBo --