blob: d105888f2e0c82a83092cf0c630181e729322fde [file] [log] [blame]
Yingdi Yu40cd1c32014-04-17 15:02:17 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
Nick Gordonf8b5bcd2016-08-11 15:06:50 -05004Copyright (c) 2014-2016, The University of Memphis
5 Regents of the University of California,
Yingdi Yu40cd1c32014-04-17 15:02:17 -07006
7This file is part of NLSR (Named-data Link State Routing).
8See AUTHORS.md for complete list of NLSR authors and contributors.
9
10NLSR is free software: you can redistribute it and/or modify it under the terms
11of the GNU General Public License as published by the Free Software Foundation,
12either version 3 of the License, or (at your option) any later version.
13
14NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16PURPOSE. See the GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License along with
19NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
20"""
21
22top = '..'
23
24def build(bld):
25 # Unit tests
26 if bld.env['WITH_TESTS']:
27 unit_test_main = bld(
28 target='unit-tests-main',
29 name='unit-tests-main',
30 features='cxx',
alvy297f4162015-03-03 17:15:33 -060031 source=bld.path.ant_glob(['**/*.cpp'], excl=['nsync/**/*']),
Yingdi Yu40cd1c32014-04-17 15:02:17 -070032 use='nlsr-objects',
33 )
34
35 # nsync tests
36 unit_tests_nsync = bld.program(
37 target='../unit-tests-nsync',
38 features='cxx cxxprogram',
39 source=bld.path.ant_glob(['nsync/**/*.cc']),
40 use='nsync-objects unit-tests-main',
41 includes='.',
Vince Lehmanaf909fc2016-01-11 12:26:59 -060042 install_path=None,
Yingdi Yu40cd1c32014-04-17 15:02:17 -070043 )
44
45 # nlsr tests
46 unit_tests_nlsr = bld.program(
47 target='../unit-tests-nlsr',
48 features='cxx cxxprogram',
49 source=bld.path.ant_glob(['nlsr/**/*.cpp']),
Vince Lehman7b616582014-10-17 16:25:39 -050050 use='nlsr-objects unit-tests-main',
Yingdi Yu40cd1c32014-04-17 15:02:17 -070051 includes='.',
Vince Lehmanaf909fc2016-01-11 12:26:59 -060052 install_path=None,
Yingdi Yu40cd1c32014-04-17 15:02:17 -070053 )