Davide Pesavento | cc2c717 | 2018-01-21 21:41:03 -0500 | [diff] [blame] | 1 | ndn-tools unit tests |
| 2 | ==================== |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 3 | |
| 4 | ## Assumptions |
| 5 | |
| 6 | Unit tests for a tool `foo` should be placed in the folder `foo` and build script for the tool |
| 7 | should define `foo-objects` that includes all object files for the tool, except object files |
| 8 | defining main function. |
| 9 | |
| 10 | For example, |
| 11 | |
| 12 | bld(features='cxx', |
| 13 | name='tool-subtool-objects', |
| 14 | source=bld.path.ant_glob('subtool/*.cpp', excl='subtool/main.cpp'), |
| 15 | use='core-objects') |
| 16 | |
| 17 | bld(features='cxx cxxprogram', |
| 18 | target='../../bin/subtool', |
| 19 | source='subtool/main.cpp', |
| 20 | use='tool-subtool-objects') |
| 21 | |
| 22 | bld(name='tool-objects', |
| 23 | use='tool-subtool-objects') |