summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-29 10:14:14 +1100
committerChris Johns <chrisj@rtems.org>2018-11-29 10:16:44 +1100
commit6db01e577fed1dc88018106b81dd531f2ecc1fd0 (patch)
tree2de00eb607ffe1c4a5e6e1e666a40f3adf785029 /wscript
parentrtemstoolkit/git: Use 'git' if no macro path is present. (diff)
downloadrtems-tools-6db01e577fed1dc88018106b81dd531f2ecc1fd0.tar.bz2
rtemstoolkit/host: Fix the darwin support.
- Add python as a unit test variant.
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/wscript b/wscript
index e3aaecb..f491d70 100644
--- a/wscript
+++ b/wscript
@@ -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)