blob: ddcd0c5162ac05756e78ff3d31998966f9d4d1a0 [file] [log] [blame] [view]
Junxiao Shi2713a3b2015-06-22 16:19:05 -07001ndn-tool unit tests
2===================
3
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')