blob: d6bcf936e11a252b8f26adbc14fe73a232548b17 [file] [log] [blame]
Alexander Afanasyeve83c0562016-12-24 10:20:41 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3top = '..'
4
5from waflib import Logs
6
7def 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 Afanasyev8495a4a2016-12-25 15:27:25 -080016 includes='.. .',
17 defines=['BOOST_TEST_MODULE=ChronoShare Unit Tests'])
Alexander Afanasyeve83c0562016-12-24 10:20:41 -080018
19 unit_tests = bld.program(
20 target='../unit-tests',
21 features='cxx cxxprogram',
22 source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']),
Alexander Afanasyev8495a4a2016-12-25 15:27:25 -080023 use='unit-tests-main chronoshare',
Alexander Afanasyeve83c0562016-12-24 10:20:41 -080024 install_path=None,
Alexander Afanasyev8495a4a2016-12-25 15:27:25 -080025 defines='UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % (bld.bldnode),
26 includes='.. ../src .',
Alexander Afanasyeve83c0562016-12-24 10:20:41 -080027 )