blob: b157a320a9ba58f308415a1bd115c1ab2823dcf0 [file] [log] [blame]
Yingdi Yub20ae812014-08-15 11:20:19 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2from waflib import Utils
3
4top = '..'
5
6def build(bld):
Yingdi Yuf7ede412014-08-30 20:37:52 -07007 test_main = bld(
8 target='tests-main',
9 name='tests-main',
Yingdi Yub20ae812014-08-15 11:20:19 -070010 features='cxx',
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080011 source='main.cpp',
Yingdi Yub20ae812014-08-15 11:20:19 -070012 use='ChronoSync',
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080013 defines=['BOOST_TEST_MODULE=ChronoSync']
Yingdi Yub20ae812014-08-15 11:20:19 -070014 )
15
16 unit_test = bld.program(
17 target="../unit-tests",
18 source=bld.path.ant_glob(['unit-tests/**/*.cpp']),
19 features=['cxx', 'cxxprogram'],
Yingdi Yuf7ede412014-08-30 20:37:52 -070020 use='ChronoSync tests-main LOG4CXX',
21 includes=['.'],
22 install_path=None,
23 )
24
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080025 # TODO: Re-enable when there integration tests are implemented
26 # integrated_test = bld.program(
27 # target="../integrated-tests",
28 # source=bld.path.ant_glob(['integrated-tests/**/*.cpp']),
29 # features=['cxx', 'cxxprogram'],
30 # use='ChronoSync tests-main',
31 # includes=['.'],
32 # install_path=None,
33 # )