sbsv2/raptor/test/smoke_suite/sysdef_layers.py
branchfix
changeset 268 692d9a4eefc4
parent 3 e1eecf4d390d
child 269 62f7cce721ae
equal deleted inserted replaced
250:019dafe54c23 268:692d9a4eefc4
     1 #
     1 #
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of the License "Eclipse Public License v1.0"
     5 # under the terms of the License "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    18 
    18 
    19 def run():
    19 def run():
    20 	t = SmokeTest()
    20 	t = SmokeTest()
    21 	t.id = "48"
    21 	t.id = "48"
    22 	t.name = "sysdef_layers"
    22 	t.name = "sysdef_layers"
    23 	t.description = "Test system_definition.xml layer processing"
    23 	t.usebash = True
    24 	t.command = 'sbs -s ' + \
    24 	t.description = "Test system_definition.xml layer processing and log reporting"
    25 			'smoke_suite/test_resources/sysdef/system_definition_order_layer_test.xml' + \
    25 	t.command = 'sbs -f- -s smoke_suite/test_resources/sysdef/system_definition_order_layer_test.xml ' + \
    26 			' -l "Metadata Export" -l "Build Generated Source" -l ' + \
    26 			'-l "Metadata Export" -l "Build Generated Source" -l "Component with Layer Dependencies" -o'
    27 			'"Component with Layer Dependencies" -o'
       
    28 	t.targets = [
    27 	t.targets = [
    29 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.inf",
    28 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.inf",
    30 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.mmh",
    29 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.mmh",
    31 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    30 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    32 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc",
    31 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc",
    86 		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
    85 		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
    87 		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
    86 		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
    88 		"helloworld_exe/winscw/urel/helloworld_UID_.o",
    87 		"helloworld_exe/winscw/urel/helloworld_UID_.o",
    89 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp"
    88 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp"
    90 		])
    89 		])
       
    90 	t.countmatch = [
       
    91 		["<recipe .*layer='Component with Layer Dependencies' component='dependent'.*>", 43],
       
    92 		["<recipe .*layer='Build Generated Source' component='build generated source'.*>", 7]		
       
    93 		]
    91 	t.run()
    94 	t.run()
    92 	return t
    95 	return t