[Scons-dev] Testing non-core tools

Russel Winder russel at winder.org.uk
Sat Jul 27 07:00:07 EDT 2013


Dirk,

[…]

> 1.) Either add 'toolpath=["."]' to the environment definition, or

> 2.) put the protoc.py in a default path, where it gets picked up

> automatically:

>

> test.file_fixture('../protoc.py','site_scons/site_tools') #

> untested!


1 works, I haven't tried 2 since 1 worked :-)

environment = Environment(
toolpath=['.'],
tools=['protoc'],
)


> Does this help?


Yes, but… is this the right paradigm to get people writing tests for
non-core tools to use? I can become happy with "yes", but I just wonder
if there is an easier way.

--
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: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://two.pairlist.net/pipermail/scons-dev/attachments/20130727/41d02bae/attachment.pgp>


More information about the Scons-dev mailing list