author | Jon Chatten |
Thu, 25 Feb 2010 16:14:32 +0000 | |
branch | fix |
changeset 270 | 29b7de7b6f0d |
parent 40 | afaf81347e0a |
permissions | -rw-r--r-- |
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, getsymbianversion |
|
18 |
||
19 |
def run(): |
|
20 |
t = SmokeTest() |
|
21 |
t.id = "39" |
|
22 |
t.name = "openenvironment" |
|
40
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
23 |
t.description = """Test STDEXE, STDLIB and STDDLL creation; Test open environment project linking against a symbian environment |
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
24 |
library; Test symbian environment project linking against an open environment library""" |
3 | 25 |
t.usebash = True |
40
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
26 |
t.command = "sbs -k -b smoke_suite/test_resources/oe/group/bld.inf -c armv5 -c winscw " + \ |
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
27 |
"-m ${SBSMAKEFILE} -f ${SBSLOGFILE}; grep -E \"(armlink|checklib|mwldsym2)\" ${SBSLOGFILE}" |
3 | 28 |
t.targets = [ |
29 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oedll.dll.sym", |
|
30 |
"$(EPOCROOT)/epoc32/release/armv5/urel/symbian_test.lib", |
|
31 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe.map", |
|
32 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oelib.lib", |
|
33 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe", |
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oeexe.exe.sym", |
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/urel/t_oedll.dll.map", |
|
36 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oedll.dll.sym", |
|
37 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/symbian_test.lib", |
|
38 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe.map", |
|
39 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oelib.lib", |
|
40 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe", |
|
41 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oeexe.exe.sym", |
|
42 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/t_oedll.dll.map", |
|
43 |
"$(EPOCROOT)/epoc32/release/armv5/lib/t_oedll.dso", |
|
44 |
"$(EPOCROOT)/epoc32/release/armv5/lib/t_oedll{000a0000}.dso", |
|
45 |
"$(EPOCROOT)/epoc32/release/winscw/urel/symbian_test.lib", |
|
46 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oedll.dll", |
|
47 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oeexe.exe.map", |
|
48 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oelib.lib", |
|
49 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oeexe.exe", |
|
50 |
"$(EPOCROOT)/epoc32/release/winscw/urel/t_oedll.dll.map", |
|
51 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/symbian_test.lib", |
|
52 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oedll.lib", |
|
53 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oedll.dll", |
|
54 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/t_oelib.lib" |
|
55 |
] |
|
56 |
t.addbuildtargets('smoke_suite/test_resources/oe/group/bld.inf', [ |
|
57 |
"t_oedll_dll/armv5/urel/t_oedll{000a0000}.dso", |
|
58 |
"t_oedll_dll/armv5/urel/t_oedll_urel_objects.via", |
|
59 |
"t_oedll_dll/armv5/urel/t_oedll.o", |
|
60 |
"t_oedll_dll/armv5/urel/t_oedll.o.d", |
|
61 |
# either prep file can exist - luck determines which |
|
62 |
['t_oedll_dll/armv5/urel/t_oedll.prep', |
|
63 |
't_oedll_dll/armv5/udeb/t_oedll.prep'], |
|
64 |
"t_oedll_dll/armv5/urel/t_oedll{000a0000}.def", |
|
65 |
"t_oedll_dll/armv5/udeb/t_oedll{000a0000}.dso", |
|
66 |
"t_oedll_dll/armv5/udeb/t_oedll_udeb_objects.via", |
|
67 |
"t_oedll_dll/armv5/udeb/t_oedll.o", |
|
68 |
"t_oedll_dll/armv5/udeb/t_oedll.o.d", |
|
69 |
"t_oedll_dll/armv5/udeb/t_oedll{000a0000}.def", |
|
70 |
"symbian_test_lib/armv5/urel/symbian_test_urel_objects.via", |
|
71 |
"symbian_test_lib/armv5/urel/symbian_lib.o.d", |
|
72 |
"symbian_test_lib/armv5/urel/symbian_lib.o", |
|
73 |
"symbian_test_lib/armv5/udeb/symbian_test_udeb_objects.via", |
|
74 |
"symbian_test_lib/armv5/udeb/symbian_lib.o.d", |
|
75 |
"symbian_test_lib/armv5/udeb/symbian_lib.o", |
|
76 |
"wrong_newlib_test_oeexe_exe/armv5/urel/wrong_newlib_test_oeexe_urel_objects.via", |
|
77 |
"wrong_newlib_test_oeexe_exe/armv5/urel/t_oeexe.o", |
|
78 |
"wrong_newlib_test_oeexe_exe/armv5/urel/t_oeexe.o.d", |
|
79 |
"wrong_newlib_test_oeexe_exe/armv5/udeb/t_oeexe.o", |
|
80 |
"wrong_newlib_test_oeexe_exe/armv5/udeb/wrong_newlib_test_oeexe_udeb_objects.via", |
|
81 |
"wrong_newlib_test_oeexe_exe/armv5/udeb/t_oeexe.o.d", |
|
82 |
"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_seexe_urel_objects.via", |
|
83 |
"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_symbian.o", |
|
84 |
"wrong_newlib_seexe_exe/armv5/urel/wrong_newlib_symbian.o.d", |
|
85 |
"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_seexe_udeb_objects.via", |
|
86 |
"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_symbian.o", |
|
87 |
"wrong_newlib_seexe_exe/armv5/udeb/wrong_newlib_symbian.o.d", |
|
88 |
"t_oeexe_exe/armv5/urel/t_oeexe_urel_objects.via", |
|
89 |
"t_oeexe_exe/armv5/urel/t_oeexe.o", |
|
90 |
"t_oeexe_exe/armv5/urel/t_oeexe.o.d", |
|
91 |
"t_oeexe_exe/armv5/udeb/t_oeexe.o", |
|
92 |
"t_oeexe_exe/armv5/udeb/t_oeexe.o.d", |
|
93 |
"t_oeexe_exe/armv5/udeb/t_oeexe_udeb_objects.via", |
|
94 |
"t_oelib_lib/armv5/urel/t_oelib_urel_objects.via", |
|
95 |
"t_oelib_lib/armv5/urel/t_oelib.o", |
|
96 |
"t_oelib_lib/armv5/urel/t_oelib.o.d", |
|
97 |
"t_oelib_lib/armv5/udeb/t_oelib.o", |
|
98 |
"t_oelib_lib/armv5/udeb/t_oelib_udeb_objects.via", |
|
99 |
"t_oelib_lib/armv5/udeb/t_oelib.o.d", |
|
100 |
"t_oedll_dll/winscw/urel/t_oedll.dep", |
|
101 |
"t_oedll_dll/winscw/urel/t_oedll.lib", |
|
102 |
"t_oedll_dll/winscw/urel/t_oedll_SYM_.cpp", |
|
103 |
"t_oedll_dll/winscw/urel/t_oedll.dll", |
|
104 |
"t_oedll_dll/winscw/urel/t_oedll_UID_.o", |
|
105 |
"t_oedll_dll/winscw/urel/t_oedll_SYM_.o", |
|
106 |
"t_oedll_dll/winscw/urel/t_oedll.o", |
|
107 |
"t_oedll_dll/winscw/urel/t_oedll_UID_.o.d", |
|
108 |
"t_oedll_dll/winscw/urel/t_oedll.o.d", |
|
109 |
"t_oedll_dll/winscw/urel/t_oedll_UID_.dep", |
|
110 |
"t_oedll_dll/winscw/urel/t_oedll.sym", |
|
111 |
"t_oedll_dll/winscw/urel/t_oedll.UID.CPP", |
|
112 |
"t_oedll_dll/winscw/urel/t_oedll_SYM_.o.d", |
|
113 |
"t_oedll_dll/winscw/urel/t_oedll_SYM_.dep", |
|
114 |
# The prep.def file can be in urel or udeb |
|
115 |
['t_oedll_dll/winscw/urel/t_oedll.prep.def', |
|
116 |
't_oedll_dll/winscw/udeb/t_oedll.prep.def'], |
|
117 |
"t_oedll_dll/winscw/urel/t_oedll.def", |
|
118 |
"t_oedll_dll/winscw/urel/t_oedll.inf", |
|
119 |
"t_oedll_dll/winscw/udeb/t_oedll.dep", |
|
120 |
"t_oedll_dll/winscw/udeb/t_oedll.lib", |
|
121 |
"t_oedll_dll/winscw/udeb/t_oedll_SYM_.cpp", |
|
122 |
"t_oedll_dll/winscw/udeb/t_oedll.dll", |
|
123 |
"t_oedll_dll/winscw/udeb/t_oedll_UID_.o", |
|
124 |
"t_oedll_dll/winscw/udeb/t_oedll_SYM_.o", |
|
125 |
"t_oedll_dll/winscw/udeb/t_oedll.o", |
|
126 |
"t_oedll_dll/winscw/udeb/t_oedll_UID_.o.d", |
|
127 |
"t_oedll_dll/winscw/udeb/t_oedll.o.d", |
|
128 |
"t_oedll_dll/winscw/udeb/t_oedll_UID_.dep", |
|
129 |
"t_oedll_dll/winscw/udeb/t_oedll.sym", |
|
130 |
"t_oedll_dll/winscw/udeb/t_oedll.UID.CPP", |
|
131 |
"t_oedll_dll/winscw/udeb/t_oedll_SYM_.o.d", |
|
132 |
"t_oedll_dll/winscw/udeb/t_oedll_SYM_.dep", |
|
133 |
"t_oedll_dll/winscw/udeb/t_oedll.def", |
|
134 |
"t_oedll_dll/winscw/udeb/t_oedll.inf", |
|
135 |
"symbian_test_lib/winscw/urel/symbian_lib.dep", |
|
136 |
"symbian_test_lib/winscw/urel/symbian_lib.o.d", |
|
137 |
"symbian_test_lib/winscw/urel/symbian_lib.o", |
|
138 |
"symbian_test_lib/winscw/udeb/symbian_lib.dep", |
|
139 |
"symbian_test_lib/winscw/udeb/symbian_lib.o.d", |
|
140 |
"symbian_test_lib/winscw/udeb/symbian_lib.o", |
|
141 |
"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.dep", |
|
142 |
"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.o.d", |
|
143 |
"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.dep", |
|
144 |
"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.o", |
|
145 |
"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe.UID.CPP", |
|
146 |
"wrong_newlib_test_oeexe_exe/winscw/urel/wrong_newlib_test_oeexe_UID_.o", |
|
147 |
"wrong_newlib_test_oeexe_exe/winscw/urel/t_oeexe_wins.o.d", |
|
148 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.dep", |
|
149 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.o.d", |
|
150 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.dep", |
|
151 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.o", |
|
152 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe.UID.CPP", |
|
153 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/wrong_newlib_test_oeexe_UID_.o", |
|
154 |
"wrong_newlib_test_oeexe_exe/winscw/udeb/t_oeexe_wins.o.d", |
|
155 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.dep", |
|
156 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.o", |
|
157 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.dep", |
|
158 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.o", |
|
159 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_symbian.o.d", |
|
160 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe.UID.CPP", |
|
161 |
"wrong_newlib_seexe_exe/winscw/urel/wrong_newlib_seexe_UID_.o.d", |
|
162 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.dep", |
|
163 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.o", |
|
164 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.dep", |
|
165 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.o", |
|
166 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_symbian.o.d", |
|
167 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe.UID.CPP", |
|
168 |
"wrong_newlib_seexe_exe/winscw/udeb/wrong_newlib_seexe_UID_.o.d", |
|
169 |
"t_oeexe_exe/winscw/urel/t_oeexe_UID_.o", |
|
170 |
"t_oeexe_exe/winscw/urel/t_oeexe_UID_.dep", |
|
171 |
"t_oeexe_exe/winscw/urel/t_oeexe_wins.dep", |
|
172 |
"t_oeexe_exe/winscw/urel/t_oeexe_wins.o", |
|
173 |
"t_oeexe_exe/winscw/urel/t_oeexe_UID_.o.d", |
|
174 |
"t_oeexe_exe/winscw/urel/t_oeexe.UID.CPP", |
|
175 |
"t_oeexe_exe/winscw/urel/t_oeexe_wins.o.d", |
|
176 |
"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.o", |
|
177 |
"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.dep", |
|
178 |
"t_oeexe_exe/winscw/udeb/t_oeexe_wins.dep", |
|
179 |
"t_oeexe_exe/winscw/udeb/t_oeexe_wins.o", |
|
180 |
"t_oeexe_exe/winscw/udeb/t_oeexe_UID_.o.d", |
|
181 |
"t_oeexe_exe/winscw/udeb/t_oeexe.UID.CPP", |
|
182 |
"t_oeexe_exe/winscw/udeb/t_oeexe_wins.o.d", |
|
183 |
"t_oelib_lib/winscw/urel/t_oelib.o", |
|
184 |
"t_oelib_lib/winscw/urel/t_oelib.o.d", |
|
185 |
"t_oelib_lib/winscw/urel/t_oelib.dep", |
|
186 |
"t_oelib_lib/winscw/udeb/t_oelib.o", |
|
187 |
"t_oelib_lib/winscw/udeb/t_oelib.o.d", |
|
188 |
"t_oelib_lib/winscw/udeb/t_oelib.dep" |
|
189 |
]) |
|
190 |
||
191 |
# On 9.4 the open environment checks for |
|
192 |
# mixed symbianc++ and stdc++ new/delete won't fail |
|
193 |
if getsymbianversion() != "9.4": |
|
194 |
t.mustmatch = [ |
|
195 |
'.*checklib: error: library .*epoc32.release.armv5.urel.symbian_test.lib is incompatible with standard.*', |
|
196 |
'.*checklib: error: library .*epoc32.release.armv5.urel.t_oelib.lib is incompatible with Symbian.*', |
|
197 |
'.*checklib: error: library .*epoc32.release.armv5.udeb.symbian_test.lib is incompatible with standard.*', |
|
198 |
'.*checklib: error: library .*epoc32.release.armv5.udeb.t_oelib.lib is incompatible with Symbian.*', |
|
199 |
'.*checklib: error: library .*epoc32.release.winscw.urel.symbian_test.lib is incompatible with standard.*', |
|
200 |
'.*checklib: error: library .*epoc32.release.winscw.urel.t_oelib.lib is incompatible with Symbian.*', |
|
201 |
'.*checklib: error: library .*epoc32.release.winscw.udeb.t_oelib.lib is incompatible with Symbian.*', |
|
202 |
'.*checklib: error: library .*epoc32.release.winscw.udeb.symbian_test.lib is incompatible with standard.*', |
|
203 |
'.*armlink.*oe_exe_without_stdcpp.*scppnwdl.dso.*', |
|
204 |
'.*armlink.*symbian_exe_with_stdcpp.*stdnew.dso.*', |
|
205 |
'.*armlink.*oedll.*stdnew.dso.*', |
|
206 |
'.*armlink.*oeexe.*stdnew.dso.*', |
|
207 |
'.*armlink.*symbian_newlib.exe.*scppnwdl.dso.*' |
|
208 |
] |
|
209 |
t.mustnotmatch = [ |
|
210 |
'.*armlink.*oe_exe_without_stdcpp.*stdnew.dso.*', |
|
211 |
'.*armlink.*symbian_exe_with_stdcpp.*scppnwdl.dso.*', |
|
212 |
'.*armlink.*oedll.*scppnwdl.dso.*', |
|
213 |
'.*armlink.*oeexe.*scppnwdl.dso.*', |
|
40
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
214 |
'.*armlink.*symbian_newlib.exe.*stdnew.dso.*', |
afaf81347e0a
DPDEF143176 raptor does not respect STDCPP mmp file keyword
jchatten
parents:
3
diff
changeset
|
215 |
'.*mwldsym2.*scppnwdl.lib.*symbian_exe_with_stdcpp.exe.*' |
3 | 216 |
] |
217 |
else: |
|
218 |
# these files will build for 9.4 |
|
219 |
t.targets.extend([ |
|
220 |
"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_oeexe.exe", |
|
221 |
"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_oeexe.exe.map", |
|
222 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_oeexe.exe", |
|
223 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_oeexe.exe.map", |
|
224 |
"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_seexe.exe", |
|
225 |
"$(EPOCROOT)/epoc32/release/winscw/urel/wrong_newlib_test_seexe.exe.map", |
|
226 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_seexe.exe", |
|
227 |
"$(EPOCROOT)/epoc32/release/winscw/udeb/wrong_newlib_test_seexe.exe.map", |
|
228 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe", |
|
229 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe", |
|
230 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe", |
|
231 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe", |
|
232 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe.map", |
|
233 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe.map", |
|
234 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe.map", |
|
235 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe.map", |
|
236 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_oeexe.exe.sym", |
|
237 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_oeexe.exe.sym", |
|
238 |
"$(EPOCROOT)/epoc32/release/armv5/urel/wrong_newlib_test_seexe.exe.sym", |
|
239 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/wrong_newlib_test_seexe.exe.sym" |
|
240 |
]) |
|
241 |
t.run() |
|
242 |
return t |