diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 14:34:50 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 14:34:50 +0000 |
| commit | fb14b55a26accff9495d155b9ede24ac8d00dab6 (patch) | |
| tree | 7978072a54b7d18761acb495c58f720448b0945a /test/wscript | |
| parent | f8b49d20c690d19e9cd5dd9cddc3a834e526ba87 (diff) | |
Examine gcov result for all test programs.
Diffstat (limited to 'test/wscript')
| -rw-r--r-- | test/wscript | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/wscript b/test/wscript index dee75aec..75db2626 100644 --- a/test/wscript +++ b/test/wscript @@ -56,15 +56,25 @@ def build(bld): obj = bld(features='cxx cxxprogram') obj.name = 'subs_in_out' obj.uselib = 'BOOST_TEST OPENJPEG CXML' - obj.use = 'libdcp%s' % bld.env.API_VERSION + if bld.env.HAVE_GCOV: + obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION + obj.lib = ['gcov'] + else: + obj.use = 'libdcp%s' % bld.env.API_VERSION obj.source = 'subs_in_out.cc' obj.target = 'subs_in_out' obj.install_path = '' + obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0'] obj = bld(features='cxx cxxprogram') obj.name = 'rewrite_subs' obj.uselib = 'BOOST_TEST OPENJPEG CXML' - obj.use = 'libdcp%s' % bld.env.API_VERSION + if bld.env.HAVE_GCOV: + obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION + obj.lib = ['gcov'] + else: + obj.use = 'libdcp%s' % bld.env.API_VERSION obj.source = 'rewrite_subs.cc' obj.target = 'rewrite_subs' obj.install_path = '' + obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0'] |
