diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 17:31:04 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 18:14:27 +0100 |
commit | 045e70df64bc881c2d1dc55028407117abd03099 (patch) | |
tree | 791b8e4d4bb680e938beb3a877e08c58f21dc3b8 /wscript | |
parent | 86f05e18c1e708fd0f72f3668f1e7446dbb4c69d (diff) | |
parent | ffe3509181a565237f8bb5930ba3f37bfe721fb9 (diff) | |
download | raul-045e70df64bc881c2d1dc55028407117abd03099.tar.gz raul-045e70df64bc881c2d1dc55028407117abd03099.tar.bz2 raul-045e70df64bc881c2d1dc55028407117abd03099.zip |
Update autowaf and adapt to new API
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -37,10 +37,8 @@ out = 'build' # Build directory def options(opt): opt.load('compiler_cxx') - autowaf.set_options(opt, test=True) def configure(conf): - autowaf.display_header('Raul Configuration') conf.load('compiler_cxx', cache=True) conf.load('autowaf', cache=True) autowaf.set_c_lang(conf, 'c99') @@ -122,14 +120,9 @@ def build(bld): # Documentation autowaf.build_dox(bld, 'RAUL', RAUL_VERSION, top, out) -def test(ctx): - dirs = ['.', 'src', 'test'] - autowaf.pre_test(ctx, APPNAME, dirs=dirs) - autowaf.run_tests( - ctx, APPNAME, - map(lambda x: os.path.join('test', x), tests), - dirs=dirs) - autowaf.post_test(ctx, APPNAME, dirs=dirs) +def test(tst): + for t in tests: + tst([os.path.join('./test', t)]) def lint(ctx): "checks code for style issues" |