blob: 685a0bfec9b32c9f011662481c1e85f3c71a40eb [file] [log] [blame]
Zhiyi Zhang8617a792017-01-17 16:45:56 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2from waflib import Utils
3
4top = '..'
5
6def build(bld):
7 if not bld.env["WITH_TESTS"]:
8 return
9
10 tests_main = bld(
11 target='tests-main',
12 name='tests-main',
13 features='cxx',
14 source="main.cpp",
Zhiyi Zhangac421852017-04-09 11:24:33 -070015 use='ndn-cert BOOST',
Zhiyi Zhang8617a792017-01-17 16:45:56 -080016 defines=['BOOST_TEST_MODULE=\"NDNCERT Tests\"']
17 )
18
19 unit_test = bld.program(
20 target="../unit-tests",
21 source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp'],
22 excl=['main.cpp']),
23 features=['cxx', 'cxxprogram'],
Zhiyi Zhangac421852017-04-09 11:24:33 -070024 use='ndn-cert tests-main',
Zhiyi Zhang8617a792017-01-17 16:45:56 -080025 includes=['.'],
26 install_path=None,
27 defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode,
28 )