X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fwscript;h=7c7aee733bd51488f791a57887ea25fa7dcf3260;hb=8b136077cc74d606e083069e2435fc5a3b100b0f;hp=7ea02a80471debcb6202b1297c07cce205cef7c1;hpb=bb767c7e338414beee132af3e96829c1448e214b;p=dcpomatic.git diff --git a/test/wscript b/test/wscript index 7ea02a804..7c7aee733 100644 --- a/test/wscript +++ b/test/wscript @@ -1,16 +1,46 @@ +def configure(conf): + boost_test_suffix='' + if conf.env.TARGET_WINDOWS: + boost_test_suffix='-mt' + + conf.check_cxx(fragment = """ + #define BOOST_TEST_MODULE Config test\n + #include \n + int main() {} + """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST') + def build(bld): obj = bld(features = 'cxx cxxprogram') - obj.name = 'short-unit-tests' - obj.uselib = 'BOOST_TEST' - obj.use = 'libdvdomatic' - obj.source = 'short.cc' - obj.target = 'short-unit-tests' - obj.install_path = '' + obj.name = 'unit-tests' + obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML' + obj.use = 'libdcpomatic' + obj.source = """ + test.cc + colour_conversion_test.cc + audio_delay_test.cc + silence_padding_test.cc + audio_merger_test.cc + resampler_test.cc + ffmpeg_audio_test.cc + threed_test.cc + play_test.cc + frame_rate_test.cc + ffmpeg_pts_offset.cc + ffmpeg_examiner_test.cc + black_fill_test.cc + scaling_test.cc + ratio_test.cc + pixel_formats_test.cc + make_black_test.cc + film_metadata_test.cc + stream_test.cc + util_test.cc + ffmpeg_dcp_test.cc + job_test.cc + client_server_test.cc + image_test.cc + 4k_test.cc + """ - obj = bld(features = 'cxx cxxprogram') - obj.name = 'long-unit-tests' - obj.uselib = 'BOOST_TEST' - obj.use = 'libdvdomatic' - obj.source = 'long.cc' - obj.target = 'long-unit-tests' + obj.target = 'unit-tests' obj.install_path = ''