Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '..' |
| 4 | |
| 5 | from waflib import Logs |
| 6 | |
| 7 | def build(bld): |
| 8 | Logs.error("Unit tests are temporary disabled") |
| 9 | return |
| 10 | |
| 11 | bld(features='cxx', |
| 12 | target='unit-tests-main', |
| 13 | name='unit-tests-main', |
| 14 | source='main.cpp', |
| 15 | use='BOOST', |
Alexander Afanasyev | 8495a4a | 2016-12-25 15:27:25 -0800 | [diff] [blame] | 16 | includes='.. .', |
| 17 | defines=['BOOST_TEST_MODULE=ChronoShare Unit Tests']) |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 18 | |
| 19 | unit_tests = bld.program( |
| 20 | target='../unit-tests', |
| 21 | features='cxx cxxprogram', |
| 22 | source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']), |
Alexander Afanasyev | 8495a4a | 2016-12-25 15:27:25 -0800 | [diff] [blame] | 23 | use='unit-tests-main chronoshare', |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 24 | install_path=None, |
Alexander Afanasyev | 8495a4a | 2016-12-25 15:27:25 -0800 | [diff] [blame] | 25 | defines='UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % (bld.bldnode), |
| 26 | includes='.. ../src .', |
Alexander Afanasyev | e83c056 | 2016-12-24 10:20:41 -0800 | [diff] [blame] | 27 | ) |