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; -*- |
| 2 | |
| 3 | """ |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 4 | Copyright (c) 2014-2016, Regents of the University of California, |
Junxiao Shi | 85d17fc | 2015-01-21 22:18:17 -0700 | [diff] [blame] | 5 | 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 Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 11 | |
| 12 | This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 13 | See AUTHORS.md for complete list of NFD authors and contributors. |
| 14 | |
| 15 | NFD is free software: you can redistribute it and/or modify it under the terms |
| 16 | of the GNU General Public License as published by the Free Software Foundation, |
| 17 | either version 3 of the License, or (at your option) any later version. |
| 18 | |
| 19 | NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 20 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 21 | PURPOSE. See the GNU General Public License for more details. |
| 22 | |
| 23 | You should have received a copy of the GNU General Public License along with |
| 24 | NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 25 | """ |
| 26 | |
Alexander Afanasyev | 613e2a9 | 2014-04-15 13:36:58 -0700 | [diff] [blame] | 27 | top = '../..' |
Ilya Moiseenko | 96b80bb | 2014-04-05 20:53:27 -0400 | [diff] [blame] | 28 | |
| 29 | def build(bld): |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 30 | 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 Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 40 | |
Weiwei Liu | 4f1afac | 2016-04-02 19:08:38 -0700 | [diff] [blame] | 41 | # 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 | ) |