Yuanzhi Gao | a5587ca | 2015-02-27 18:09:41 -0800 | [diff] [blame] | 1 | ndnSIM unit tests |
| 2 | ================= |
| 3 | |
| 4 | ndnSIM uses [Boost Unit Test Framework](http://www.boost.org/doc/libs/1_48_0/libs/test/doc/html/index.html) |
| 5 | for testing features of the implementation. |
| 6 | |
| 7 | ndnSIM unit tests should be placed into `ndnSIM/tests/unit-tests/` folder. All `.cpp` files placed |
| 8 | in this folder will be automatically compiled together. |
| 9 | |
| 10 | Running unit-tests |
| 11 | ------------------ |
| 12 | |
| 13 | To run unit tests, NS-3 and ndnSIM need to be configured and build with the unit test support. To |
| 14 | enable both general NS-3 unit tests and ndnSIM unit tests, add `--enable-tests` during configuration |
| 15 | phase. For example, run the following from the NS-3 root folder: |
| 16 | |
| 17 | ./waf configure --enable-tests |
| 18 | ./waf build |
| 19 | |
| 20 | To run unit tests: |
| 21 | |
| 22 | ./waf --run ndnSIM-unit-tests |