sbsv2/raptor/test/smoke_suite/sysdef_layers.py
changeset 674 37ee82a83d43
parent 625 a1925fb7753a
equal deleted inserted replaced
673:7ae5f757318b 674:37ee82a83d43
    12 # Contributors:
    12 # Contributors:
    13 #
    13 #
    14 # Description: 
    14 # Description: 
    15 #
    15 #
    16 
    16 
    17 from raptor_tests import SmokeTest
    17 from raptor_tests import AntiTargetSmokeTest
    18 
    18 
    19 def run():
    19 def run():
    20 	t = SmokeTest()
    20 	command = 'sbs -f- -s smoke_suite/test_resources/sysdef/system_definition_order_layer_test.xml ' + \
    21 	t.id = "48"
    21 			'-l "Metadata Export" -l "Build Generated Source" -l "Component with Layer Dependencies" -o'
       
    22 
       
    23 	t = AntiTargetSmokeTest()
       
    24 	t.id = "48a"
    22 	t.name = "sysdef_layers"
    25 	t.name = "sysdef_layers"
    23 	t.usebash = True
    26 	t.usebash = True
    24 	t.description = "Test system_definition.xml layer processing and log reporting"
    27 	t.description = "Test system_definition.xml layer processing and log reporting"
    25 	t.command = 'sbs -f- -s smoke_suite/test_resources/sysdef/system_definition_order_layer_test.xml ' + \
    28 	t.command = command
    26 			'-l "Metadata Export" -l "Build Generated Source" -l "Component with Layer Dependencies" -o'
       
    27 	t.targets = [
    29 	t.targets = [
    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.inf",
    29 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.mmh",
    31 		"$(SBS_HOME)/test/smoke_suite/test_resources/sysdef/build_gen_source/exported.mmh",
    30 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    32 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    31 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc",
    33 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/HelloWorld_reg.rsc",
    32 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc",
    34 		"$(EPOCROOT)/epoc32/data/z/resource/apps/HelloWorld.rsc",
    33 		"$(EPOCROOT)/epoc32/include/helloworld.rsg",
    35 		"$(EPOCROOT)/epoc32/include/HelloWorld.rsg",
    34 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe",
    36 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe",
    35 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.sym",
    37 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.sym",
    36 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map",
    38 		"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map",
    37 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe",
    39 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe",
    38 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.sym",
    40 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.sym",
    39 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map",
    41 		"$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map",
    40 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    42 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    41 		"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe",
    43 		"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe",
    42 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc",
    44 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/HelloWorld_reg.rsc",
    43 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc",
    45 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/HelloWorld.rsc",
    44 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    46 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    45 		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe",
    47 		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe",
    46 		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map",
    48 		"$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map",
    47 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc",
    49 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/HelloWorld_reg.rsc",
    48 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
    50 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/HelloWorld.rsc",
    49 		]
    51 		]
    50 	t.addbuildtargets('smoke_suite/test_resources/sysdef/build_gen_source/bld.inf', [
    52 	t.addbuildtargets('smoke_suite/test_resources/sysdef/build_gen_source/bld.inf', [
    51 		"helloworld_/helloworld_HelloWorld.rsc.rpp"
    53 		"HelloWorld_/HelloWorld_HelloWorld.rsc.rpp",
       
    54 		"HelloWorld_/HelloWorld_HelloWorld.rsc",
       
    55 		"HelloWorld_/HelloWorld_HelloWorld.rsc.d"
    52 		])
    56 		])
    53 	t.addbuildtargets('smoke_suite/test_resources/sysdef/dependent/bld.inf', [
    57 	t.addbuildtargets('smoke_suite/test_resources/sysdef/dependent/bld.inf', [
    54 		"helloworld_exe/armv5/udeb/HelloWorld_Application.o",
    58 		"helloworld_exe/armv5/udeb/HelloWorld_Application.o",
    55 		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o",
    59 		"helloworld_exe/armv5/udeb/HelloWorld_AppUi.o",
    56 		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o",
    60 		"helloworld_exe/armv5/udeb/HelloWorld_AppView.o",
    73 		"helloworld_exe/winscw/urel/HelloWorld_AppView.o",
    77 		"helloworld_exe/winscw/urel/HelloWorld_AppView.o",
    74 		"helloworld_exe/winscw/urel/HelloWorld_Document.o",
    78 		"helloworld_exe/winscw/urel/HelloWorld_Document.o",
    75 		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
    79 		"helloworld_exe/winscw/urel/HelloWorld_Main.o",
    76 		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
    80 		"helloworld_exe/winscw/urel/helloworld.UID.CPP",
    77 		"helloworld_exe/winscw/urel/helloworld_UID_.o",
    81 		"helloworld_exe/winscw/urel/helloworld_UID_.o",
    78 		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.rpp"
    82 		"HelloWorld_reg_exe/HelloWorld_reg_HelloWorld_reg.rsc.rpp",
       
    83 		"HelloWorld_reg_exe/HelloWorld_reg_HelloWorld_reg.rsc.d"
    79 		])
    84 		])
    80 	t.countmatch = [
    85 	t.countmatch = [
    81 		["<recipe .*layer='Component with Layer Dependencies' component='dependent'.*>", 33],
    86 		["<recipe .*layer='Component with Layer Dependencies' component='dependent'.*>", 33],
    82 		["<recipe .*layer='Build Generated Source' component='build generated source'.*>", 3]		
    87 		["<recipe .*layer='Build Generated Source' component='build generated source'.*>", 3]		
    83 		]
    88 		]
    84 	t.run()
    89 	t.run()
       
    90 
       
    91 	t.id = "48b"
       
    92 	t.name = "sysdef_layers_pp"
       
    93 	t.description = "Test system definition layer building and logging with parallel processing on"
       
    94 	t.command = command + " --pp on"
       
    95 	t.run()
       
    96 
       
    97 	t.id = "48"
       
    98 	t.name = "sysdef_layers"
    85 	return t
    99 	return t