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): |
Yingdi Yu | f7ede41 | 2014-08-30 20:37:52 -0700 | [diff] [blame] | 7 | test_main = bld( |
| 8 | target='tests-main', |
| 9 | name='tests-main', |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 10 | features='cxx', |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 11 | source='main.cpp', |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 12 | use='ChronoSync', |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 13 | defines=['BOOST_TEST_MODULE=ChronoSync'] |
Yingdi Yu | b20ae81 | 2014-08-15 11:20:19 -0700 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | unit_test = bld.program( |
| 17 | target="../unit-tests", |
| 18 | source=bld.path.ant_glob(['unit-tests/**/*.cpp']), |
| 19 | features=['cxx', 'cxxprogram'], |
Alexander Afanasyev | 36eb3ed | 2017-01-11 12:35:58 -0800 | [diff] [blame] | 20 | use='ChronoSync tests-main', |
Yingdi Yu | f7ede41 | 2014-08-30 20:37:52 -0700 | [diff] [blame] | 21 | includes=['.'], |
| 22 | install_path=None, |
| 23 | ) |
| 24 | |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 25 | # 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 | # ) |