tree: 3cd9286de6cfca9beb2bd00ef5da21b9ae692331 [path history] [tgz]
  1. dissect-wireshark/
  2. pib/
  3. ping/
  4. boost-test.hpp
  5. identity-management-time-fixture.cpp
  6. identity-management-time-fixture.hpp
  7. main.cpp
  8. README.md
  9. test-case.t.cpp.sample
  10. test-common.hpp
  11. 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')