diff options
-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) |