[dmd-internals] dmd test suite

Benjamin Shropshire benjamin at precisionsoftware.us
Sun Jun 13 20:47:00 PDT 2010


Brad Roberts wrote:
> Queue the week of useless bike-shedding and diversions into general testing and
> unit testing.
>   
"Next time on nntp://news.digitalmars.com, the continuing adventures of 
...."

 :D

> This test suite is of interest pretty much only to the set of people who are
> actually working on dmd, which pretty much consists of subscribers to this list.
>   

That it exists and that a bunch of people can add to it (BTW can more 
people be added to that list?) would be of wider interest even if the 
details aren't.
> On 6/13/2010 8:09 PM, Jason House wrote:
>   
>> 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
>>>       
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>>     
>
> _______________________________________________
> 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