sbsv2/raptor/test/smoke_suite/resource.py
changeset 713 7b7f0409fc00
parent 674 37ee82a83d43
equal deleted inserted replaced
712:df89378e9223 713:7b7f0409fc00
    25 	t.command = "sbs  -b smoke_suite/test_resources/simple_gui/Bld.inf RESOURCE"
    25 	t.command = "sbs  -b smoke_suite/test_resources/simple_gui/Bld.inf RESOURCE"
    26 	t.targets = [
    26 	t.targets = [
    27 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    27 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.mbm",
    28 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    28 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.mbm",
    29 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    29 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.mbm",
    30 		"$(EPOCROOT)/epoc32/include/helloworld.rsg",
    30 		"$(EPOCROOT)/epoc32/include/HelloWorld.rsg",
    31 		"$(EPOCROOT)/epoc32/data/z/resource/apps/helloworld.rsc",
    31 		"$(EPOCROOT)/epoc32/data/z/resource/apps/HelloWorld.rsc",
    32 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/helloworld_reg.rsc",
    32 		"$(EPOCROOT)/epoc32/data/z/private/10003a3f/apps/HelloWorld_reg.rsc",
    33 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/helloworld.rsc",
    33 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/HelloWorld.rsc",
    34 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/helloworld.rsc",
    34 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/HelloWorld.rsc",
    35 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/helloworld_reg.rsc",
    35 		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10003a3f/apps/HelloWorld_reg.rsc",
    36 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/helloworld_reg.rsc"	
    36 		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10003a3f/apps/HelloWorld_reg.rsc"	
    37 		]
    37 		]
    38 	
    38 	
    39 
    39 
    40 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
    40 	t.addbuildtargets('smoke_suite/test_resources/simple_gui/Bld.inf', [
    41 		"helloworld_exe/helloworld.mbm_bmconvcommands",
    41 		"helloworld_exe/helloworld.mbm_bmconvcommands",
    42 		"helloworld_exe/helloworld_HelloWorld.rsc.rpp",
    42 		"HelloWorld_exe/HelloWorld_HelloWorld.rsc.rpp",
    43 		"helloworld_exe/helloworld_HelloWorld.rsc.d",
    43 		"HelloWorld_exe/HelloWorld_HelloWorld.rsc.d",
    44 		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.rpp",
    44 		"HelloWorld_reg_exe/HelloWorld_reg_HelloWorld_reg.rsc.rpp",
    45 		"helloworld_reg_exe/helloworld_reg_HelloWorld_reg.rsc.d"])
    45 		"HelloWorld_reg_exe/HelloWorld_reg_HelloWorld_reg.rsc.d"
       
    46 		])
    46 
    47 
    47 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
    48 	t.mustnotmatch = ["HelloWorld.rss.* warning: trigraph"]
    48 	
    49 	
    49 	t.run()
    50 	t.run()
    50 
    51 
    89 		"testheader_/testheader_testresource_sc.rsg.rpp",
    90 		"testheader_/testheader_testresource_sc.rsg.rpp",
    90 		"testresource_/testresource_testresource.r02.rpp",
    91 		"testresource_/testresource_testresource.r02.rpp",
    91 		"onelang_/onelang_onelang_sc.rsg.rpp",
    92 		"onelang_/onelang_onelang_sc.rsg.rpp",
    92 		"testresource_/testresource_testresource.rsc.rpp"])
    93 		"testresource_/testresource_testresource.rsc.rpp"])
    93 
    94 
    94 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf  -c armv5_urel -c winscw_urel reallyclean ; sbs --no-depend-generate -j 16 -b smoke_suite/test_resources/resource/group/bld.inf -c armv5_urel -c  winscw_urel -f ${SBSLOGFILE} -m ${SBSMAKEFILE} && grep 'epoc32.include.test[^ ]*.rsg' %s && { X=`md5sum $(EPOCROOT)/epoc32/release/winscw/urel/z/resource/anotherresource/testresource.rsc` && Y=`md5sum $(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc` && [ \"${X%% *}\" != \"${Y%% *}\" ] ; }  && wc -l %s " % (res_depfile, res_depfile)
    95 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf  -c armv5_urel -c winscw_urel reallyclean ; sbs --no-depend-generate -j 16 -b smoke_suite/test_resources/resource/group/bld.inf -c armv5_urel -c winscw_urel -f ${SBSLOGFILE} -m ${SBSMAKEFILE} && grep 'epoc32.include.test[^ ]*.rsg' %s && { X=`md5sum $(EPOCROOT)/epoc32/release/winscw/urel/z/resource/anotherresource/testresource.rsc` && Y=`md5sum $(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc` && [ \"${X%% *}\" != \"${Y%% *}\" ] ; }  && wc -l %s " % (res_depfile, res_depfile)
    95 
    96 
    96 
    97 
    97 	t.mustnotmatch = []
    98 	t.mustnotmatch = []
    98 
    99 
    99 	t.mustmatch = [
   100 	t.mustmatch = [
   135 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld2.inf -c armv5_urel -c winscw_urel"
   136 	t.command = "sbs -b smoke_suite/test_resources/resource/group/bld2.inf -c armv5_urel -c winscw_urel"
   136 	t.mustnotmatch = []
   137 	t.mustnotmatch = []
   137 	t.mustmatch = []
   138 	t.mustmatch = []
   138 	t.run()
   139 	t.run()
   139 
   140 
       
   141 
       
   142 	t.id = "30d"
       
   143 	t.name =  "resource_rsg_casefolding_fail"
       
   144 	t.command = "sbs -b smoke_suite/test_resources/resource/rsg_casefolding/bld.inf RESOURCE"
       
   145 	t.targets = []
       
   146 	
       
   147 	t.warnings = 1
       
   148 	t.errors = 3
       
   149 	t.returncode = 1
       
   150 	t.run("linux")
       
   151 
       
   152 	t.id = "30e"
       
   153 	t.name =  "resource_rsg_casefolding_pass"
       
   154 	t.command = "sbs -b smoke_suite/test_resources/resource/rsg_casefolding/bld.inf --use-rsg-casefolding RESOURCE"
       
   155 	t.targets = []
       
   156 
       
   157 	t.warnings = 0
       
   158 	t.errors = 0
       
   159 	t.returncode = 0
       
   160 	t.run("linux")
       
   161 
       
   162 
   140 	t.name = 'resource'
   163 	t.name = 'resource'
   141 	t.print_result()
   164 	t.print_result()
   142 	return t
   165 	return t