summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lilv_cxx_test.cpp2
-rw-r--r--wscript5
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;
}
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)