[qmtest] is CompilationTest usable?
Mark Mitchell
mark at codesourcery.com
Mon Jul 3 06:03:33 UTC 2006
Maurizio Vitale wrote:
> I'm struggling to get qmtest do a very basic thing: traverse a hierarchy
> of testsuites and for every file matching a certain regexp (*.cpp in my
> case) compile it (linking against a library which is actually the
> artifact being tested), execute the resulting executable and compare its
> output w/ a golden result file.
You'll want to use ExtensionDatabase as a database base class; that's an
easy way to make every *.cpp file a test. And, yes,
compilation_test.SimpleCompilationTest would make a good base class for
the test class bits.
> [it seems to me that it depends on CompilerTest, which in turns has a
> number of not-yet-implemented methods].
The methods that raise NotImplementedError are not placeholders; they
are methods that are expected to be overridden in derived classes. In
particular, SimpleCompilationTest overrides them.
--
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713
More information about the qmtest
mailing list