X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fwscript;h=b9de85465f9c582dac4f07ba2998766143bf0014;hb=3828baf56467224f5d44049bf1e7a7ed11f43a05;hp=6ee995e36c114de49a6eb77fd2bdf1c6d069769b;hpb=267e21bfb78593bcb87eb24ce01b88d0859566f7;p=dcpomatic.git diff --git a/test/wscript b/test/wscript index 6ee995e36..b9de85465 100644 --- a/test/wscript +++ b/test/wscript @@ -1,19 +1,20 @@ # -# Copyright (C) 2012-2015 Carl Hetherington +# Copyright (C) 2012-2016 Carl Hetherington # -# This program is free software; you can redistribute it and/or modify +# This file is part of DCP-o-matic. +# +# DCP-o-matic is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, +# DCP-o-matic is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# along with DCP-o-matic. If not, see . # def configure(conf): @@ -21,16 +22,18 @@ def configure(conf): 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') + conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True) + + 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 = 'unit-tests' - obj.uselib = 'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP OPENJPEG FONTCONFIG CAIROMM PANGOMM XMLPP ' + obj.uselib = 'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP ' obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU ' if bld.env.TARGET_WINDOWS: obj.uselib += 'WINSOCK2' @@ -51,6 +54,7 @@ def build(bld): dcp_subtitle_test.cc dcpomatic_time_test.cc ffmpeg_audio_test.cc + ffmpeg_audio_only_test.cc ffmpeg_dcp_test.cc ffmpeg_decoder_seek_test.cc ffmpeg_decoder_sequential_test.cc @@ -71,6 +75,9 @@ def build(bld): ratio_test.cc repeat_frame_test.cc recover_test.cc + rect_test.cc + reels_test.cc + required_disk_space_test.cc resampler_test.cc scaling_test.cc seek_zero_test.cc @@ -84,14 +91,16 @@ def build(bld): update_checker_test.cc upmixer_a_test.cc util_test.cc + vf_test.cc video_content_scale_test.cc video_decoder_fill_test.cc + video_mxf_content_test.cc xml_subtitle_test.cc """ # Disabled tests: some difference in font rendering between the test machine # and others... - # subrip_test.cc burnt_subtitle_test.cc + # burnt_subtitle_test.cc obj.target = 'unit-tests' obj.install_path = ''