build: Enable provisioning tests again 41/15641/6
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 9 Dec 2016 23:09:48 +0000 (00:09 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Mon, 19 Dec 2016 14:57:16 +0000 (14:57 +0000)
Bug: https://jira.iotivity.org/browse/IOT-1428
Change-Id: I64f6e771aa838d067ae834545c5a95e9c5593db7
Origin: https://gerrit.iotivity.org/gerrit/#/c/15389/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15641
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/provisioning/unittests/SConscript

index ceb5470..cc8d020 100755 (executable)
@@ -98,8 +98,7 @@ unittests = provisiontests_env.Program('provisiontests', ocprovisiontest_src)
 Alias("provisiontests", [unittests])
 
 provisiontests_env.AppendTarget('provisiontests')
-# TODO: Fix test for supported configurations
-if provisiontests_env.get('TEST') == '1' and provisiontests_env.get('SECURED') != '1':
+if provisiontests_env.get('TEST') == '1':
        if target_os in ['linux']:
                out_dir = provisiontests_env.get('BUILD_DIR')
                result_dir = os.path.join(provisiontests_env.get('BUILD_DIR'), 'test_out') + os.sep
@@ -108,7 +107,7 @@ if provisiontests_env.get('TEST') == '1' and provisiontests_env.get('SECURED') !
                provisiontests_env.AppendENVPath('GTEST_OUTPUT', ['xml:'+ result_dir])
                provisiontests_env.AppendENVPath('LD_LIBRARY_PATH', [out_dir])
                run_test(provisiontests_env,
-                                '',
+                                'resource/provisioning/unittests/provisiontests.memcheck',
                                 'resource/provisioning/unittests/provisiontests')
 
 src_dir = provisiontests_env.get('SRC_DIR')