From 4b4c1797d93e6efb93b12df21c1cd9f04341b61e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2019 13:12:52 +0100 Subject: 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. --- test/lilv_cxx_test.cpp | 2 ++ wscript | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/lilv_cxx_test.cpp b/test/lilv_cxx_test.cpp index 25f30bf..c1a45dd 100644 --- a/test/lilv_cxx_test.cpp +++ b/test/lilv_cxx_test.cpp @@ -19,5 +19,7 @@ int main() { + Lilv::World world; + return 0; } 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) -- cgit v1.2.1