blob: de42581438691eeb6b3f49fc28bc33f94c866537 [file] [log] [blame]
Zhiyi Zhang8617a792017-01-17 16:45:56 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Davide Pesavento4ffe19d2023-09-16 21:30:36 -04002
Zhiyi Zhang8617a792017-01-17 16:45:56 -08003top = '..'
4
5def build(bld):
Davide Pesavento842f1f72024-02-21 21:27:25 -05006 tmpdir = 'UNIT_TESTS_TMPDIR="%s"' % bld.bldnode.make_node('tests-tmp')
Davide Pesavento55d98602019-10-15 22:40:05 -04007 bld.program(
Davide Pesavento4ffe19d2023-09-16 21:30:36 -04008 target=f'{top}/unit-tests',
Davide Pesavento55d98602019-10-15 22:40:05 -04009 name='unit-tests',
10 source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']),
Davide Pesaventofd194852023-09-16 21:48:21 -040011 use='BOOST_TESTS libndn-cert',
Davide Pesavento725d3fc2021-11-19 23:37:03 -050012 defines=[tmpdir],
Davide Pesavento4ffe19d2023-09-16 21:30:36 -040013 includes=top,
Davide Pesavento55d98602019-10-15 22:40:05 -040014 install_path=None)