scene-manager: Install unit tests 85/24485/3
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 23 Mar 2018 10:45:37 +0000 (11:45 +0100)
committerMats Wichmann <mats@linux.com>
Sat, 7 Apr 2018 14:13:21 +0000 (14:13 +0000)
Bug: https://jira.iotivity.org/browse/IOT-524
Change-Id: I9db429a928d6fb5084948a7122c2a4f0151829bd
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
service/scene-manager/unittests/SConscript

index ad9e858..923f037 100644 (file)
@@ -88,34 +88,39 @@ if scene_test_env.get('SECURED') == '1':
 ######################################################################
 # Build Test
 ######################################################################
-
+unittests = []
 scene_list_test_src = scene_test_env.Glob('./SceneListTest.cpp')
 scene_list_test = scene_test_env.Program('scene_list_test',
                                          scene_list_test_src)
 Alias("scene_list_test", scene_list_test)
+unittests += scene_list_test
 scene_test_env.AppendTarget('scene_list_test')
 
 scene_collection_test_src = scene_test_env.Glob('./SceneCollectionTest.cpp')
 scene_collection_test = scene_test_env.Program('scene_collection_test',
                                                scene_collection_test_src)
 Alias("scene_collection_test", scene_collection_test)
+unittests += scene_collection_test
 scene_test_env.AppendTarget('scene_collection_test')
 
 scene_test_src = scene_test_env.Glob('./SceneTest.cpp')
 scene_test = scene_test_env.Program('scene_test', scene_test_src)
 Alias("scene_test", scene_test)
+unittests += scene_test
 scene_test_env.AppendTarget('scene_test')
 
 scene_action_test_src = scene_test_env.Glob('./SceneActionTest.cpp')
 scene_action_test = scene_test_env.Program('scene_action_test',
                                            scene_action_test_src)
 Alias("scene_action_test", scene_action_test)
+unittests += scene_action_test
 scene_test_env.AppendTarget('scene_action_test')
 
 remote_scene_list_test_src = scene_test_env.Glob('./RemoteSceneListTest.cpp')
 remote_scene_list_test = scene_test_env.Program('remote_scene_list_test',
                                                 remote_scene_list_test_src)
 Alias("remote_scene_list_test", remote_scene_list_test)
+unittests += remote_scene_list_test
 scene_test_env.AppendTarget('remote_scene_list_test')
 
 remote_scene_col_test_src = scene_test_env.Glob(
@@ -123,12 +128,14 @@ remote_scene_col_test_src = scene_test_env.Glob(
 remote_scene_col_test = scene_test_env.Program('remote_scene_col_test',
                                                remote_scene_col_test_src)
 Alias("remote_scene_col_test", remote_scene_col_test)
+unittests += remote_scene_col_test
 scene_test_env.AppendTarget('remote_scene_col_test')
 
 remote_scene_test_src = scene_test_env.Glob('./RemoteSceneTest.cpp')
 remote_scene_test = scene_test_env.Program('remote_scene_test',
                                            remote_scene_test_src)
 Alias("remote_scene_test", remote_scene_test)
+unittests += remote_scene_test
 scene_test_env.AppendTarget('remote_scene_test')
 
 remote_scene_action_test_src = scene_test_env.Glob(
@@ -136,8 +143,12 @@ remote_scene_action_test_src = scene_test_env.Glob(
 remote_scene_action_test = scene_test_env.Program('remote_scene_action_test',
                                                   remote_scene_action_test_src)
 Alias("remote_scene_action_test", remote_scene_action_test)
+unittests += remote_scene_action_test
 scene_test_env.AppendTarget('remote_scene_action_test')
 
+scene_test_env.UserInstallTargetExtra(unittests,'tests/service/scene-manager/')
+
+
 if env.get('TEST') == '1':
     if env.get('SECURED') != '1':
         run_test(scene_test_env, '',