author | Jon Chatten |
Mon, 13 Sep 2010 14:04:04 +0100 | |
changeset 641 | 8dd670a9f34f |
parent 625 | a1925fb7753a |
permissions | -rw-r--r-- |
591 | 1 |
# |
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
2 |
# Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
591 | 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 |
|
23 |
||
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() |
|
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"] |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
229 |
t.mustnotmatch = ["--fpu vfpv2", "--fpu softvfp\+", "--fpu=vfpv2", "--fpu=softvfp\+"] |
591 | 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-" |
|
237 |
||
238 |
t.mustmatch = ["--fpu vfpv2", "--fpu=vfpv2"] |
|
239 |
t.mustnotmatch = ["--fpu softvfp", "--fpu=softvfp"] |
|
240 |
t.run() |
|
241 |
||
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
242 |
t.id = "75ja" |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
243 |
t.name = "mmp_9c" |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
244 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel REALLYCLEAN &&" \ |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
245 |
+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p \"armfpu_soft+vfpv2.mmp\" -c armv5_urel -f-" |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
246 |
|
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
247 |
t.mustmatch = ["--fpu softvfp\+vfpv2", "--fpu=vfpv2"] |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
248 |
t.mustnotmatch = ["--fpu vfpv2", "--fpu softvfp ", "--fpu=softvfp"] |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
249 |
t.run() |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
250 |
|
591 | 251 |
t.id = "75k" |
252 |
t.name = "mmp_10" |
|
253 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 REALLYCLEAN &&" \ |
|
254 |
+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 -f-" |
|
255 |
t.countmatch = [ |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
256 |
["-mfloat-abi=soft", 3], |
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
257 |
["--fpu=softvfp", 3] # gcce doesn't vary according to ARMFPU currently |
591 | 258 |
] |
259 |
t.mustmatch = [] |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
260 |
t.mustnotmatch = ["--fpu=vfpv2", "--fpu=softvfp\+"] |
591 | 261 |
t.run() |
262 |
||
263 |
# Test keywords: compresstarget, nocompresstarget, bytepaircompresstarget, inflatecompresstarget |
|
264 |
t.id = "75l" |
|
265 |
t.name = "mmp_11" |
|
266 |
t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp11/bld.inf -c armv5_urel -f-" |
|
267 |
t.mustmatch_singleline = [ |
|
268 |
"elf2e32.*--output.*\/compress\.exe.*--compressionmethod=inflate", |
|
269 |
"elf2e32.*--output.*\/nocompress\.exe.*--uncompressed", |
|
270 |
"elf2e32.*--output.*\/bytepaircompress\.exe.*--compressionmethod=bytepair", |
|
271 |
"elf2e32.*--output.*\/inflatecompress\.exe.*--compressionmethod=inflate", |
|
272 |
"elf2e32.*--output.*\/combinedcompress\.exe.*--compressionmethod=bytepair", |
|
273 |
"COMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of NOCOMPRESSTARGET", |
|
274 |
"INFLATECOMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of COMPRESSTARGET", |
|
275 |
"BYTEPAIRCOMPRESSTARGET keyword in .*combinedcompresstarget.mmp overrides earlier use of INFLATECOMPRESSTARGET" |
|
276 |
] |
|
277 |
t.countmatch = [] |
|
278 |
t.mustnotmatch = [] |
|
279 |
t.warnings = 3 |
|
280 |
t.run() |
|
281 |
||
282 |
# Test keyword: APPLY |
|
283 |
t.id = "75m" |
|
284 |
t.name = "apply" |
|
285 |
t.command = "sbs -b smoke_suite/test_resources/mmp/apply/bld.inf -f- -k --configpath=test/config" |
|
286 |
t.targets = [ |
|
287 |
"$(EPOCROOT)/epoc32/release/armv5/urel/test_mmp_apply.exe", |
|
288 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/test_mmp_apply.exe", |
|
289 |
"$(EPOCROOT)/epoc32/release/winscw/urel/test_mmp_apply.exe", |
|
290 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/test_mmp_apply.exe" |
|
291 |
] |
|
292 |
t.mustmatch_singleline = ["-DAPPLYTESTEXPORTEDVAR", |
|
293 |
"-DAPPLYTESTAPPENDCDEFS"] |
|
294 |
t.countmatch = [["<error.*APPLY unknown variant 'no_such_var'", 2]] |
|
295 |
t.errors = 2 # no_such_var for armv5 and winscw |
|
296 |
t.warnings = 0 |
|
297 |
t.returncode = 1 |
|
298 |
t.run() |
|
299 |
||
300 |
# Test keyword: EPOCNESTEDEXCEPTIONS |
|
301 |
t.id = "75n" |
|
302 |
t.name = "epocnestedexceptions" |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
303 |
t.command = "sbs -b smoke_suite/test_resources/mmp/epocnestedexceptions/bld.inf -c armv5_udeb -f-" |
591 | 304 |
|
305 |
# When EPOCNESTEDEXCEPTIONS is specified in the MMP file, a different static |
|
306 |
# run-time library should be used. |
|
307 |
t.mustmatch_singleline = ["usrt_nx_\d_\d\.lib"] |
|
308 |
t.mustnotmatch = ["usrt._.."] |
|
309 |
||
310 |
t.countmatch = [] |
|
311 |
||
312 |
# The new static run-time libraries don't yet exist. |
|
313 |
t.errors = 1 |
|
616
24e4ef208cca
sbs version 2.14.2
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
314 |
t.warnings = 1 |
591 | 315 |
t.targets = [] |
316 |
||
317 |
t.run() |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
318 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
319 |
# Test keyword: DOCUMENT |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
320 |
t.id = "75o" |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
321 |
t.name = "mmp_keyword_document" |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
322 |
# Note: in t.command, the makefile is cat'd through sed to remove the .DEFAULT double-colon rule's <warning> tag to ensure that t.run succeeds. |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
323 |
t.command = "sbs -b smoke_suite/test_resources/mmp/mmp1/group/bld.inf -c armv5 reallyclean; " + \ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
324 |
"sbs -b smoke_suite/test_resources/mmp/mmp1/group/bld.inf --no-depend-generate -c armv5_urel -m ${SBSMAKEFILE}; " + \ |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
325 |
"cat ${SBSMAKEFILE}_all.default" |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
326 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
327 |
t.mustmatch_singleline = ["DOCUMENT:=.*test/smoke_suite/test_resources/mmp/mmp1/src/file01\.txt\\s+.*test/smoke_suite/test_resources/mmp/mmp1/src/file02\.txt"] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
328 |
t.mustnotmatch = [] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
329 |
t.countmatch = [] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
330 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
331 |
t.errors = 0 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
332 |
t.warnings = 0 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
333 |
t.returncode = 0 |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
334 |
t.targets = [] |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
335 |
|
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
336 |
t.run() |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
616
diff
changeset
|
337 |
|
591 | 338 |
t.id = "75" |
339 |
t.name = "mmp_keywords" |
|
340 |
t.print_result() |
|
341 |
return t |