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__resource_apps_sc.rpp", |
46 "helloworld_exe/helloworld_sc.rpp", |
47 "helloworld_exe/helloworld__resource_apps_sc.rpp.d", |
47 "helloworld_exe/helloworld_sc.rpp.d", |
48 "helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp", |
48 "helloworld_reg_exe/helloworld_reg_sc.rpp", |
49 "helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d"]) |
49 "helloworld_reg_exe/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 |
55 |
55 |
56 t.id="30a" |
56 t.id="30a" |
57 t.name = "no_depend_gen_resource" |
57 t.name = "no_depend_gen_resource" |
58 t.usebash = True |
58 t.usebash = True |
59 t.description = """Check that dependent resources still build correctly even when we turn dependency generation off. This |
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 |
60 test cannot really do this reliably, if you think about it, since it can't force make to try building resources |
|
61 in the 'wrong' order. What it does attempt is to check that |
|
62 the ultimately generated dependency file is ok. |
|
63 N.B. It also attempts to ensure that the dependency file is 'minimal' i.e. that it only references .mbg and .rsg files |
|
64 that might come from other parts of the same build. This is important for performance in situations where --no-depend-generate |
|
65 is used because the weight of 'complete' dependency information would overwhelm make. |
61 """ |
66 """ |
62 buildLocation = ReplaceEnvs("$(EPOCROOT)/epoc32/build/") + BldInfFile.outputPathFragment('smoke_suite/test_resources/resource/group/bld.inf') |
67 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" |
68 #res_depfile= buildLocation+"/dependentresource_/dependentresource_resource_dependentresource_sc.rpp.d" |
|
69 res_depfile= buildLocation+"/dependentresource_/dependentresource_sc.rpp.d" |
64 |
70 |
65 t.targets = [ |
71 t.targets = [ |
66 "$(EPOCROOT)/epoc32/include/testresource.rsg", |
72 "$(EPOCROOT)/epoc32/include/testresource.rsg", |
67 "$(EPOCROOT)/epoc32/include/testresource.hrh", |
73 "$(EPOCROOT)/epoc32/include/testresource.hrh", |
68 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01", |
74 "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01", |
72 "$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp", |
78 "$(EPOCROOT)/epoc32/localisation/testresource/rsc/testresource.rpp", |
73 res_depfile |
79 res_depfile |
74 ] |
80 ] |
75 |
81 |
76 t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [ |
82 t.addbuildtargets('smoke_suite/test_resources/resource/group/bld.inf', [ |
77 "testresource_/testresource_resource_testresource2_sc.rpp.d", |
83 "testresource_/testresource_02.rpp", |
78 "testresource_/testresource_resource_testresource3_02.rpp", |
84 "testresource_/testresource_02.rpp.d", |
79 "testresource_/testresource_resource_testresource3_02.rpp.d", |
85 "testresource_/testresource_01.rpp", |
80 "testresource_/testresource_resource_testresource3_sc.rpp", |
86 "testresource_/testresource_01.rpp.d", |
81 "testresource_/testresource_resource_testresource3_sc.rpp.d", |
87 "testresource_/testresource_sc.rpp", |
82 "testresource_/testresource_resource_testresource_01.rpp", |
88 "testresource_/testresource_sc.rpp.d"]) |
83 "testresource_/testresource_resource_testresource_01.rpp.d", |
|
84 "testresource_/testresource_resource_testresource_sc.rpp", |
|
85 "testresource_/testresource_resource_testresource_sc.rpp.d"]) |
|
86 |
89 |
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) |
90 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) |
|
91 |
|
92 t.mustnotmatch = [] |
|
93 |
|
94 t.mustmatch = [ |
|
95 "3 .*.dependentresource_.dependentresource_sc.rpp.d" |
|
96 ] |
88 |
97 |
89 t.run() |
98 t.run() |
90 return t |
99 return t |