blob: ab3e5fe277ae7330105bd0ae1bcf8867e8edea4f [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
top = '..'
from waflib import Logs
def build(bld):
if not bld.env['WITH_TESTS']:
return
Logs.error("Many unit tests are temporary disabled")
bld(features='cxx',
target='unit-tests-main',
name='unit-tests-main',
source='main.cpp',
use='BOOST',
includes='.. .',
defines=['BOOST_TEST_MODULE=ChronoShare Unit Tests'])
unit_tests = bld.program(
target='../unit-tests',
features='cxx cxxprogram',
source=bld.path.ant_glob(['*.cpp',
'unit-tests/dummy-forwarder.cpp',
'unit-tests/sync-*.t.cpp',
'unit-tests/action-log.t.cpp',
],
excl=['main.cpp']),
use='chronoshare core-objects unit-tests-main',
install_path=None,
defines='UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % (bld.bldnode),
includes='.. ../src .',
)