Stuck with DMD, and Unit-Threaded

Russel Winder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 18 00:07:16 PDT 2017


On Mon, 2017-04-17 at 22:56 +0000, Atila Neves via Digitalmars-d-learn
wrote:
> 
[…]
> 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.
> 

Thanks for that, much appreciated. I am hesitant to commit the pull
request for now in case get_ut_main gets fixed fairly quickly. For the
moment I am progressing with the SCons build since I got it working.

As per your advice I wrote a SCons specific Python function to do the
same as get_ut_main – and it works, well for my very restricted test
cases anyway. I think my Python code only solves a part of the problem
your get_ut_main solves: I think I need to extend the Python function
to cover more cases. I'll do it on an as needed, only with a test case,
basis though.

The real joy is that I have Unit-Threaded working. It's extensions of
the unittest D language feature make testing D codes far more fun than
the basic feature. Thanks for putting in the effort.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170418/f1c6d021/attachment.sig>


More information about the Digitalmars-d-learn mailing list