Various comment fixes to tests.
[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 DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML'
16     obj.use    = 'libdcpomatic'
17     obj.source = """
18                  4k_test.cc
19                  audio_analysis_test.cc
20                  audio_delay_test.cc
21                  audio_mapping_test.cc
22                  black_fill_test.cc
23                  client_server_test.cc
24                  colour_conversion_test.cc
25                  ffmpeg_audio_test.cc
26                  ffmpeg_dcp_test.cc
27                  ffmpeg_decoder_seek_test.cc
28                  ffmpeg_decoder_sequential_test.cc
29                  ffmpeg_examiner_test.cc
30                  ffmpeg_pts_offset_test.cc
31                  file_group_test.cc
32                  film_metadata_test.cc
33                  frame_rate_test.cc
34                  image_test.cc
35                  job_test.cc
36                  make_black_test.cc
37                  player_silence_padding_test.cc
38                  pixel_formats_test.cc
39                  ratio_test.cc
40                  repeat_frame_test.cc
41                  recover_test.cc
42                  resampler_test.cc
43                  scaling_test.cc
44                  seek_zero_test.cc
45                  silence_padding_test.cc
46                  skip_frame_test.cc
47                  stream_test.cc
48                  subrip_test.cc
49                  test.cc
50                  threed_test.cc
51                  util_test.cc
52                  """
53
54     obj.target = 'unit-tests'
55     obj.install_path = ''
56
57     obj = bld(features='cxx cxxprogram')
58     obj.name   = 'long-unit-tests'
59     obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML'
60     obj.use    = 'libdcpomatic'
61     obj.source = """
62                  test.cc
63                  """
64
65     obj.target = 'long-unit-tests'
66     obj.install_path = ''