Thread overview
[dmd-internals] Test with the -lib flag
Jun 11, 2016
Jacob Carlborg
Jun 12, 2016
Jacob Carlborg
June 11, 2016
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?

-- 
/Jacob Carlborg


_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals
June 12, 2016
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.




June 12, 2016
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 <dmd-internals@puremagic.com> 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
> dmd-internals@puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals


_______________________________________________
dmd-internals mailing list
dmd-internals@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-internals