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

ndn-tools 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')