build: Enable resource-container unittests
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>
Fri, 6 Jan 2017 22:40:26 +0000 (22:40 +0000)
Bug: https://jira.iotivity.org/browse/IOT-1428
Change-Id: I9f1a933e41e832df3ef407a76f3c1300cde2f20a
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15393
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Mats Wichmann <mats@linux.com>
service/resource-container/unittests/SConscript

index fd8a6d0..65f27bb 100644 (file)
@@ -179,11 +179,11 @@ Ignore("./ResourceContainerInvalidConfig.xml", "./ResourceContainerInvalidConfig
 Command("./TestBundleJava/hue-0.1-jar-with-dependencies.jar","./TestBundleJava/hue-0.1-jar-with-dependencies.jar", Copy("$TARGET", "$SOURCE"))
 Ignore("./TestBundleJava/hue-0.1-jar-with-dependencies.jar", "./TestBundleJava/hue-0.1-jar-with-dependencies.jar")
 
+# TODO: fix this test and edit commented lines
 if container_gtest_env.get('TEST') == '1':
-# TODO: fix this test on linux and remove this comment line
-    if target_os in []:
+    if target_os in ['linux'] and container_gtest_env.get('SECURED') != '1':
         from tools.scons.RunTest import run_test
         run_test(container_gtest_env,
-#           'service_resource-container_unittests_container_test.memcheck',
-            '',
-            'service/resource-container/unittests/container_test')
+#                'service_resource-container_unittests_container_test.memcheck',
+                 '',
+                 'service/resource-container/unittests/container_test')