2 # Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 if conf.env.TARGET_WINDOWS:
22 boost_test_suffix='-mt'
24 conf.check_cxx(fragment = """
25 #define BOOST_TEST_MODULE Config test\n
26 #include <boost/test/unit_test.hpp>\n
28 """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
31 obj = bld(features='cxx cxxprogram')
32 obj.name = 'unit-tests'
33 obj.uselib = 'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP OPENJPEG FONTCONFIG CAIROMM PANGOMM XMLPP '
34 obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU '
35 if bld.env.TARGET_WINDOWS:
36 obj.uselib += 'WINSOCK2'
37 obj.use = 'libdcpomatic2'
40 audio_analysis_test.cc
46 audio_processor_test.cc
47 audio_processor_delay_test.cc
50 colour_conversion_test.cc
52 dcpomatic_time_test.cc
55 ffmpeg_decoder_seek_test.cc
56 ffmpeg_decoder_sequential_test.cc
57 ffmpeg_examiner_test.cc
58 ffmpeg_pts_offset_test.cc
63 image_filename_sorter_test.cc
77 silence_padding_test.cc
83 time_calculation_test.cc
84 update_checker_test.cc
87 video_content_scale_test.cc
88 video_decoder_fill_test.cc
92 # Disabled tests: some difference in font rendering between the test machine
94 # subrip_test.cc burnt_subtitle_test.cc
96 obj.target = 'unit-tests'