Add VideoMXFContent (part of #803).
[dcpomatic.git] / test / wscript
1 #
2 #    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
3 #
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.
8 #
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.
13 #
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.
17 #
18
19 def configure(conf):
20     boost_test_suffix=''
21     if conf.env.TARGET_WINDOWS:
22         boost_test_suffix='-mt'
23
24     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True)
25
26     conf.check_cxx(fragment="""
27                             #define BOOST_TEST_MODULE Config test\n
28                             #include <boost/test/unit_test.hpp>\n
29                             int main() {}
30                             """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
31
32 def build(bld):
33     obj = bld(features='cxx cxxprogram')
34     obj.name   = 'unit-tests'
35     obj.uselib =  'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM BOOST_DATETIME SNDFILE SAMPLERATE DCP FONTCONFIG CAIROMM PANGOMM XMLPP '
36     obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU '
37     if bld.env.TARGET_WINDOWS:
38         obj.uselib += 'WINSOCK2'
39     obj.use    = 'libdcpomatic2'
40     obj.source = """
41                  4k_test.cc
42                  audio_analysis_test.cc
43                  audio_buffers_test.cc
44                  audio_delay_test.cc
45                  audio_decoder_test.cc
46                  audio_filter_test.cc
47                  audio_mapping_test.cc
48                  audio_processor_test.cc
49                  audio_processor_delay_test.cc
50                  black_fill_test.cc
51                  client_server_test.cc
52                  colour_conversion_test.cc
53                  dcp_subtitle_test.cc
54                  dcpomatic_time_test.cc
55                  ffmpeg_audio_test.cc
56                  ffmpeg_audio_only_test.cc
57                  ffmpeg_dcp_test.cc
58                  ffmpeg_decoder_seek_test.cc
59                  ffmpeg_decoder_sequential_test.cc
60                  ffmpeg_examiner_test.cc
61                  ffmpeg_pts_offset_test.cc
62                  file_group_test.cc
63                  file_log_test.cc
64                  film_metadata_test.cc
65                  frame_rate_test.cc
66                  image_filename_sorter_test.cc
67                  image_test.cc
68                  import_dcp_test.cc
69                  isdcf_name_test.cc
70                  job_test.cc
71                  make_black_test.cc
72                  player_test.cc
73                  pixel_formats_test.cc
74                  ratio_test.cc
75                  repeat_frame_test.cc
76                  recover_test.cc
77                  rect_test.cc
78                  reels_test.cc
79                  required_disk_space_test.cc
80                  resampler_test.cc
81                  scaling_test.cc
82                  seek_zero_test.cc
83                  silence_padding_test.cc
84                  skip_frame_test.cc
85                  srt_subtitle_test.cc
86                  stream_test.cc
87                  test.cc
88                  threed_test.cc
89                  time_calculation_test.cc
90                  update_checker_test.cc
91                  upmixer_a_test.cc
92                  util_test.cc
93                  vf_test.cc
94                  video_content_scale_test.cc
95                  video_decoder_fill_test.cc
96                  video_mxf_content_test.cc
97                  xml_subtitle_test.cc
98                  """
99
100     # Disabled tests: some difference in font rendering between the test machine
101     # and others...
102     # burnt_subtitle_test.cc
103
104     obj.target = 'unit-tests'
105     obj.install_path = ''