Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 2 | """ |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame^] | 3 | Copyright (c) 2014-2018, Regents of the University of California, |
Junxiao Shi | 85d17fc | 2015-01-21 22:18:17 -0700 | [diff] [blame] | 4 | 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 Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 10 | |
| 11 | This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 12 | See AUTHORS.md for complete list of NFD authors and contributors. |
| 13 | |
| 14 | NFD is free software: you can redistribute it and/or modify it under the terms |
| 15 | of the GNU General Public License as published by the Free Software Foundation, |
| 16 | either version 3 of the License, or (at your option) any later version. |
| 17 | |
| 18 | NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 19 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 20 | PURPOSE. See the GNU General Public License for more details. |
| 21 | |
| 22 | You should have received a copy of the GNU General Public License along with |
| 23 | NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 24 | """ |
| 25 | |
Alexander Afanasyev | 613e2a9 | 2014-04-15 13:36:58 -0700 | [diff] [blame] | 26 | top = '../..' |
Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 27 | |
| 28 | def build(bld): |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 29 | for module, name in {"cs-benchmark": "CS Benchmark", |
| 30 | "pit-fib-benchmark": "PIT & FIB Benchmark"}.items(): |
| 31 | # main |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame^] | 32 | bld.objects(target='other-tests-%s-main' % module, |
| 33 | source='../main.cpp', |
| 34 | use='BOOST', |
| 35 | defines=['BOOST_TEST_MODULE=%s' % name]) |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 36 | # module |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame^] | 37 | bld.program(name=module, |
| 38 | target='../../%s' % module, |
| 39 | source=bld.path.ant_glob('%s*.cpp' % module), |
| 40 | use='daemon-objects unit-tests-base other-tests-%s-main' % module, |
| 41 | defines=['UNIT_TEST_CONFIG_PATH="%s"' % bld.bldnode.make_node('tmp-files')], |
| 42 | install_path=None) |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 43 | |
| 44 | # face-benchmark does not rely on Boost.Test |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame^] | 45 | bld.program(name='face-benchmark', |
| 46 | target='../../face-benchmark', |
| 47 | source=bld.path.ant_glob('face-benchmark*.cpp'), |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 48 | use='daemon-objects', |
Davide Pesavento | 0064c1d | 2018-03-03 18:43:53 -0500 | [diff] [blame^] | 49 | install_path=None) |