blob: 89ac6622146c5937c9bc5465d3fd26112f84df98 [file] [log] [blame]
Zhiyi Zhang8617a792017-01-17 16:45:56 -08001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Zhiyi Zhang8617a792017-01-17 16:45:56 -08002top = '..'
3
4def build(bld):
Davide Pesavento55d98602019-10-15 22:40:05 -04005 if not bld.env.WITH_TESTS:
Zhiyi Zhang8617a792017-01-17 16:45:56 -08006 return
7
Davide Pesavento829aff62022-05-15 20:30:34 -04008 tmpdir = 'UNIT_TESTS_TMPDIR="%s"' % bld.bldnode.make_node('tmp-files')
Davide Pesavento55d98602019-10-15 22:40:05 -04009 bld.program(
10 target='../unit-tests',
11 name='unit-tests',
12 source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp']),
Davide Pesavento725d3fc2021-11-19 23:37:03 -050013 use='ndn-cert',
Davide Pesavento725d3fc2021-11-19 23:37:03 -050014 defines=[tmpdir],
Davide Pesavento55d98602019-10-15 22:40:05 -040015 install_path=None)