diff options
author | David Robillard <d@drobilla.net> | 2008-12-13 01:27:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-13 01:27:45 +0000 |
commit | ab1cbbc753de30362827c6e26d3b9fea18bd8cda (patch) | |
tree | b06961f8bfb80725e06805ee270a12a623b8dbb9 /test/wscript | |
parent | c7f1c5f2b8ff177cceefcb37107c6d5b45ec48f9 (diff) | |
download | lilv-ab1cbbc753de30362827c6e26d3b9fea18bd8cda.tar.gz lilv-ab1cbbc753de30362827c6e26d3b9fea18bd8cda.tar.bz2 lilv-ab1cbbc753de30362827c6e26d3b9fea18bd8cda.zip |
Unit test code coverage report generation (via gcov/lcov).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1852 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/wscript')
-rw-r--r-- | test/wscript | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/wscript b/test/wscript index ad4bb8e..d328efa 100644 --- a/test/wscript +++ b/test/wscript @@ -4,11 +4,14 @@ def build(bld): tests = ''' slv2_test ''' - for i in tests.split(): - obj = bld.new_task_gen('cc', 'program') - obj.source = i + '.c' - obj.includes = '..' - obj.uselib_local = 'libslv2' - obj.target = i - obj.install_path = '' + if bld.env['BUILD_TESTS']: + for i in tests.split(): + obj = bld.new_task_gen('cc', 'program') + obj.source = i + '.c' + obj.includes = '..' + obj.uselib_local = 'libslv2_static' + obj.uselib = 'REDLAND LV2CORE' + obj.libs = 'gcov' + obj.target = i + obj.install_path = '' |