blob: 3e98b34b422b4010c674856cd38c1a2fca469988 [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",
Ashlesh Gawande08784d42017-09-06 23:40:21 -050018 source=bld.path.ant_glob(['unit-tests/**/*.cpp', 'identity-management-fixture.cpp']),
Yingdi Yub20ae812014-08-15 11:20:19 -070019 features=['cxx', 'cxxprogram'],
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080020 use='ChronoSync tests-main',
Yingdi Yuf7ede412014-08-30 20:37:52 -070021 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 # )