3
|
1 |
#
|
|
2 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
#
|
|
16 |
|
|
17 |
from raptor_tests import SmokeTest
|
|
18 |
|
|
19 |
def run():
|
|
20 |
t = SmokeTest()
|
|
21 |
t.description = "This testcase tests all mmp keywords including new implementation of 'paged/unpaged code/data'"
|
|
22 |
t.usebash = True
|
9
|
23 |
|
3
|
24 |
t.id = "75a"
|
|
25 |
t.name = "mmp_1"
|
|
26 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp1/group/bld.inf -c armv5 -f-"
|
|
27 |
t.targets = [
|
|
28 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/shutdownsrv.dll",
|
|
29 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/shutdownsrv.dll.map",
|
|
30 |
"$(EPOCROOT)/epoc32/release/armv5/urel/shutdownsrv.dll",
|
|
31 |
"$(EPOCROOT)/epoc32/release/armv5/urel/shutdownsrv.dll.map",
|
|
32 |
"$(EPOCROOT)/epoc32/release/armv5/lib/exportlibrary_shutdownsrv.dso",
|
|
33 |
"$(EPOCROOT)/epoc32/release/armv5/lib/exportlibrary_shutdownsrv{000a0000}.dso",
|
|
34 |
]
|
|
35 |
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp1/group/bld.inf", [
|
|
36 |
"shutdownsrv_dll/armv5/udeb/shutdownsrv.o",
|
|
37 |
"shutdownsrv_dll/armv5/urel/shutdownsrv.o",
|
|
38 |
"shutdownsrv_dll/armv5/udeb/shutdownsrvpatchdata.o",
|
|
39 |
"shutdownsrv_dll/armv5/urel/shutdownsrvpatchdata.o",
|
|
40 |
"shutdownsrv_dll/armv5/udeb/shutdowntimer.o",
|
|
41 |
"shutdownsrv_dll/armv5/urel/shutdowntimer.o"
|
|
42 |
])
|
|
43 |
t.mustmatch = [
|
|
44 |
".*elf2e32.*(--defaultpaged|--codepaging=default.*--datapaging=default).*",
|
|
45 |
".*armlink.*--verbose.*"
|
|
46 |
]
|
|
47 |
t.run()
|
|
48 |
|
|
49 |
t.id = "75b"
|
|
50 |
t.name = "mmp_2"
|
|
51 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp2/group/bld.inf -c armv5 -f-"
|
|
52 |
t.targets = [
|
|
53 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/imageprocessorperf.lib",
|
|
54 |
"$(EPOCROOT)/epoc32/release/armv5/urel/imageprocessorperf.lib"
|
|
55 |
]
|
|
56 |
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp2/group/bld.inf", [
|
|
57 |
"imageprocessorperf_lib/armv5/udeb/ColorConverter.o",
|
|
58 |
"imageprocessorperf_lib/armv5/urel/ColorConverter.o",
|
|
59 |
"imageprocessorperf_lib/armv5/udeb/ImageProcessor.o",
|
|
60 |
"imageprocessorperf_lib/armv5/urel/ImageProcessor.o"
|
|
61 |
])
|
|
62 |
t.mustmatch = [
|
|
63 |
".*armcc.*-O0.*-g.*--cpu 6.*-Otime.*",
|
|
64 |
".*armcc.*-O3.*--cpu 6.*-Otime.*",
|
|
65 |
".*OPTION ARMASM has no effect.*",
|
|
66 |
".*OPTION_REPLACE ARMASM has no effect.*"
|
|
67 |
]
|
|
68 |
t.mustnotmatch = [
|
|
69 |
".*armcc.*--export_all_vtbl.*"
|
|
70 |
]
|
|
71 |
t.warnings = 2
|
|
72 |
t.run()
|
|
73 |
|
|
74 |
t.id = "75c"
|
|
75 |
t.name = "mmp_3"
|
|
76 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp3/bld.inf -c armv5 -c winscw -f-"
|
|
77 |
t.targets = [
|
|
78 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/tbm.exe",
|
|
79 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/tbm.exe.map",
|
|
80 |
"$(EPOCROOT)/epoc32/release/armv5/urel/tbm.exe",
|
|
81 |
"$(EPOCROOT)/epoc32/release/armv5/urel/tbm.exe.map",
|
|
82 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oom.exe",
|
|
83 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oom.exe.map",
|
|
84 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oom.exe",
|
|
85 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oom.exe.map",
|
|
86 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/dfpaeabi_vfpv2.dll",
|
|
87 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/dfpaeabi_vfpv2.dll.map",
|
|
88 |
"$(EPOCROOT)/epoc32/release/armv5/urel/dfpaeabi_vfpv2.dll",
|
|
89 |
"$(EPOCROOT)/epoc32/release/armv5/urel/dfpaeabi_vfpv2.dll.map",
|
|
90 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oom.exe",
|
|
91 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oom.exe.map",
|
|
92 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oom.exe"
|
|
93 |
]
|
|
94 |
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp3/bld.inf", [
|
|
95 |
"tbm_exe/armv5/udeb/tbm.o",
|
|
96 |
"tbm_exe/armv5/urel/tbm.o",
|
|
97 |
"t_oom_exe/armv5/udeb/t_oom.o",
|
|
98 |
"t_oom_exe/armv5/urel/t_oom.o",
|
|
99 |
"dfpaeabi_vfpv2_dll/armv5/udeb/dfpaeabi.o",
|
|
100 |
"dfpaeabi_vfpv2_dll/armv5/urel/dfpaeabi.o",
|
|
101 |
"t_oom_exe/winscw/udeb/t_oom.o",
|
|
102 |
"t_oom_exe/winscw/udeb/t_oom_UID_.o",
|
|
103 |
"t_oom_exe/winscw/urel/t_oom.o",
|
|
104 |
"t_oom_exe/winscw/urel/t_oom_UID_.o"
|
|
105 |
])
|
|
106 |
t.mustmatch = [
|
|
107 |
".*armlink.*udeb/eexe.lib.*-o.*armv5/udeb/t_oom.exe.sym.*euser.dso.*efsrv.dso.*estor.dso.*euser.dso.*",
|
|
108 |
".*armlink.*urel/eexe.lib.*-o.*armv5/urel/t_oom.exe.sym.*euser.dso.*efsrv.dso.*euser.dso.*",
|
|
109 |
".*mwldsym2.*udeb/eexe.lib.*euser.lib.*efsrv.lib.*estor.lib.*euser.lib.*-o.*winscw/udeb/t_oom.exe.*",
|
|
110 |
".*mwldsym2.*urel/eexe.lib.*euser.lib.*efsrv.lib.*euser.lib.*-o.*winscw/urel/t_oom.exe.*"
|
|
111 |
]
|
|
112 |
t.mustnotmatch = []
|
|
113 |
t.warnings = 0
|
|
114 |
t.run()
|
|
115 |
|
|
116 |
t.id = "75d"
|
|
117 |
t.name = "mmp_4"
|
|
118 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp4/group/bld.inf -c winscw"
|
|
119 |
t.targets = [
|
|
120 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/d_newldd.ldd",
|
|
121 |
"$(EPOCROOT)/epoc32/release/winscw/urel/d_newldd.ldd",
|
|
122 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/d_lddturnaroundtimertest.ldd",
|
|
123 |
"$(EPOCROOT)/epoc32/release/winscw/urel/d_lddturnaroundtimertest.ldd",
|
|
124 |
"$(EPOCROOT)/epoc32/release/winscw/urel/d_lddturnaroundtimertest.ldd.map",
|
|
125 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_sharedio3.exe",
|
|
126 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_sharedio3.exe",
|
|
127 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_sharedio3.exe.map",
|
|
128 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_rbuf.exe",
|
|
129 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_rbuf.exe",
|
|
130 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_rbuf.exe.map"
|
|
131 |
]
|
|
132 |
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp4/group/bld.inf", [
|
|
133 |
"d_newldd_ldd/winscw/udeb/d_newldd.o",
|
|
134 |
"d_newldd_ldd/winscw/udeb/d_newldd.UID.CPP",
|
|
135 |
"d_newldd_ldd/winscw/udeb/d_newldd_UID_.o",
|
|
136 |
"d_newldd_ldd/winscw/urel/d_newldd.o",
|
|
137 |
"d_newldd_ldd/winscw/urel/d_newldd.UID.CPP",
|
|
138 |
"d_newldd_ldd/winscw/urel/d_newldd_UID_.o",
|
|
139 |
"d_newldd_ldd/winscw/udeb/t_new_classes.o",
|
|
140 |
"d_newldd_ldd/winscw/urel/t_new_classes.o",
|
|
141 |
"d_lddturnaroundtimertest_ldd/winscw/udeb/d_lddturnaroundtimertest.o",
|
|
142 |
"d_lddturnaroundtimertest_ldd/winscw/udeb/d_lddturnaroundtimertest.UID.CPP",
|
|
143 |
"d_lddturnaroundtimertest_ldd/winscw/udeb/d_lddturnaroundtimertest_UID_.o",
|
|
144 |
"d_lddturnaroundtimertest_ldd/winscw/urel/d_lddturnaroundtimertest.o",
|
|
145 |
"d_lddturnaroundtimertest_ldd/winscw/urel/d_lddturnaroundtimertest.UID.CPP",
|
|
146 |
"d_lddturnaroundtimertest_ldd/winscw/urel/d_lddturnaroundtimertest_UID_.o",
|
|
147 |
"t_sharedio3_exe/winscw/udeb/t_sharedio.o",
|
|
148 |
"t_sharedio3_exe/winscw/udeb/t_sharedio3.UID.CPP",
|
|
149 |
"t_sharedio3_exe/winscw/udeb/t_sharedio3_UID_.o",
|
|
150 |
"t_sharedio3_exe/winscw/urel/t_sharedio.o",
|
|
151 |
"t_sharedio3_exe/winscw/urel/t_sharedio3.UID.CPP",
|
|
152 |
"t_sharedio3_exe/winscw/urel/t_sharedio3_UID_.o",
|
|
153 |
"t_rbuf_exe/winscw/udeb/t_rbuf.o",
|
|
154 |
"t_rbuf_exe/winscw/udeb/t_rbuf.UID.CPP",
|
|
155 |
"t_rbuf_exe/winscw/udeb/t_rbuf_UID_.o",
|
|
156 |
"t_rbuf_exe/winscw/urel/t_rbuf.o",
|
|
157 |
"t_rbuf_exe/winscw/urel/t_rbuf.UID.CPP",
|
|
158 |
"t_rbuf_exe/winscw/urel/t_rbuf_UID_.o"
|
|
159 |
])
|
|
160 |
t.mustmatch = []
|
|
161 |
t.run()
|
|
162 |
|
|
163 |
# Test keywords: version, firstlib, nocompresstarget
|
|
164 |
t.id = "75e"
|
|
165 |
t.name = "mmp_5"
|
|
166 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp5/bld.inf -c armv5"
|
|
167 |
t.targets = [
|
|
168 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/fuzzv5.exe",
|
|
169 |
"$(EPOCROOT)/epoc32/release/armv5/urel/fuzzv5.exe",
|
|
170 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/fuzzlib.lib",
|
|
171 |
"$(EPOCROOT)/epoc32/release/armv5/urel/fuzzlib.lib"
|
|
172 |
]
|
|
173 |
t.addbuildtargets("smoke_suite/test_resources/mmp/mmp5/bld.inf", [
|
|
174 |
"fuzzv5_exe/armv5/udeb/fuzzv5.o",
|
|
175 |
"fuzzv5_exe/armv5/urel/fuzzv5.o",
|
|
176 |
"fuzzlib_lib/armv5/udeb/uc_exe_.cpp",
|
|
177 |
"fuzzlib_lib/armv5/urel/uc_exe_.cpp",
|
|
178 |
"fuzzlib_lib/armv5/udeb/uc_exe_.o",
|
|
179 |
"fuzzlib_lib/armv5/urel/uc_exe_.o",
|
|
180 |
])
|
|
181 |
t.run()
|
|
182 |
|
|
183 |
t.id = "75f"
|
|
184 |
t.name = "mmp_6"
|
|
185 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp6_7/bld.inf -c armv5 -k -p diagsuppress.mmp -f-"
|
|
186 |
t.targets = [
|
|
187 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/diagsuppress_test.dll",
|
|
188 |
"$(EPOCROOT)/epoc32/release/armv5/urel/diagsuppress_test.dll",
|
|
189 |
]
|
|
190 |
t.mustmatch = [
|
|
191 |
"--diag_suppress 6780",
|
|
192 |
"--diag_suppress 6331"
|
|
193 |
]
|
|
194 |
t.run()
|
|
195 |
|
|
196 |
t.id = "75g"
|
|
197 |
t.name = "mmp_7"
|
|
198 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp6_7/bld.inf -c armv5 -k -p diagsuppress_noarmlibs.mmp -f-"
|
|
199 |
t.targets = [
|
|
200 |
"$(EPOCROOT)/epoc32/release/armv5/urel/diagsuppress_noarmlibs_test.dll",
|
|
201 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/diagsuppress_noarmlibs_test.dll"
|
|
202 |
]
|
|
203 |
t.mustmatch = ["--diag_suppress 6331"]
|
|
204 |
t.mustnotmatch = ["--diag_suppress 6780"]
|
|
205 |
t.run()
|
|
206 |
|
|
207 |
# Test keyword: version
|
|
208 |
t.id = "75h"
|
|
209 |
t.name = "mmp_8"
|
|
210 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp8/bld.inf"
|
|
211 |
t.targets = [
|
|
212 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test_mmp_version.exe",
|
|
213 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test_mmp_version.exe",
|
|
214 |
"$(EPOCROOT)/epoc32/release/winscw/urel/test_mmp_version.exe",
|
|
215 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/test_mmp_version.exe"
|
|
216 |
]
|
|
217 |
t.mustmatch = []
|
|
218 |
t.mustnotmatch = []
|
|
219 |
t.warnings = 2
|
|
220 |
t.run()
|
9
|
221 |
|
|
222 |
# Test keyword: armfpu softvfp|vfpv2
|
|
223 |
# Both armv5 RVCT (9a+b) and GCCE (10) builds, as they differ in behaviour.
|
|
224 |
t.id = "75i"
|
|
225 |
t.name = "mmp_9a"
|
|
226 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p armfpu_soft.mmp -c armv5_urel -f-"
|
|
227 |
t.targets = []
|
|
228 |
t.mustmatch = ["--fpu softvfp", "--fpu=softvfp"]
|
|
229 |
t.mustnotmatch = ["--fpu vfpv2", "--fpu=vfpv2"]
|
|
230 |
t.warnings = 0
|
|
231 |
t.run()
|
|
232 |
|
|
233 |
t.id = "75j"
|
|
234 |
t.name = "mmp_9b"
|
|
235 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel REALLYCLEAN &&" \
|
|
236 |
+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p armfpu_vfpv2.mmp -c armv5_urel -f-"
|
3
|
237 |
|
9
|
238 |
t.mustmatch = ["--fpu vfpv2", "--fpu=vfpv2"]
|
|
239 |
t.mustnotmatch = ["--fpu softvfp", "--fpu=softvfp"]
|
|
240 |
t.run()
|
|
241 |
|
|
242 |
t.id = "75k"
|
|
243 |
t.name = "mmp_10"
|
|
244 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 REALLYCLEAN &&" \
|
|
245 |
+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 -f-"
|
|
246 |
t.countmatch = [
|
|
247 |
["-mfloat-abi=soft", 2],
|
|
248 |
["--fpu=softvfp", 2]
|
|
249 |
]
|
|
250 |
t.mustmatch = []
|
|
251 |
t.mustnotmatch = ["--fpu=vfpv2"]
|
|
252 |
t.run()
|
|
253 |
|
|
254 |
# Test keywords: compresstarget, nocompresstarget, bytepaircompresstarget, inflatecompresstarget
|
|
255 |
t.id = "75l"
|
|
256 |
t.name = "mmp_11"
|
|
257 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp11/bld.inf -c armv5_urel -f-"
|
|
258 |
t.mustmatch_singleline = [
|
|
259 |
"elf2e32.*--output.*\/compress\.exe.*--compressionmethod=inflate",
|
|
260 |
"elf2e32.*--output.*\/nocompress\.exe.*--uncompressed",
|
|
261 |
"elf2e32.*--output.*\/bytepaircompress\.exe.*--compressionmethod=bytepair",
|
|
262 |
"elf2e32.*--output.*\/inflatecompress\.exe.*--compressionmethod=inflate",
|
|
263 |
"elf2e32.*--output.*\/combinedcompress\.exe.*--compressionmethod=bytepair",
|
|
264 |
"COMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of NOCOMPRESSTARGET",
|
|
265 |
"INFLATECOMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of COMPRESSTARGET",
|
|
266 |
"BYTEPAIRCOMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of INFLATECOMPRESSTARGET"
|
|
267 |
]
|
|
268 |
t.countmatch = []
|
|
269 |
t.mustnotmatch = []
|
|
270 |
t.warnings = 3
|
|
271 |
t.run()
|
|
272 |
|
|
273 |
# Test keyword: APPLY
|
|
274 |
t.id = "75m"
|
|
275 |
t.name = "apply"
|
|
276 |
t.command = "sbs -b smoke_suite/test_resources/mmp/apply/bld.inf -f- -k --configpath=test/config"
|
|
277 |
t.targets = [
|
|
278 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test_mmp_apply.exe",
|
|
279 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test_mmp_apply.exe",
|
|
280 |
"$(EPOCROOT)/epoc32/release/winscw/urel/test_mmp_apply.exe",
|
|
281 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/test_mmp_apply.exe"
|
|
282 |
]
|
|
283 |
t.mustmatch_singleline = ["-DAPPLYTESTEXPORTEDVAR",
|
|
284 |
"-DAPPLYTESTAPPENDCDEFS"]
|
|
285 |
t.countmatch = [["<error.*APPLY unknown variant 'no_such_var'", 2]]
|
|
286 |
t.errors = 2 # no_such_var for armv5 and winscw
|
|
287 |
t.warnings = 0
|
|
288 |
t.returncode = 1
|
|
289 |
t.run()
|
3
|
290 |
|
|
291 |
t.id = "75"
|
|
292 |
t.name = "mmp_keywords"
|
|
293 |
t.print_result()
|
|
294 |
return t
|