Fix parsing of SSA colour tags which have their leading zeros omitted.
[libsub.git] / test / wscript
1 def configure(conf):
2     boost_lib_suffix = ''
3     if conf.env.TARGET_WINDOWS:
4         boost_lib_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                             """,
11                             msg='Checking for boost unit testing library',
12                             lib='boost_unit_test_framework%s' % boost_lib_suffix,
13                             uselib_store='BOOST_TEST')
14
15     conf.env.prepend_value('LINKFLAGS', '-Lsrc')
16
17 def build(bld):
18     obj = bld(features='cxx cxxprogram')
19     obj.name   = 'tests'
20     obj.uselib = 'BOOST_TEST BOOST_REGEX BOOST_FILESYSTEM DCP CXML ASDCPLIB_CTH'
21     obj.use    = 'libsub-1.0'
22     obj.source = """
23                  dcp_reader_test.cc
24                  dcp_to_stl_binary_test.cc
25                  iso6937_test.cc
26                  ssa_reader_test.cc
27                  stl_binary_reader_test.cc
28                  stl_binary_writer_test.cc
29                  stl_text_reader_test.cc
30                  subrip_reader_test.cc
31                  time_test.cc
32                  test.cc
33                  vertical_position_test.cc
34                  """
35     obj.target = 'tests'
36     obj.install_path = ''