blob: 83cab772acf8acc2ebca90b1287d2d9911a1da58 [file] [log] [blame] [view]
Davide Pesaventocc2c7172018-01-21 21:41:03 -05001ndn-tools unit tests
2====================
Junxiao Shi2713a3b2015-06-22 16:19:05 -07003
4## Assumptions
5
6Unit tests for a tool `foo` should be placed in the folder `foo` and build script for the tool
7should define `foo-objects` that includes all object files for the tool, except object files
8defining main function.
9
10For example,
11
12 bld(features='cxx',
13 name='tool-subtool-objects',
14 source=bld.path.ant_glob('subtool/*.cpp', excl='subtool/main.cpp'),
15 use='core-objects')
16
17 bld(features='cxx cxxprogram',
18 target='../../bin/subtool',
19 source='subtool/main.cpp',
20 use='tool-subtool-objects')
21
22 bld(name='tool-objects',
23 use='tool-subtool-objects')