diff options
author | Chris Johns <chrisj@rtems.org> | 2018-11-29 10:14:14 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-11-29 10:16:44 +1100 |
commit | 6db01e577fed1dc88018106b81dd531f2ecc1fd0 (patch) | |
tree | 2de00eb607ffe1c4a5e6e1e666a40f3adf785029 /wscript | |
parent | rtemstoolkit/git: Use 'git' if no macro path is present. (diff) | |
download | rtems-tools-6db01e577fed1dc88018106b81dd531f2ecc1fd0.tar.bz2 |
rtemstoolkit/host: Fix the darwin support.
- Add python as a unit test variant.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -100,6 +100,7 @@ def configure(ctx): # # Find which versions of python are installed for testing. # + ctx.find_program('python', mandatory = False) ctx.find_program('python2', mandatory = False) ctx.find_program('python3', mandatory = False) # @@ -158,12 +159,12 @@ def rtemstoolkit_tests(ctx): log = ctx.path.find_or_declare('tests.log') ctx.logger = waflib.Logs.make_logger(log.abspath(), 'build') failures = False - for py in ['2', '3']: - PY = 'PYTHON%s' % (py) - if PY in ctx.env: - from rtemstoolkit import all as toolkit_tests - from rtemstoolkit import args as toolkit_test_args - for tt in toolkit_tests: + from rtemstoolkit import all as toolkit_tests + from rtemstoolkit import args as toolkit_test_args + for tt in toolkit_tests: + for py in ['', '2', '3']: + PY = 'PYTHON%s' % (py) + if PY in ctx.env: test = 'rtemstoolkit.%s' % (tt) ctx.start_msg('Test python%s %s' % (py, test)) cmd = '%s -m %s' % (ctx.env[PY][0], test) |