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