blob: ca34f42031e7492f0f50596240a54b47a7f453a0 [file] [log] [blame] [view]
Davide Pesaventob07d7a92020-05-13 23:30:07 -04001# ndn-tools unit tests
Junxiao Shi2713a3b2015-06-22 16:19:05 -07002
3## Assumptions
4
Davide Pesaventob07d7a92020-05-13 23:30:07 -04005Unit tests for a tool `foo` should be placed in the folder `foo` and the build script
6for the tool should define `foo-objects` that includes all object files for that tool,
7except the object that contains the `main()` function.
Junxiao Shi2713a3b2015-06-22 16:19:05 -07008
Davide Pesaventob07d7a92020-05-13 23:30:07 -04009For example:
Junxiao Shi2713a3b2015-06-22 16:19:05 -070010
11 bld(features='cxx',
12 name='tool-subtool-objects',
13 source=bld.path.ant_glob('subtool/*.cpp', excl='subtool/main.cpp'),
14 use='core-objects')
15
16 bld(features='cxx cxxprogram',
17 target='../../bin/subtool',
18 source='subtool/main.cpp',
19 use='tool-subtool-objects')
20
21 bld(name='tool-objects',
22 use='tool-subtool-objects')