diff options
author | David Robillard <d@drobilla.net> | 2011-04-22 21:13:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-22 21:13:18 +0000 |
commit | 6df93e915bf422a7c1378a46e2aee7512bc5b20b (patch) | |
tree | 459b6179e1d993df2ec086c8aea5df2a9c16b707 | |
parent | 8a765026bae8427009902a31fd5bfe87b9141b98 (diff) | |
download | sord-6df93e915bf422a7c1378a46e2aee7512bc5b20b.tar.gz sord-6df93e915bf422a7c1378a46e2aee7512bc5b20b.tar.bz2 sord-6df93e915bf422a7c1378a46e2aee7512bc5b20b.zip |
Fix compilation with unit tests enabled.
git-svn-id: http://svn.drobilla.net/sord/trunk@79 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r-- | wscript | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -57,8 +57,8 @@ def configure(conf): autowaf.define(conf, 'SORD_VERSION', SORD_VERSION) conf.write_config_header('sord-config.h', remove=False) - autowaf.display_msg(conf, "Utilities", str(conf.env['BUILD_UTILS'])) - autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS'])) + autowaf.display_msg(conf, "Utilities", bool(conf.env['BUILD_UTILS'])) + autowaf.display_msg(conf, "Unit tests", bool(conf.env['BUILD_TESTS'])) autowaf.display_msg(conf, "Debug dumping", dump) print('') @@ -86,7 +86,7 @@ def build(bld): autowaf.use_lib(bld, obj, 'GLIB SERD') if bld.env['BUILD_TESTS']: - test_cflags = [ '-fprofile-arcs', '-ftest-coverage' ], + test_cflags = [ '-fprofile-arcs', '-ftest-coverage' ] # Static library (for unit test code coverage) obj = bld(features = 'c cstlib', @@ -142,5 +142,5 @@ def upload_docs(ctx): def test(ctx): autowaf.pre_test(ctx, APPNAME) - autowaf.run_tests(ctx, APPNAME, ['./sord_test']) + autowaf.run_tests(ctx, APPNAME, ['sord_test']) autowaf.post_test(ctx, APPNAME) |