summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-18 10:16:16 +0200
committerDavid Robillard <d@drobilla.net>2020-07-18 10:16:16 +0200
commitffd68a419f6f3530f9bbf98cbe9ff0b2c95c983e (patch)
tree55b7b4d91569233585903795120de5986ae7791b
parentd77afe09b0e17fad87f98ec7bca63e627e7595c8 (diff)
downloadraul-ffd68a419f6f3530f9bbf98cbe9ff0b2c95c983e.tar.gz
raul-ffd68a419f6f3530f9bbf98cbe9ff0b2c95c983e.tar.bz2
raul-ffd68a419f6f3530f9bbf98cbe9ff0b2c95c983e.zip
Fix flake8 warnings
-rw-r--r--wscript40
1 files changed, 22 insertions, 18 deletions
diff --git a/wscript b/wscript
index 43758a8..7d079e0 100644
--- a/wscript
+++ b/wscript
@@ -1,7 +1,6 @@
#!/usr/bin/env python
import os
-import subprocess
import sys
from waflib import Options
@@ -20,9 +19,11 @@ VERSION = RAUL_VERSION # Package version for waf dist
top = '.' # Source directory
out = 'build' # Build directory
+
def options(opt):
opt.load('compiler_cxx')
+
def configure(conf):
conf.load('compiler_cxx', cache=True)
conf.load('autowaf', cache=True)
@@ -62,6 +63,7 @@ def configure(conf):
autowaf.display_summary(conf,
{'Unit tests': bool(conf.env.BUILD_TESTS)})
+
tests = ['array_test',
'build_test',
'double_buffer_test',
@@ -76,6 +78,7 @@ tests = ['array_test',
if sys.platform != 'win32':
tests += ['socket_test']
+
def build(bld):
# Headers
includedir = '${INCLUDEDIR}/raul-%s/raul' % RAUL_MAJOR_VERSION
@@ -108,22 +111,23 @@ def build(bld):
# Unit tests
for i in tests:
- obj = bld(features = 'cxx cxxprogram',
- source = os.path.join('test', i + '.cpp'),
- includes = ['.'],
- lib = test_libs,
- use = 'libraul_static',
- uselib = 'GLIB GTHREAD',
- framework = framework,
- target = os.path.join('test', i),
- install_path = '',
- cxxflags = test_cxxflags,
- linkflags = test_linkflags,
- libs = test_libs)
+ bld(features = 'cxx cxxprogram',
+ source = os.path.join('test', i + '.cpp'),
+ includes = ['.'],
+ lib = test_libs,
+ use = 'libraul_static',
+ uselib = 'GLIB GTHREAD',
+ framework = framework,
+ target = os.path.join('test', i),
+ install_path = '',
+ cxxflags = test_cxxflags,
+ linkflags = test_linkflags,
+ libs = test_libs)
# Documentation
autowaf.build_dox(bld, 'RAUL', RAUL_VERSION, top, out)
+
def test(tst):
with tst.group('Unit') as check:
for t in tests:
@@ -164,9 +168,9 @@ def posts(ctx):
path = str(ctx.path.abspath())
autowaf.news_to_posts(
os.path.join(path, 'NEWS'),
- {'title' : 'Raul',
- 'description' : autowaf.get_blurb(os.path.join(path, 'README')),
- 'dist_pattern' : 'http://download.drobilla.net/raul-%s.tar.bz2'},
- { 'Author' : 'drobilla',
- 'Tags' : 'Hacking, LAD, LV2, RAUL' },
+ {'title': 'Raul',
+ 'description': autowaf.get_blurb(os.path.join(path, 'README')),
+ 'dist_pattern': 'http://download.drobilla.net/raul-%s.tar.bz2'},
+ {'Author': 'drobilla',
+ 'Tags': 'Hacking, LAD, LV2, RAUL'},
os.path.join(out, 'posts'))