diff options
author | David Robillard <d@drobilla.net> | 2019-01-13 13:12:52 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-13 13:12:52 +0100 |
commit | 4b4c1797d93e6efb93b12df21c1cd9f04341b61e (patch) | |
tree | 1af0d4f325cf4a0315fa7b1d03b797967f608405 | |
parent | a9edaabf0926a18dd96fae30c7206fd8eadb0fdc (diff) | |
download | lilv-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.
-rw-r--r-- | test/lilv_cxx_test.cpp | 2 | ||||
-rw-r--r-- | wscript | 5 |
2 files changed, 6 insertions, 1 deletions
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; } @@ -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) |