notification: Install unit tests 09/26509/4
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 23 Mar 2018 10:45:56 +0000 (11:45 +0100)
committerMats Wichmann <mats@linux.com>
Sun, 12 Aug 2018 14:59:27 +0000 (14:59 +0000)
Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26509/
Change-Id: I91c44d9e3e8af731175337bc80afa13a44222d6c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
service/notification/unittest/SConscript

index 1818d8f..108adf8 100644 (file)
@@ -89,7 +89,7 @@ if env.get('SECURED') == '1':
 ######################################################################
 # Build Test
 ######################################################################
-
+unittests = []
 notification_consumer_test_env = notification_test_env.Clone()
 notification_consumer_test_env.AppendUnique(LIBS=['notification_consumer'])
 
@@ -101,25 +101,31 @@ notification_consumer_test = notification_consumer_test_env.Program(
     'notification_consumer_test', notification_consumer_test_src)
 Alias("notification_consumer_test", notification_consumer_test)
 notification_consumer_test_env.AppendTarget('notification_consumer_test')
+unittests += notification_consumer_test
 
 notification_consumer_test_src = env.Glob('./NSConsumerTest.cpp')
 notification_consumer_internaltest = notification_consumer_test_env.Program(
     'notification_consumer_internaltest', notification_consumer_test_src)
 Alias("notification_consumer_internaltest", notification_consumer_internaltest)
+unittests += notification_consumer_internaltest
 
 notification_provider_test_src = env.Glob('./NSProviderTest2.cpp')
 notification_provider_test = notification_provider_test_env.Program(
     'notification_provider_test', notification_provider_test_src)
 Alias("notification_provider_test", notification_provider_test)
 notification_provider_test_env.AppendTarget('notification_provider_test')
+unittests += notification_provider_test
 
 notification_provider_test_src = env.Glob('./NSProviderTest.cpp')
 notification_provider_internaltest = notification_provider_test_env.Program(
     'notification_provider_internaltest', notification_provider_test_src)
 Alias("notification_provider_internaltest", notification_provider_internaltest)
+unittests += notification_provider_internaltest
+
 
-actions = notification_provider_test_env.ScanJSON('service/notification/unittest')
-notification_consumer_test_env.Alias("install", actions)
+unittests += notification_provider_test_env.ScanJSON('service/notification/unittest')
+notification_consumer_test_env.Alias("install", unittests)
+notification_consumer_test_env.UserInstallTargetExtra(unittests,'tests/service/notification/')
 
 if env.get('TEST') == '1':
     if target_os in ['linux'] and env.get('SECURED') != '1':