Basic and scruffy Subrip read support.
[libsub.git] / test / wscript
1 def configure(conf):
2     conf.check_cxx(fragment="""
3                             #define BOOST_TEST_MODULE Config test\n
4                             #include <boost/test/unit_test.hpp>\n
5                             int main() {}
6                             """,
7                             msg='Checking for boost unit testing library',
8                             lib='boost_unit_test_framework',
9                             uselib_store='BOOST_TEST')
10
11     conf.env.prepend_value('LINKFLAGS', '-Lsrc')
12
13 def build(bld):
14     obj = bld(features='cxx cxxprogram')
15     obj.name   = 'tests'
16     obj.uselib = 'BOOST_TEST CXML'
17     obj.use    = 'libsub'
18     obj.source = """
19                  dcp_reader_test.cc
20                  dcp_to_stl_binary_test.cc
21                  iso6937_test.cc
22                  stl_binary_reader_test.cc
23                  stl_binary_writer_test.cc
24                  stl_text_reader_test.cc
25                  subrip_reader_test.cc
26                  time_test.cc
27                  test.cc
28                  """
29     obj.target = 'tests'
30     obj.install_path = ''