[dmd-internals] dmd test suite
Jason House
jason.james.house at gmail.com
Sun Jun 13 20:09:45 PDT 2010
I just posted to digitalmars.D about this. I'm sure this will be of
general interest. Some wish for an accurate spec. Others want to write
their own frontends/backends. I'm hoping some of them will help mature
the test suite.
Sent from my iPhone
On Jun 13, 2010, at 5:30 AM, Brad Roberts <braddr at puremagic.com> wrote:
> I've just checked in the skeleton of a test suite for us to discuss
> and
> hopefully start adding to rather than continuing to expand the non-
> distributable
> one.
>
> I've only tested it on linux, but it should work for any posix
> system that has
> bash, grep, and gnu make installed. There's a reasonable chance
> it'd even work
> on windows under cygwin, but I haven't tried it.
>
> There's a short documentation blurb at the top of the makefile.
> I've only
> copied two tests from the existing test suite over as a
> demonstration of the
> usage. Both are so basic enough that I expect that they're safe to
> make public.
>
> Parallelism works with standard make arguments, namely -j and -l.
>
> It also includes enough logic to resume interrupted tests by just re-
> running
> make without running 'make clean'. Additionally, if the dmd binary
> is updated,
> that's sufficient to invalidate and force a re-run of each test.
>
> Current output:
>
> $ make clean
> Removing output directory: test_results
> $ make -j2
> Creating output directory: test_results
> Building combinations tool
> Running runnable tests
> ... runnable/hello.d required: -d permuted args:
> ... runnable/mars1.d required: permuted args: -inline -
> release -gc -O
> -unittest -fPIC
>
> Feedback appreciated.
>
> Later,
> Brad
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
More information about the dmd-internals
mailing list