Updated README files to refer to usage of scons
authorRavi Nanjundappa <nravi.n@samsung.com>
Mon, 21 Sep 2015 11:42:12 +0000 (17:12 +0530)
committerJon A. Cruz <jonc@osg.samsung.com>
Tue, 22 Sep 2015 19:46:00 +0000 (19:46 +0000)
Changed README file in resource/csdk/stack/test directory to refer to usage
of scons instead of make commands.

Change-Id: I3b51026ef0bacd9859ce2542eb7a4660c30e8b64
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2853
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/stack/test/README

index 7da8c21..7d08f04 100644 (file)
@@ -38,20 +38,24 @@ Unit Test Requirements:
 3. The unit test assumes that a network interface is available
    (e.g. "eth0", "wlan0", etc.)
    If no interface is available, the unit tests will FAIL.
+
 4. To run the unit test, first build the C OCStack.
    At the time of this writing this was done by running
 
-   root/csdk/make deepclean
-   root/csdk/make BUILD=release    *default
-   root/csdk/make BUILD=debug
+   scons -c resource/csdk/
+   scons resource/csdk/ RELEASE=1  //*default
+   scons resource/csdk/ RELEASE=0
 
 5. Next, build the ocstack
-   root/csdk/stack/test/make clean
-   root/csdk/stack/test/make BUILD=release    *default
-   root/csdk/stack/test/make BUILD=debug
+   scons -c resource/csdk/stack/test
+   scons resource/csdk/stack/test RELEASE=1  //*default
+   scons resource/csdk/stack/test RELEASE=0
 
-6. Run the unit test by
-   root/csdk/stack/test/release/stacktests
-   root/csdk/stack/test/debug/stacktests
+6. Export LD_LIBRARY_PATH before running the unit tests.
+   Example:
+   export LD_LIBRARY_PATH=/home/tester/Documents/iotivity/extlibs/gtest/gtest-1.7.0/lib/.libs/
 
+7. Run the unit test by issuing the following command from root 'iotivity' folder
+   ./out/<TARGET_OS>/<TARGET_ARCH>/<release/debug>/resource/csdk/stack/test
+   Example: ./out/linux/x86/release/resource/csdk/stack/test/stacktests