tree: 4e1413200eff7a2f3d31e3c6be76459e0ff6fd7f [path history] [tgz]
  1. chunks/
  2. dissect-wireshark/
  3. dump/
  4. peek/
  5. pib/
  6. ping/
  7. boost-test.hpp
  8. global-configuration-fixture.cpp
  9. identity-management-fixture.cpp
  10. identity-management-fixture.hpp
  11. main.cpp
  12. README.md
  13. test-case.t.cpp.sample
  14. test-common.cpp
  15. test-common.hpp
  16. wscript
tests/README.md

ndn-tool unit tests

Assumptions

Unit tests for a tool foo should be placed in the folder foo and build script for the tool should define foo-objects that includes all object files for the tool, except object files defining 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')