Zhiyi Zhang | 8617a79 | 2017-01-17 16:45:56 -0800 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
Davide Pesavento | 4ffe19d | 2023-09-16 21:30:36 -0400 | [diff] [blame] | 2 | |
Zhiyi Zhang | 8617a79 | 2017-01-17 16:45:56 -0800 | [diff] [blame] | 3 | top = '..' |
| 4 | |
| 5 | def build(bld): |
Davide Pesavento | 842f1f7 | 2024-02-21 21:27:25 -0500 | [diff] [blame] | 6 | tmpdir = 'UNIT_TESTS_TMPDIR="%s"' % bld.bldnode.make_node('tests-tmp') |
Davide Pesavento | 55d9860 | 2019-10-15 22:40:05 -0400 | [diff] [blame] | 7 | bld.program( |
Davide Pesavento | 4ffe19d | 2023-09-16 21:30:36 -0400 | [diff] [blame] | 8 | target=f'{top}/unit-tests', |
Davide Pesavento | 55d9860 | 2019-10-15 22:40:05 -0400 | [diff] [blame] | 9 | name='unit-tests', |
| 10 | source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']), |
Davide Pesavento | fd19485 | 2023-09-16 21:48:21 -0400 | [diff] [blame] | 11 | use='BOOST_TESTS libndn-cert', |
Davide Pesavento | 725d3fc | 2021-11-19 23:37:03 -0500 | [diff] [blame] | 12 | defines=[tmpdir], |
Davide Pesavento | 4ffe19d | 2023-09-16 21:30:36 -0400 | [diff] [blame] | 13 | includes=top, |
Davide Pesavento | 55d9860 | 2019-10-15 22:40:05 -0400 | [diff] [blame] | 14 | install_path=None) |