diff options
author | David Robillard <d@drobilla.net> | 2019-03-15 22:38:57 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 00:31:46 +0100 |
commit | 63bcbcd3f8610bcf5eb99673c2fb62b27565cced (patch) | |
tree | e6cbb83f8a79a0c8c1a71cf9029e760b52395dc5 /extras | |
parent | b1d95050a447acc12cf169652315754911c8cecf (diff) | |
download | autowaf-63bcbcd3f8610bcf5eb99673c2fb62b27565cced.tar.gz autowaf-63bcbcd3f8610bcf5eb99673c2fb62b27565cced.tar.bz2 autowaf-63bcbcd3f8610bcf5eb99673c2fb62b27565cced.zip |
Clean up TestContext
Diffstat (limited to 'extras')
-rw-r--r-- | extras/autowaf.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py index 07200fd..00c18c6 100644 --- a/extras/autowaf.py +++ b/extras/autowaf.py @@ -28,12 +28,6 @@ else: # import preproc # preproc.go_absolute = True -# Test context that inherits build context to make configuration available -class TestContext(Build.BuildContext): - "Run tests" - cmd = 'test' - fun = 'test' - @feature('c', 'cxx') @after('apply_incpaths') def include_config_h(self): @@ -833,6 +827,10 @@ def bench_time(): else: return time.time() +class TestContext(Build.BuildContext): + "runs test suite" + fun = cmd = 'test' + def pre_test(ctx, appname, dirs=['src']): Logs.pprint('GREEN', '\n[==========] Running %s tests' % appname) |