blob: ca34f42031e7492f0f50596240a54b47a7f453a0 [file] [log] [blame] [view]
# ndn-tools unit tests
## Assumptions
Unit tests for a tool `foo` should be placed in the folder `foo` and the build script
for the tool should define `foo-objects` that includes all object files for that tool,
except the object that contains the `main()` function.
For example:
bld(features='cxx',
name='tool-subtool-objects',
source=bld.path.ant_glob('subtool/*.cpp', excl='subtool/main.cpp'),
use='core-objects')
bld(features='cxx cxxprogram',
target='../../bin/subtool',
source='subtool/main.cpp',
use='tool-subtool-objects')
bld(name='tool-objects',
use='tool-subtool-objects')