Changeset for reviewing RI-CA integration changes.
[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 To dynamically link with the Google Unit test library,
13 add <src_dir>/extlibs/gtest/gtest-1.7.0/lib/.libs/ to LD_LIBRARY_PATH
14
15 //---------------------------------------------------------------------
16
17 The unittests folder contains unit tests for OCPlatfrom and OCResource APIs.
18 It uses Google Test for the unit tests. Please note that the unit tests are
19 only to test the functionality of public APIs.
20 It is not a system or end-to-end test.
21
22 1. To run the unit test, first build the unit tests with the following command
23    from <oic-resource>:
24    make -f buildScript.mk linux_ub_unittests
25
26 2. Run the unit test by issuing the following command from <oic-resource>:
27    ./unittests/unittests
28