From 54ab88b5675b4c0491608570eb9188db72b49ac9 Mon Sep 17 00:00:00 2001 From: Ravi Nanjundappa Date: Mon, 21 Sep 2015 17:12:12 +0530 Subject: [PATCH] Updated README files to refer to usage of scons 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/2853 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/csdk/stack/test/README | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/resource/csdk/stack/test/README b/resource/csdk/stack/test/README index 7da8c21f3..7d08f0420 100644 --- a/resource/csdk/stack/test/README +++ b/resource/csdk/stack/test/README @@ -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////resource/csdk/stack/test + Example: ./out/linux/x86/release/resource/csdk/stack/test/stacktests -- 2.34.1