notification: Install unit tests 45/26545/4
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 23 Mar 2018 10:45:56 +0000 (11:45 +0100)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 13 Aug 2018 06:06:53 +0000 (06:06 +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 eb83218..890c5f5 100644 (file)
@@ -88,7 +88,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'])
 
@@ -100,25 +100,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':