sbsv2/raptor/test/smoke_suite/resource.py
branchfix
changeset 537 164e587fef9f
parent 533 408bfff46ad7
child 539 cbc9d85d999d
equal deleted inserted replaced
536:49d91f1e52a3 537:164e587fef9f
    41 		]
    41 		]
    42 	
    42 	
    43 
    43 
    44 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
    44 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
    45 		"helloworld_exe/helloworld.mbm_bmconvcommands",
    45 		"helloworld_exe/helloworld.mbm_bmconvcommands",
    46 		"helloworld_exe/helloworld_sc.rpp",
    46 		"helloworld_exe/helloworld_HelloWorld_sc.rpp",
    47 		"helloworld_exe/helloworld_sc.rpp.d",
    47 		"helloworld_exe/helloworld_HelloWorld_sc.rpp.d",
    48 		"helloworld_reg_exe/helloworld_reg_sc.rpp",
    48 		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg_sc.rpp",
    49 		"helloworld_reg_exe/helloworld_reg_sc.rpp.d"])
    49 		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg_sc.rpp.d"])
    50 
    50 
    51 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
    51 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
    52 	
    52 	
    53 	t.run()
    53 	t.run()
    54 
    54 
    62 			    N.B.  It also attempts to ensure that the dependency file is 'minimal'  i.e. that it only references .mbg and .rsg files
    62 			    N.B.  It also attempts to ensure that the dependency file is 'minimal'  i.e. that it only references .mbg and .rsg files
    63 			    that might come from other parts of the same build.  This is important for performance in situations where --no-depend-generate
    63 			    that might come from other parts of the same build.  This is important for performance in situations where --no-depend-generate
    64 			    is used because the weight of 'complete' dependency information would overwhelm make.
    64 			    is used because the weight of 'complete' dependency information would overwhelm make.
    65 			 """
    65 			 """
    66 	buildLocation = ReplaceEnvs("$(EPOCROOT)/epoc32/build/") + BldInfFile.outputPathFragment('smoke_suite/test_resources/resource/group/bld.inf')
    66 	buildLocation = ReplaceEnvs("$(EPOCROOT)/epoc32/build/") + BldInfFile.outputPathFragment('smoke_suite/test_resources/resource/group/bld.inf')
    67 	res_depfile= buildLocation+"/dependentresource_/dependentresource_sc.rpp.d"
    67 	res_depfile= buildLocation+"/dependentresource_/dependentresource_dependentresource_sc.rpp.d"
    68 
    68 
    69 	t.targets = [
    69 	t.targets = [
    70 		"$(EPOCROOT)/epoc32/include/testresource.rsg",
    70 		"$(EPOCROOT)/epoc32/include/testresource.rsg",
    71 		"$(EPOCROOT)/epoc32/include/testresource.hrh",
    71 		"$(EPOCROOT)/epoc32/include/testresource.hrh",
    72 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01",
    72 		"$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01",
    76 		"$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp",
    76 		"$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp",
    77 		res_depfile
    77 		res_depfile
    78 		]
    78 		]
    79 
    79 
    80 	t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [	
    80 	t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [	
    81 		"testresource_/testresource_02.rpp",
    81 		"testresource_/testresource_testresource_02.rpp",
    82 		"testresource_/testresource_01.rpp",
    82 		"testresource_/testresource_testresource_01.rpp",
    83 		"testresource_/testresource_01.rpp.d",
    83 		"testresource_/testresource_testresource_01.rpp.d",
    84 		"testresource_/testresource_sc.rpp"])
    84 		"testresource_/testresource_testresource_sc.rpp"])
    85 
    85 
    86 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf  -c armv5_urel reallyclean ; sbs --no-depend-generate -j 16 -b smoke_suite/test_resources/resource/group/bld.inf -c armv5_urel -f ${SBSLOGFILE} -m ${SBSMAKEFILE} && grep 'epoc32.include.testresource.rsg' %s && wc -l %s " % (res_depfile, res_depfile)
    86 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf  -c armv5_urel reallyclean ; sbs --no-depend-generate -j 16 -b smoke_suite/test_resources/resource/group/bld.inf -c armv5_urel -f ${SBSLOGFILE} -m ${SBSMAKEFILE} && grep 'epoc32.include.testresource.rsg' %s && wc -l %s " % (res_depfile, res_depfile)
    87 
    87 
    88 	t.mustnotmatch = []
    88 	t.mustnotmatch = []
    89 
    89 
    90 	t.mustmatch = [
    90 	t.mustmatch = [
    91 			"3 .*.dependentresource_.dependentresource_sc.rpp.d"
    91 			"3 .*.dependentresource_.dependentresource_dependentresource_sc.rpp.d"
    92 		      ]
    92 		      ]
    93 
    93 
    94 	t.run()
    94 	t.run()
    95 
    95 
    96 	t.name = 'resource'
    96 	t.name = 'resource'