GDC 4.7 and frontend/phobos 2.060

Johannes Pfau nospam at example.com
Tue Nov 6 07:55:43 PST 2012


Am Mon, 05 Nov 2012 20:53:57 +0100
schrieb Joseph Rushton Wakeling <joseph.wakeling at webdrake.net>:

> On 11/05/2012 08:29 PM, Joseph Rushton Wakeling wrote:
> > Once pulled in, how do I go about running the unittests on all code
> > (DFE, druntime, phobos) as part of the build process?  (Something
> > worth adding to GDC wiki perhaps?)
> 
> Whoops, there I go jumping ahead of myself: 
> http://www.gdcproject.org/wiki/Test%20suite
> 
> I redid a build with --enable-checking=yes; there are a number of
> "unexpected" failures, and make exits with an error.  I also don't
> see any indication that the Phobos unittests were run.
> 
> This is just vanilla gdc-4.7, I have not yet pulled in any patches
> for 2.060.
> 

We currently do not run the pbobos / druntime unittests. There's a
"unittest" target in the Makefile, so it's possible to use "make
unittest" in the phobos/druntime directory, but the Makefile is outdated
and won't work.

We really need to properly integrate the unittests, but for now running
phobos tests is not supported.

The "unexpected" failures are kinda expected ;-) The dmd testsuite
hasn't been ported 100% to the gcc testsuite so some tests fail because
they can't find some extra files or because of similar errors. Some
failures are probably real problems though.

Anyway, don't expect all tests to pass for now. Just use the test suite
for regression testing when merging a new frontend.


More information about the D.gnu mailing list