This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: seeking primer on adding testsuite entries ...
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: seeking primer on adding testsuite entries ...
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 31 Oct 1998 17:38:35 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810311548.KAA01250@caip.rutgers.edu>you write:
> I'd like to create some testsuite entries for gcc warnings,
> (i.e, testing if the warnings DTRT.)
>
> Would someone please let me know which docs are most appropriate
> to read on how to put this together? Eg, things like how to pass special
> flags to tests and how to specify expected output. Or just point out
> examples from the existing testsuite. (I'm willing to RTFM, I just
> don't know which FM to read.)
>
> Also where should tests I create go? Should I create a new
> directory?
For the gcc testsuite you'll want to use the "dg" framework. Examples
can be found in gcc.dg
lib/gcc-dg.exp and dg.exp in the dejagnu dist should have information on using
the dg framework.
jeff