d747ab521384412159ba4a6fe6a1ac419091b086
[dcpomatic.git] / test / wscript
1 def configure(conf):
2     boost_test_suffix=''
3     if conf.env.TARGET_WINDOWS:
4         boost_test_suffix='-mt'
5
6     conf.check_cxx(fragment = """
7                               #define BOOST_TEST_MODULE Config test\n
8                               #include <boost/test/unit_test.hpp>\n
9                               int main() {}
10                               """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST')
11
12 def build(bld):
13     obj = bld(features='cxx cxxprogram')
14     obj.name   = 'unit-tests'
15     obj.uselib = 'BOOST_TEST BOOST_THREAD BOOST_FILESYSTEM SNDFILE DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB'
16     obj.use    = 'libdcpomatic2'
17     obj.source = """
18                  4k_test.cc
19                  audio_analysis_test.cc
20                  audio_buffers_test.cc
21                  audio_delay_test.cc
22                  audio_decoder_test.cc
23                  audio_filter_test.cc
24                  audio_mapping_test.cc
25                  black_fill_test.cc
26                  client_server_test.cc
27                  colour_conversion_test.cc
28                  dcp_subtitle_test.cc
29                  ffmpeg_audio_test.cc
30                  ffmpeg_dcp_test.cc
31                  ffmpeg_decoder_seek_test.cc
32                  ffmpeg_decoder_sequential_test.cc
33                  ffmpeg_examiner_test.cc
34                  ffmpeg_pts_offset_test.cc
35                  file_group_test.cc
36                  file_log_test.cc
37                  film_metadata_test.cc
38                  frame_rate_test.cc
39                  image_test.cc
40                  import_dcp_test.cc
41                  isdcf_name_test.cc
42                  job_test.cc
43                  make_black_test.cc
44                  player_test.cc
45                  pixel_formats_test.cc
46                  ratio_test.cc
47                  repeat_frame_test.cc
48                  recover_test.cc
49                  resampler_test.cc
50                  scaling_test.cc
51                  seek_zero_test.cc
52                  silence_padding_test.cc
53                  skip_frame_test.cc
54                  stream_test.cc
55                  test.cc
56                  threed_test.cc
57                  upmixer_a_test.cc
58                  util_test.cc
59                  video_decoder_fill_test.cc
60                  xml_subtitle_test.cc
61                  """
62
63     # Disabled tests: some difference in font rendering between the test machine
64     # and others...
65     # subrip_test.cc burnt_subtitle_test.cc
66
67     obj.target = 'unit-tests'
68     obj.install_path = ''