User Tools

Site Tools


unit_test_test_coverage

To run Unit TCs , the modules should be build first. And the secured and non-secured modules should be build and run separately.

*Note : To run Unit TC's on Windows platform Build & Run commands for both secured and non-secured modules similar to Linux, specify 'TARGET_OS=windows' instead of 'linux' and WITH_UPSTREAM_LIBCOAP=1.

So, the procedure should be started with secure/non-secure module & after finishing one ; the next should be started. But, it is better to start secure modules first. For both secure and non-secure modules unit tc running process is given below;

The followings are the Build & Run commands for non-secure modules unit TC:

Non Secure Module:

All Module Build: <scons TARGET_TRANSPORT=ALL TARGET_OS=linux WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k>

After successfully build, each module unit TC run commands should be executed.

1. Notification : <scons service/notification/ TARGET_TRANSPORT=ALL TARGET_OS=linux TEST=1 -i -k>

2. Resource-Container: <scons service/resource-container/ TARGET_TRANSPORT=ALL TARGET_OS=linux TEST=1 -i -k>

3. Easy-setup: i) Mediator: <scons service/easy-setup/mediator/richsdk/ TARGET_TRANSPORT=ALL TARGET_OS=linux TEST=1 -i -k> ii) Enrollee: <scons service/easy-setup/enrollee/ TARGET_TRANSPORT=ALL WITH_CLOUD=1 WITH_TCP=1 TARGET_OS=linux TEST=1 -i -k>

4. Resource-encapsulation: <scons service/resource-encapsulation/ TARGET_TRANSPORT=ALL TARGET_OS=linux TEST=1 -i -k>

5.Scene-manager : <scons service/scene-manager/ TARGET_TRANSPORT=ALL TARGET_OS=linux TEST=1 -i -k>.

For Secure Modules:

All module Build Command: <scons TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k>

After successfully build, the follwoing commands should be run.

1. scons resource/csdk/security/provisioning/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

2. scons resource/unittests/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

3. scons resource/csdk/resource-directory/unittests/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

4. scons resource/csdk/security/unittest/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

5. scons resource/csdk/connectivity/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

6. scons resource/c_common/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

7. scons resource/csdk/stack/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

8. scons resource/provisioning/ TARGET_TRANSPORT=ALL TARGET_OS=linux SECURED=1 WITH_CLOUD=1 WITH_MQ=PUB,SUB WITH_TCP=1 RD_CLIENT=1 -i -k TEST=1

unit_test_test_coverage.txt · Last modified: 2017/07/14 09:37 by Kousthubha M N