This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multifile test cases (Re: Intermodule patch)


On Wed, Jul 09, 2003 at 12:13:02PM -0700, Matt Austern wrote:
> On Wednesday, July 9, 2003, at 11:58  AM, Geoffrey Keating wrote:
> 
> >
> > This is the current version of my intermodule optimization patch.  I
> > plan to commit this just as soon as the tree can bootstrap again on
> > Darwin (grrr).
> >
> > It still doesn't have a testsuite.  That's being worked on, but it
> > turns out to be hard.
> 
> To clarify the meaning of "hard": the point is that, by definition,
> real testing of anything intermodular means lots and lots of test
> cases that consist of more than one translation unit.  The dg test
> framework is oriented toward single-file test cases.  Currently a
> multifile test case involves handcrafted tcl code, which isn't
> suitable if you're writing a whole test suite of multifile test
> cases.

The tests in gcc.dg/compat and g++.dg/compat have their own .exp files
to handle tests with multiple files.  I'm not suggesting that those are
suitable for intermodule optimizations, but that it's not really all
that difficult to set up specialized test frameworks within the current
testsuite.

Janis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]