I discovered that it’s actually possible to use a bash script as a test file 
instead of a D file. The bash script will handle the building and running of 
the D code.

-- 
/Jacob Carlborg

> On 12 jun 2016, at 13:52, Михаил Страшун via dmd-internals 
> <[email protected]> wrote:
> 
> On 06/11/2016 02:46 PM, Jacob Carlborg via dmd-internals wrote:
>> I need to create a test for the DMD test suite that consists of two files, 
>> one which need to be compiled with the -lib flag and one without, which 
>> links with the library. There’s the EXTRA_SOURCES test variable but as far 
>> as I can see it’s not possible to specify any flags for the extra sources.
>> 
>> What’s the best way to solve this?
> 
> AFAIR test runner doesn't support such functionality, it is only capable
> of compiling bunch of files at once (with configurable flags). Thus you
> will need to extend the runner itself.
> 
> 
> _______________________________________________
> dmd-internals mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to