Add C++ Unit tests
[platform/upstream/iotivity.git] / resource / unittests / README
1 //---------------------------------------------------------------------
2 // NOTICE - Transition to SCONS
3 //---------------------------------------------------------------------
4
5 The IoTivity build system is transitioning to SCONS. Although the 
6 makefiles are still available (until v1.0) and some developers are 
7 still using them, they are currently no longer supported. To learn more 
8 about building using SCONS see Readme.scons.txt in the repository root 
9 directory. The build steps used in continuous integration can be found
10 in auto_build.sh which is also in the the repository root directory.
11
12 //---------------------------------------------------------------------
13
14 The unittests folder contains unit tests for OCPlatfrom and OCResource APIs. 
15 It uses Google Test for the unit tests. Please note that the unit tests are 
16 only to test the functionality of public APIs.
17 It is not a system or end-to-end test.
18
19 1. To run the unit test, first build the unit tests with the following command
20    from <oic-resource>:
21    make -f buildScript.mk linux_ub_unittests
22
23 2. Run the unit test by issuing the following command from <oic-resource>:
24    ./unittests/unittests