blob: b568872a3975b23426b53ac748349823ccda911d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
#
# Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
#
# 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.
#
# 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 DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
#
def configure(conf):
boost_test_suffix=''
if conf.env.TARGET_WINDOWS_64:
boost_test_suffix='-mt-x64'
elif conf.env.TARGET_WINDOWS_32:
boost_test_suffix='-mt-x32'
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 <boost/test/unit_test.hpp>\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 FONTCONFIG CAIROMM PANGOMM XMLPP '
obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE SWRESAMPLE POSTPROC CXML SUB GLIB CURL SSH XMLSEC BOOST_REGEX ICU NETTLE PNG JPEG '
obj.uselib += 'LEQM_NRT ZIP SQLITE3 '
if bld.env.TARGET_WINDOWS_64 or bld.env.TARGET_WINDOWS_32:
obj.uselib += 'WINSOCK2 DBGHELP SHLWAPI MSWSOCK BOOST_LOCALE '
if bld.env.TARGET_LINUX:
obj.uselib += 'DL '
obj.use = 'libdcpomatic2'
obj.source = """
2536_regression_test.cc
2986_regression_test.cc
4k_test.cc
analytics_test.cc
atmos_test.cc
audio_analysis_test.cc
audio_buffers_test.cc
audio_content_test.cc
audio_delay_test.cc
audio_filter_test.cc
audio_mapping_test.cc
audio_merger_test.cc
audio_processor_test.cc
audio_processor_delay_test.cc
audio_ring_buffers_test.cc
burnt_subtitle_test.cc
butler_test.cc
bv20_test.cc
cinema_list_test.cc
cinema_sound_processor_test.cc
client_server_test.cc
closed_caption_test.cc
collator_test.cc
colour_conversion_test.cc
config_test.cc
content_test.cc
copy_dcp_details_to_film_test.cc
cpl_hash_test.cc
cpl_metadata_test.cc
create_cli_test.cc
dcpomatic_time_test.cc
dcp_decoder_test.cc
dcp_digest_file_test.cc
dcp_examiner_test.cc
dcp_metadata_test.cc
dcp_playback_test.cc
dcp_subtitle_test.cc
digest_test.cc
dkdm_recipient_list_test.cc
email_test.cc
empty_caption_test.cc
empty_test.cc
encode_cli_test.cc
encryption_test.cc
file_extension_test.cc
ffmpeg_audio_only_test.cc
ffmpeg_audio_test.cc
ffmpeg_dcp_test.cc
ffmpeg_decoder_error_test.cc
ffmpeg_decoder_seek_test.cc
ffmpeg_decoder_sequential_test.cc
ffmpeg_encoder_test.cc
ffmpeg_examiner_test.cc
ffmpeg_properties_test.cc
ffmpeg_pts_offset_test.cc
ffmpeg_subtitles_test.cc
file_group_test.cc
file_log_test.cc
file_naming_test.cc
filename_charset_test.cc
film_test.cc
film_metadata_test.cc
find_missing_test.cc
font_comparator_test.cc
font_id_allocator_test.cc
frame_interval_checker_test.cc
frame_rate_test.cc
grok_util_test.cc
guess_crop_test.cc
hints_test.cc
image_content_fade_test.cc
image_filename_sorter_test.cc
image_test.cc
image_proxy_test.cc
import_dcp_test.cc
interrupt_encoder_test.cc
isdcf_name_test.cc
j2k_encode_threading_test.cc
j2k_encoder_test.cc
job_manager_test.cc
j2k_video_bit_rate_test.cc
kdm_cli_test.cc
kdm_naming_test.cc
kdm_util_test.cc
low_bitrate_test.cc
markers_test.cc
map_cli_test.cc
mca_subdescriptors_test.cc
mpeg2_dcp_test.cc
no_use_video_test.cc
open_caption_test.cc
optimise_stills_test.cc
overlap_video_test.cc
pixel_formats_test.cc
player_test.cc
playlist_test.cc
pulldown_detect_test.cc
ratio_test.cc
relative_paths_test.cc
release_notes_test.cc
repeat_frame_test.cc
recover_test.cc
rect_test.cc
reels_test.cc
reel_writer_test.cc
required_disk_space_test.cc
remake_id_test.cc
remake_video_test.cc
remake_with_subtitle_test.cc
render_subtitles_test.cc
scaling_test.cc
scoped_temporary_test.cc
silence_padding_test.cc
shuffler_test.cc
skip_frame_test.cc
socket_test.cc
smtp_server.cc
srt_subtitle_test.cc
ssa_subtitle_test.cc
stream_test.cc
subtitle_charset_test.cc
subtitle_font_id_test.cc
subtitle_font_id_change_test.cc
subtitle_language_test.cc
subtitle_metadata_test.cc
subtitle_position_test.cc
subtitle_reel_test.cc
subtitle_reel_number_test.cc
subtitle_timing_test.cc
subtitle_trim_test.cc
template_test.cc
test.cc
text_decoder_test.cc
text_entry_point_test.cc
threed_test.cc
time_calculation_test.cc
torture_test.cc
unzipper_test.cc
update_checker_test.cc
upmixer_a_test.cc
util_test.cc
vf_test.cc
video_content_test.cc
video_content_scale_test.cc
video_level_test.cc
video_mxf_content_test.cc
vf_kdm_test.cc
writer_test.cc
video_trim_test.cc
zipper_test.cc
"""
if bld.env.TARGET_LINUX and bld.env.ENABLE_DISK:
obj.source += " disk_writer_test.cc"
obj.uselib += "LWEXT4 NANOMSG "
# This one doesn't check anything
# resampler_test.cc
obj.target = 'unit-tests'
obj.install_path = ''
|