X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fwscript;h=f669c3784ef77142d3afc3e3c0af555fe67c8367;hb=107482fc19404e20db544e989d880752377fde26;hp=28248eb42c66fc98ed5abdd4e08610967144bdfd;hpb=b439dfdad90912c52966977698c320e2b547372a;p=libdcp.git diff --git a/test/wscript b/test/wscript index 28248eb4..f669c378 100644 --- a/test/wscript +++ b/test/wscript @@ -35,14 +35,20 @@ def build(bld): decryption_test.cc effect_test.cc encryption_test.cc + exception_test.cc fraction_test.cc frame_info_test.cc + image_test.cc + interop_load_font_test.cc local_time_test.cc kdm_test.cc read_dcp_test.cc recovery_test.cc + rgb_xyz_test.cc round_trip_test.cc - subtitle_tests.cc + smpte_load_font_test.cc + smpte_subtitle_test.cc + subtitle_test.cc test.cc text_test.cc util_test.cc @@ -54,15 +60,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']