Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | from waflib import Utils |
| 3 | |
| 4 | top = '..' |
| 5 | |
| 6 | def build(bld): |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 7 | bld.objects( |
Yingdi Yu | f7ede41 | 2014-08-30 20:37:52 -0700 | [diff] [blame] | 8 | target='tests-main', |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 9 | source='main.cpp', |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 10 | use='ChronoSync', |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 11 | defines=['BOOST_TEST_MODULE=ChronoSync']) |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 12 | |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 13 | bld.program( |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 14 | target="../unit-tests", |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 15 | name='unit-tests', |
Ashlesh Gawande | 08784d4 | 2017-09-06 23:40:21 -0500 | [diff] [blame] | 16 | source=bld.path.ant_glob(['unit-tests/**/*.cpp', 'identity-management-fixture.cpp']), |
Alexander Afanasyev | 36eb3ed | 2017-01-11 12:35:58 -0800 | [diff] [blame] | 17 | use='ChronoSync tests-main', |
Yingdi Yu | f7ede41 | 2014-08-30 20:37:52 -0700 | [diff] [blame] | 18 | includes=['.'], |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 19 | install_path=None) |
Yingdi Yu | f7ede41 | 2014-08-30 20:37:52 -0700 | [diff] [blame] | 20 | |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 21 | # TODO: Re-enable when there integration tests are implemented |
Alexander Afanasyev | 40491df | 2018-03-09 16:29:52 -0500 | [diff] [blame^] | 22 | # bld.program( |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 23 | # target="../integrated-tests", |
| 24 | # source=bld.path.ant_glob(['integrated-tests/**/*.cpp']), |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 25 | # use='ChronoSync tests-main', |
| 26 | # includes=['.'], |
| 27 | # install_path=None, |
| 28 | # ) |