sbsv2/raptor/test/smoke_suite/resource.py
branchfix
changeset 463 92c43194abb5
parent 393 629079c72ee4
child 466 b9e5cf94aac3
equal deleted inserted replaced
411:80ad0c7f75fe 463:92c43194abb5
    13 #
    13 #
    14 # Description: 
    14 # Description: 
    15 #
    15 #
    16 
    16 
    17 from raptor_tests import SmokeTest
    17 from raptor_tests import SmokeTest
       
    18 from raptor_tests import ReplaceEnvs
       
    19 from raptor_meta import BldInfFile
    18 
    20 
    19 def run():
    21 def run():
    20 	t = SmokeTest()
    22 	t = SmokeTest()
    21 	t.id = "30"
    23 	t.id = "30"
    22 	t.name =  "resource"
    24 	t.name =  "resource"
    23 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf -b smoke_suite/test_resources/simple_gui/Bld.inf RESOURCE"
    25 	t.command = "sbs  -b smoke_suite/test_resources/simple_gui/Bld.inf RESOURCE"
    24 	t.targets = [
    26 	t.targets = [
    25 		"$(EPOCROOT)/epoc32/include/testresource.rsg",
       
    26 		"$(EPOCROOT)/epoc32/include/testresource.hrh",
       
    27 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01",
       
    28 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc",
       
    29 		"$(EPOCROOT)/epoc32/localisation/group/testresource.info",
       
    30 		"$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp",
       
    31 		
       
    32 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    27 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    33 		"$(EPOCROOT)/epoc32/localisation/group/helloworld.info",
    28 		"$(EPOCROOT)/epoc32/localisation/group/helloworld.info",
    34 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    29 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    35 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    30 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    36 		"$(EPOCROOT)/epoc32/include/helloworld.rsg",
    31 		"$(EPOCROOT)/epoc32/include/helloworld.rsg",
    43 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
    38 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
    44 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc",
    39 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc",
    45 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc"	
    40 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc"	
    46 		]
    41 		]
    47 	
    42 	
       
    43 
       
    44 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
       
    45 		"helloworld_exe/helloworld.mbm_bmconvcommands",
       
    46 		"helloworld_exe/helloworld__resource_apps_sc.rpp",
       
    47 		"helloworld_exe/helloworld__resource_apps_sc.rpp.d",
       
    48 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp",
       
    49 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d"])
       
    50 
       
    51 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
       
    52 	
       
    53 	t.run()
       
    54 
       
    55 
       
    56 	t.id="30a"
       
    57 	t.name =  "no_depend_gen_resource"
       
    58 	t.usebash = True
       
    59 	t.description =  """Check that dependent resources still build correctly even when we turn dependency generation off.  This
       
    60 			    test cannot reliably ensure that the dependencies are correct
       
    61 			 """
       
    62 	buildLocation = ReplaceEnvs("$(EPOCROOT)/epoc32/build/") + BldInfFile.outputPathFragment('smoke_suite/test_resources/resource/group/bld.inf')
       
    63 	res_depfile= buildLocation+"/dependentresource_/dependentresource_resource_dependentresource_sc.rpp.d"
       
    64 
       
    65 	t.targets = [
       
    66 		"$(EPOCROOT)/epoc32/include/testresource.rsg",
       
    67 		"$(EPOCROOT)/epoc32/include/testresource.hrh",
       
    68 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01",
       
    69 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc",
       
    70 		"$(EPOCROOT)/epoc32/release/armv5/urel/testresource.exe",
       
    71 		"$(EPOCROOT)/epoc32/localisation/group/testresource.info",
       
    72 		"$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp",
       
    73 		res_depfile
       
    74 		]
       
    75 
    48 	t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [	
    76 	t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [	
    49 		"testresource_/testresource_resource_testresource2_sc.rpp.d",
    77 		"testresource_/testresource_resource_testresource2_sc.rpp.d",
    50 		"testresource_/testresource_resource_testresource3_02.rpp",
    78 		"testresource_/testresource_resource_testresource3_02.rpp",
    51 		"testresource_/testresource_resource_testresource3_02.rpp.d",
    79 		"testresource_/testresource_resource_testresource3_02.rpp.d",
    52 		"testresource_/testresource_resource_testresource3_sc.rpp",
    80 		"testresource_/testresource_resource_testresource3_sc.rpp",
    54 		"testresource_/testresource_resource_testresource_01.rpp",
    82 		"testresource_/testresource_resource_testresource_01.rpp",
    55 		"testresource_/testresource_resource_testresource_01.rpp.d",
    83 		"testresource_/testresource_resource_testresource_01.rpp.d",
    56 		"testresource_/testresource_resource_testresource_sc.rpp",
    84 		"testresource_/testresource_resource_testresource_sc.rpp",
    57 		"testresource_/testresource_resource_testresource_sc.rpp.d"])
    85 		"testresource_/testresource_resource_testresource_sc.rpp.d"])
    58 
    86 
    59 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
    87 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf  -c arm.v5.urel.gcce4_4_1 reallyclean ; sbs --no-depend-generate -j 16 -b smoke_suite/test_resources/resource/group/bld.inf -c arm.v5.urel.gcce4_4_1 -f ${SBSLOGFILE} -m ${SBSMAKEFILE} && grep 'epoc32.include.testresource.rsg' %s " % (res_depfile)
    60 		"helloworld_exe/helloworld.mbm_bmconvcommands",
       
    61 		"helloworld_exe/helloworld__resource_apps_sc.rpp",
       
    62 		"helloworld_exe/helloworld__resource_apps_sc.rpp.d",
       
    63 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp",
       
    64 		"helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d"])
       
    65 
    88 
    66 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
       
    67 	
       
    68 	t.run()
    89 	t.run()
    69 	return t
    90 	return t