-def build(bld):
- obj = bld(features = 'cxx cxxprogram')
- obj.name = 'short-unit-tests'
- obj.uselib = 'BOOST_TEST'
- obj.use = 'libdvdomatic'
- obj.source = 'short.cc'
- obj.target = 'short-unit-tests'
- obj.install_path = ''
+def configure(conf):
+ 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-mt', uselib_store = 'BOOST_TEST')
+def build(bld):
obj = bld(features = 'cxx cxxprogram')
- obj.name = 'long-unit-tests'
- obj.uselib = 'BOOST_TEST'
+ obj.name = 'unit-tests'
+ obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC'
obj.use = 'libdvdomatic'
- obj.source = 'long.cc'
- obj.target = 'long-unit-tests'
+ obj.source = 'test.cc'
+ obj.target = 'unit-tests'
obj.install_path = ''