summaryrefslogtreecommitdiff
path: root/test/wscript
blob: 1593aac99bceb236a034f5b9ce39f5451c1d8085 (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
def configure(conf):
    boost_test_suffix=''
    if conf.env.TARGET_WINDOWS:
        boost_test_suffix='-mt'

    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 DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML MAGICK SUB'
    obj.use    = 'libdcpomatic2'
    obj.source = """
                 4k_test.cc
                 audio_analysis_test.cc
                 audio_buffers_test.cc
                 audio_delay_test.cc
                 audio_decoder_test.cc
                 audio_filter_test.cc
                 audio_mapping_test.cc
                 black_fill_test.cc
                 burnt_subtitle_test.cc
                 client_server_test.cc
                 colour_conversion_test.cc
                 dcp_subtitle_test.cc
                 ffmpeg_audio_test.cc
                 ffmpeg_dcp_test.cc
                 ffmpeg_decoder_seek_test.cc
                 ffmpeg_decoder_sequential_test.cc
                 ffmpeg_examiner_test.cc
                 ffmpeg_pts_offset_test.cc
                 file_group_test.cc
                 file_log_test.cc
                 film_metadata_test.cc
                 frame_rate_test.cc
                 image_test.cc
                 import_dcp_test.cc
                 isdcf_name_test.cc
                 job_test.cc
                 make_black_test.cc
                 player_test.cc
                 pixel_formats_test.cc
                 ratio_test.cc
                 repeat_frame_test.cc
                 recover_test.cc
                 resampler_test.cc
                 scaling_test.cc
                 seek_zero_test.cc
                 silence_padding_test.cc
                 skip_frame_test.cc
                 stream_test.cc
                 subrip_test.cc
                 test.cc
                 threed_test.cc
                 upmixer_a_test.cc
                 util_test.cc
                 video_decoder_fill_test.cc
                 xml_subtitle_test.cc
                 """

    obj.target = 'unit-tests'
    obj.install_path = ''

    obj = bld(features='cxx cxxprogram')
    obj.name   = 'long-unit-tests'
    obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC CXML SUB'
    obj.use    = 'libdcpomatic2'
    obj.source = """
                 test.cc
                 """

    obj.target = 'long-unit-tests'
    obj.install_path = ''