Change MagickImageProxy to FFmpegImageProxy and make it use FFmpeg
[dcpomatic.git] / test / wscript
1 #
2 #    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
3 #
4 #    This file is part of DCP-o-matic.
5 #
6 #    DCP-o-matic is free software; you can redistribute it and/or modify
7 #    it under the terms of the GNU General Public License as published by
8 #    the Free Software Foundation; either version 2 of the License, or
9 #    (at your option) any later version.
10 #
11 #    DCP-o-matic is distributed in the hope that it will be useful,
12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #    GNU General Public License for more details.
15 #
16 #    You should have received a copy of the GNU General Public License
17 #    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 def configure(conf):
21     boost_test_suffix=''
22     if conf.env.TARGET_WINDOWS:
23         boost_test_suffix='-mt'
24
25     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True)
26
27     conf.check_cxx(fragment="""
28                             #define BOOST_TEST_MODULE Config test\n
29                             #include <boost/test/unit_test.hpp>\n
30                             int main() {}
31                             """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
32
33 def build(bld):
34     obj = bld(features='cxx cxxprogram')
35     obj.name   = 'unit-tests'
36     obj.uselib =  'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP '
37     obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE SWRESAMPLE POSTPROC CXML SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU NETTLE '
38     if bld.env.TARGET_WINDOWS:
39         obj.uselib += 'WINSOCK2 DBGHELP SHLWAPI MSWSOCK BOOST_LOCALE '
40     obj.use    = 'libdcpomatic2'
41     obj.source = """
42                  4k_test.cc
43                  audio_analysis_test.cc
44                  audio_buffers_test.cc
45                  audio_delay_test.cc
46                  audio_filter_test.cc
47                  audio_mapping_test.cc
48                  audio_merger_test.cc
49                  audio_processor_test.cc
50                  audio_processor_delay_test.cc
51                  audio_ring_buffers_test.cc
52                  butler_test.cc
53                  client_server_test.cc
54                  closed_caption_test.cc
55                  colour_conversion_test.cc
56                  config_test.cc
57                  content_test.cc
58                  dcpomatic_time_test.cc
59                  dcp_subtitle_test.cc
60                  digest_test.cc
61                  empty_test.cc
62                  ffmpeg_audio_only_test.cc
63                  ffmpeg_audio_test.cc
64                  ffmpeg_dcp_test.cc
65                  ffmpeg_decoder_seek_test.cc
66                  ffmpeg_decoder_sequential_test.cc
67                  ffmpeg_encoder_test.cc
68                  ffmpeg_examiner_test.cc
69                  ffmpeg_pts_offset_test.cc
70                  file_group_test.cc
71                  file_log_test.cc
72                  file_naming_test.cc
73                  film_metadata_test.cc
74                  frame_rate_test.cc
75                  image_filename_sorter_test.cc
76                  image_test.cc
77                  import_dcp_test.cc
78                  interrupt_encoder_test.cc
79                  isdcf_name_test.cc
80                  j2k_bandwidth_test.cc
81                  job_test.cc
82                  make_black_test.cc
83                  optimise_stills_test.cc
84                  pixel_formats_test.cc
85                  player_test.cc
86                  ratio_test.cc
87                  repeat_frame_test.cc
88                  recover_test.cc
89                  rect_test.cc
90                  reels_test.cc
91                  required_disk_space_test.cc
92                  remake_id_test.cc
93                  remake_with_subtitle_test.cc
94                  render_subtitles_test.cc
95                  scaling_test.cc
96                  silence_padding_test.cc
97                  shuffler_test.cc
98                  skip_frame_test.cc
99                  srt_subtitle_test.cc
100                  ssa_subtitle_test.cc
101                  stream_test.cc
102                  subtitle_charset_test.cc
103                  subtitle_reel_number_test.cc
104                  subtitle_trim_test.cc
105                  test.cc
106                  threed_test.cc
107                  time_calculation_test.cc
108                  torture_test.cc
109                  update_checker_test.cc
110                  upmixer_a_test.cc
111                  util_test.cc
112                  vf_test.cc
113                  video_content_scale_test.cc
114                  video_mxf_content_test.cc
115                  vf_kdm_test.cc
116                  """
117
118     # Some difference in font rendering between the test machine and others...
119     # burnt_subtitle_test.cc
120     # This one doesn't check anything
121     # resampler_test.cc
122
123     obj.target = 'unit-tests'
124     obj.install_path = ''