blob: b09be43dcbeaf73184511ede41a6d2d4d67e3f20 [file] [log] [blame]
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -04002"""
Davide Pesavento0064c1d2018-03-03 18:43:53 -05003Copyright (c) 2014-2018, Regents of the University of California,
Junxiao Shi85d17fc2015-01-21 22:18:17 -07004 Arizona Board of Regents,
5 Colorado State University,
6 University Pierre & Marie Curie, Sorbonne University,
7 Washington University in St. Louis,
8 Beijing Institute of Technology,
9 The University of Memphis.
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040010
11This file is part of NFD (Named Data Networking Forwarding Daemon).
12See AUTHORS.md for complete list of NFD authors and contributors.
13
14NFD is free software: you can redistribute it and/or modify it under the terms
15of the GNU General Public License as published by the Free Software Foundation,
16either version 3 of the License, or (at your option) any later version.
17
18NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20PURPOSE. See the GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License along with
23NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
24"""
25
Alexander Afanasyev613e2a92014-04-15 13:36:58 -070026top = '../..'
Ilya Moiseenko96b80bb2014-04-05 20:53:27 -040027
28def build(bld):
Weiwei Liu4f1afac2016-04-02 19:08:38 -070029 for module, name in {"cs-benchmark": "CS Benchmark",
30 "pit-fib-benchmark": "PIT & FIB Benchmark"}.items():
31 # main
Davide Pesavento0064c1d2018-03-03 18:43:53 -050032 bld.objects(target='other-tests-%s-main' % module,
33 source='../main.cpp',
34 use='BOOST',
35 defines=['BOOST_TEST_MODULE=%s' % name])
Weiwei Liu4f1afac2016-04-02 19:08:38 -070036 # module
Davide Pesavento0064c1d2018-03-03 18:43:53 -050037 bld.program(name=module,
38 target='../../%s' % module,
39 source=bld.path.ant_glob('%s*.cpp' % module),
Teng Liang39465c22018-11-12 19:43:04 -070040 use='daemon-objects rib-objects unit-tests-base other-tests-%s-main' % module,
Davide Pesavento0064c1d2018-03-03 18:43:53 -050041 defines=['UNIT_TEST_CONFIG_PATH="%s"' % bld.bldnode.make_node('tmp-files')],
42 install_path=None)
Weiwei Liu4f1afac2016-04-02 19:08:38 -070043
44 # face-benchmark does not rely on Boost.Test
Davide Pesavento0064c1d2018-03-03 18:43:53 -050045 bld.program(name='face-benchmark',
46 target='../../face-benchmark',
47 source=bld.path.ant_glob('face-benchmark*.cpp'),
Teng Liang39465c22018-11-12 19:43:04 -070048 use='daemon-objects rib-objects',
Davide Pesavento0064c1d2018-03-03 18:43:53 -050049 install_path=None)