blob: 926ba9db66629a61ef7e99cb501867e218612c34 [file] [log] [blame]
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3"""
Weiwei Liu4f1afac2016-04-02 19:08:38 -07004Copyright (c) 2014-2016, Regents of the University of California,
Junxiao Shi85d17fc2015-01-21 22:18:17 -07005 Arizona Board of Regents,
6 Colorado State University,
7 University Pierre & Marie Curie, Sorbonne University,
8 Washington University in St. Louis,
9 Beijing Institute of Technology,
10 The University of Memphis.
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040011
12This file is part of NFD (Named Data Networking Forwarding Daemon).
13See AUTHORS.md for complete list of NFD authors and contributors.
14
15NFD is free software: you can redistribute it and/or modify it under the terms
16of the GNU General Public License as published by the Free Software Foundation,
17either version 3 of the License, or (at your option) any later version.
18
19NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
20without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
21PURPOSE. See the GNU General Public License for more details.
22
23You should have received a copy of the GNU General Public License along with
24NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
25"""
26
Alexander Afanasyev613e2a92014-04-15 13:36:58 -070027top = '../..'
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040028
29def build(bld):
Weiwei Liu4f1afac2016-04-02 19:08:38 -070030 for module, name in {"cs-benchmark": "CS Benchmark",
31 "pit-fib-benchmark": "PIT & FIB Benchmark"}.items():
32 # main
33 bld(target='unit-tests-%s-main' % module,
34 name='unit-tests-%s-main' % module,
35 features='cxx',
36 source='../main.cpp',
37 use='BOOST',
38 defines=['BOOST_TEST_MODULE=%s' % name]
39 )
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080040
Weiwei Liu4f1afac2016-04-02 19:08:38 -070041 # module
42 bld.program(target='../../%s' % module,
43 features='cxx cxxprogram',
44 source=bld.path.ant_glob(['%s*.cpp' % module]),
45 use='daemon-objects unit-tests-base unit-tests-%s-main' % module,
46 includes='.',
47 install_path=None,
48 defines=['UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % bld.bldnode]
49 )
50
51 # face-benchmark does not rely on Boost.Test
52 bld.program(target='../../face-benchmark',
53 features='cxx cxxprogram',
54 source=bld.path.ant_glob(['face-benchmark*.cpp']),
55 use='daemon-objects',
56 includes='.',
57 install_path=None
58 )