added build option for SECURE in testcase.
authorjihwan.seo <jihwan.seo@samsung.com>
Fri, 22 Jul 2016 04:50:23 +0000 (13:50 +0900)
committerJon A. Cruz <jon@joncruz.org>
Wed, 27 Jul 2016 20:35:36 +0000 (20:35 +0000)
Change-Id: I450ddf0b21ce5a0a7eb3d139219231cc82d47908
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9591
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/unit_tests.scons

index b2d758d..40b1e79 100644 (file)
@@ -50,7 +50,8 @@ if target_os in ['linux']:
        SConscript('csdk/connectivity/test/SConscript')
 
        # Build Security Resource Manager unit tests
-       SConscript('csdk/security/unittest/SConscript')
+       if env.get('SECURED') == '1':
+               SConscript('csdk/security/unittest/SConscript')
 
        # Build C++ unit tests
        SConscript('unittests/SConscript')
@@ -70,7 +71,8 @@ elif target_os == 'windows' and env.get('TEST') == '1':
        SConscript('csdk/connectivity/test/SConscript')
 
        # Build Security Resource Manager unit tests
-       SConscript('csdk/security/unittest/SConscript')
+       if env.get('SECURED') == '1':
+               SConscript('csdk/security/unittest/SConscript')
 
        # Build Provisioning API unit test
        if env.get('SECURED') == '1':