blob: 430e952e1db707f0d3e475b108d2626bde146f87 [file] [log] [blame]
Alexander Afanasyev3fd14f02014-03-26 14:34:39 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3from waflib import Utils
4
5top = '..'
6
7def build(bld):
Shuo Chenca329182014-03-19 18:05:18 -07008 if bld.env['WITH_TESTS']:
9 tests_base = bld(
10 target='tests-base',
11 name='tests-base',
12 features='cxx',
13 source=bld.path.ant_glob(['*.cpp']),
14 use='ndn-repo-objects',
15 )
16
17 # unit tests
18 unit_tests = bld.program(
19 target='../unit-tests',
20 features='cxx cxxprogram',
21 source=bld.path.ant_glob(['unit/**/*.cpp']),
22 use='tests-base',
23 install_path=None,
24 )
25
26 # integrated tests
Davide Pesaventob545aac2017-09-22 23:54:10 -040027 integ_tests = bld.program(
Shuo Chenca329182014-03-19 18:05:18 -070028 target='../integrated-tests',
29 features='cxx cxxprogram',
30 source=bld.path.ant_glob(['integrated/**/*.cpp']),
31 use='tests-base',
32 install_path=None,
33 )