Commit 47f52b39 authored by Philippe Coval's avatar Philippe Coval Committed by Uze Choi

build: Fix easy-setup unittests

Need to add a parameter to enable valgrind check

Without this change, a race condition may occur and complain like:
service/easy-setup/enrollee/unittests/easysetup_enrollee_test: not found

Bug: https://jira.iotivity.org/browse/IOT-1526
Change-Id: If927c9a2f6e00b18ab92664f014f4f85f34209aa
Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14957Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent eb8ec52d
......@@ -22,6 +22,7 @@
# Notification Unit Test build script
##
from tools.scons.RunTest import run_test;
Import('env')
if env.get('RELEASE'):
......@@ -87,6 +88,7 @@ Alias("easysetup_enrollee_test", easysetup_enrollee_test)
env.AppendTarget('easysetup_enrollee_test')
if env.get('TEST') == '1':
if target_os == 'linux':
from tools.scons.RunTest import *
run_test(easysetup_enrollee_test_env, '', 'service/easy-setup/enrollee/unittests/easysetup_enrollee_test')
if target_os in ['linux']:
run_test(easysetup_enrollee_test_env,
'service_easy-setup_enrollee_unittests_easysetup_enrollee_test.memcheck',
'service/easy-setup/enrollee/unittests/easysetup_enrollee_test')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment