summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-01-13 13:12:52 +0100
committerDavid Robillard <d@drobilla.net>2019-01-13 13:12:52 +0100
commit4b4c1797d93e6efb93b12df21c1cd9f04341b61e (patch)
tree1af0d4f325cf4a0315fa7b1d03b797967f608405 /wscript
parenta9edaabf0926a18dd96fae30c7206fd8eadb0fdc (diff)
downloadlilv-4b4c1797d93e6efb93b12df21c1cd9f04341b61e.tar.gz
lilv-4b4c1797d93e6efb93b12df21c1cd9f04341b61e.tar.bz2
lilv-4b4c1797d93e6efb93b12df21c1cd9f04341b61e.zip
Actually run C++ bindings test
There is still no actual testing in the binary, but this at least ensures the bindings can be used at all.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/wscript b/wscript
index a6d9347..9df69e0 100644
--- a/wscript
+++ b/wscript
@@ -60,6 +60,7 @@ def configure(conf):
conf.load('compiler_c', cache=True)
try:
conf.load('compiler_cxx', cache=True)
+ conf.define('LILV_CXX', True)
except:
pass
@@ -456,7 +457,9 @@ def test(ctx):
os.environ['PATH'] = 'test' + os.pathsep + os.getenv('PATH')
Logs.pprint('GREEN', '')
- autowaf.run_test(ctx, APPNAME, 'lilv_test', dirs=['./src','./test'], name='lilv_test')
+ autowaf.run_test(ctx, APPNAME, 'lilv_test', dirs=['./src','./test'])
+ if ctx.is_defined('LILV_CXX'):
+ autowaf.run_test(ctx, APPNAME, 'lilv_cxx_test', dirs=['./src','./test'])
for p in test_plugins:
test_prog = 'test_' + p + ' ' + ('test/%s.lv2/' % p)