Stuck with DMD, and Unit-Threaded

Atila Neves via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 17 15:56:43 PDT 2017


On Sunday, 16 April 2017 at 08:20:21 UTC, Russel Winder wrote:
> There are points when you need to ask someone for help…
>
> I am trying to get Dub to build integration tests from 
> test-source as a separate thing from building unit tests from 
> source. The latter is easy and works, as does building the 
> application. I cannot however get the integration tests to 
> build, I always get something along the lines of:
>
> ../../../../../../../tmp/dub_test_root-677ee80a-1e29-44c8-b08c-2fe37eb83633.d(10,12): Error: function D main conflicts with static import dub_test_root.main at ../../../../../../../tmp/dub_test_root-677ee80a-1e29-44c8-b08c-2fe37eb83633.d(3,15)
>
> and I haven't a clue. This is almost certainly just a bad 
> dub.sdl file, but, if anyone can take a look at tell me what I 
> am failing to get right, I'd appreciate it.
>
> https://github.com/russel/ApproxGC

https://github.com/russel/ApproxGC/pull/2

Unfortunately the auto generated integration test main file 
doesn't quite work (feel free to file a bug on unit-threaded) so 
in that PR I disabled auto-generating it and force added my 
edited version.

What I did there in dub.sdl is my current go-to solution for also 
running integration tests with unit-threaded.

Atila


More information about the Digitalmars-d-learn mailing list