summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:04 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commit045e70df64bc881c2d1dc55028407117abd03099 (patch)
tree791b8e4d4bb680e938beb3a877e08c58f21dc3b8 /wscript
parent86f05e18c1e708fd0f72f3668f1e7446dbb4c69d (diff)
parentffe3509181a565237f8bb5930ba3f37bfe721fb9 (diff)
downloadraul-045e70df64bc881c2d1dc55028407117abd03099.tar.gz
raul-045e70df64bc881c2d1dc55028407117abd03099.tar.bz2
raul-045e70df64bc881c2d1dc55028407117abd03099.zip
Update autowaf and adapt to new API
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 3 insertions, 10 deletions
diff --git a/wscript b/wscript
index be0f70a..8b3fe88 100644
--- a/wscript
+++ b/wscript
@@ -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"