author | srilekhas |
Fri, 08 Oct 2010 21:02:28 +0100 | |
changeset 650 | 8f038057ffa5 |
parent 641 | 8dd670a9f34f |
permissions | -rw-r--r-- |
641 | 1 |
|
591 | 2 |
# Copyright (c) 2009-2010 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 AntiTargetSmokeTest, ReplaceEnvs |
|
641 | 18 |
from raptor_meta import BldInfFile |
591 | 19 |
import os |
20 |
||
21 |
def run(): |
|
22 |
t = AntiTargetSmokeTest() |
|
23 |
t.usebash = True |
|
641 | 24 |
|
25 |
# create some empty source files just to test createvmaps command file handling: |
|
26 |
test_cpp_files = [] |
|
27 |
for i in xrange(0,16): |
|
28 |
tf = "smoke_suite/test_resources/bv/variant1/test_createvmap{0:02}.cpp".format(i) |
|
29 |
f = open(tf,"w+") |
|
30 |
f.close() |
|
31 |
test_cpp_files.append(tf) |
|
591 | 32 |
|
33 |
preBuiltTargets = [ |
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/dummy.lib", |
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/urel/dummy.lib", |
|
36 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/debfake.lib", |
|
37 |
"$(EPOCROOT)/epoc32/release/armv5/urel/relfake.lib" |
|
38 |
] |
|
39 |
||
40 |
invariantTargets = [ |
|
41 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll", |
|
42 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.map", |
|
43 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.sym", |
|
44 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll", |
|
45 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.map", |
|
46 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.sym", |
|
47 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant.dso", |
|
48 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant{000a0000}.dso" |
|
49 |
] |
|
50 |
||
51 |
variantTargetsDefaultTree = [ |
|
52 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll", |
|
53 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll.map", |
|
54 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll.sym", |
|
55 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll", |
|
56 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll.map", |
|
57 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll.sym", |
|
58 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe", |
|
59 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe.map", |
|
60 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe.sym", |
|
61 |
||
62 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll", |
|
63 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll.map", |
|
64 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll.sym", |
|
65 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll", |
|
66 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll.map", |
|
67 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll.sym", |
|
68 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe", |
|
69 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe.map", |
|
70 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe.sym" |
|
71 |
] |
|
72 |
||
73 |
variantTargetsProductTrees = [ |
|
74 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll", |
|
75 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.map", |
|
76 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.sym", |
|
77 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.vmap", |
|
78 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll", |
|
79 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.map", |
|
80 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.sym", |
|
81 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.vmap", |
|
82 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe", |
|
83 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.map", |
|
84 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.sym", |
|
85 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.vmap", |
|
86 |
||
87 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll", |
|
88 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.map", |
|
89 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.sym", |
|
90 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.vmap", |
|
91 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll", |
|
92 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.map", |
|
93 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.sym", |
|
94 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.vmap", |
|
95 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe", |
|
96 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.map", |
|
97 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.sym", |
|
98 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.vmap", |
|
99 |
||
100 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll", |
|
101 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.map", |
|
102 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.sym", |
|
103 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.vmap", |
|
104 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll", |
|
105 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.map", |
|
106 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.sym", |
|
107 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.vmap", |
|
108 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe", |
|
109 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.map", |
|
110 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.sym", |
|
111 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.vmap", |
|
112 |
||
113 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll", |
|
114 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.map", |
|
115 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.sym", |
|
116 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.vmap", |
|
117 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll", |
|
118 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.map", |
|
119 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.sym", |
|
120 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.vmap", |
|
121 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe", |
|
122 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.map", |
|
123 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.sym", |
|
124 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.vmap", |
|
125 |
||
126 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll", |
|
127 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.map", |
|
128 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.sym", |
|
129 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.vmap", |
|
130 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll", |
|
131 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.map", |
|
132 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.sym", |
|
133 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.vmap", |
|
134 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe", |
|
135 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.map", |
|
136 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.sym", |
|
137 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.vmap", |
|
138 |
||
139 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll", |
|
140 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.map", |
|
141 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.sym", |
|
142 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.vmap", |
|
143 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll", |
|
144 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.map", |
|
145 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.sym", |
|
146 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.vmap", |
|
147 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe", |
|
148 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.map", |
|
149 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.sym", |
|
150 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.vmap", |
|
151 |
] |
|
152 |
||
153 |
variantTargetsGeneric = [ |
|
154 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var1.rsc", |
|
155 |
"$(EPOCROOT)/epoc32/include/dummy_var1.rsg", |
|
156 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var2.rsc", |
|
157 |
"$(EPOCROOT)/epoc32/include/dummy_var2.rsg", |
|
158 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var3.rsc", |
|
159 |
"$(EPOCROOT)/epoc32/include/dummy_var3.rsg", |
|
160 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_inv.rsc", |
|
161 |
"$(EPOCROOT)/epoc32/include/dummy_inv.rsg", |
|
162 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1.dso", |
|
163 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1{000a0000}.dso", |
|
164 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2.dso", |
|
165 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2{000a0000}.dso" |
|
166 |
] |
|
167 |
||
168 |
invariantBuildTargets = [ |
|
169 |
"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o", |
|
170 |
"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o.d", |
|
171 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant_udeb_objects.via", |
|
172 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.def", |
|
173 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.dso", |
|
174 |
"createstaticdll_invariant_dll/armv5/urel/CreateStaticDLL_invariant.o", |
|
175 |
"createstaticdll_invariant_dll/armv5/urel/CreateStaticDLL_invariant.o.d", |
|
176 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant_urel_objects.via", |
|
177 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.def", |
|
178 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.dso", |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
179 |
"dummy_inv_dll/dummy_inv_dummy.rsc.rpp", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
180 |
"dummy_inv_dll/dummy_inv_dummy.rsc.d" |
591 | 181 |
] |
182 |
||
183 |
variantBuildTargetsDefaultTree = [ |
|
184 |
"createstaticdll_variant1_dll/armv5/udeb/CreateStaticDLL_variant1.o", |
|
185 |
"createstaticdll_variant1_dll/armv5/udeb/CreateStaticDLL_variant1.o.d", |
|
186 |
"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1_udeb_objects.via", |
|
187 |
"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1{000a0000}.def", |
|
188 |
"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1{000a0000}.dso", |
|
189 |
"createstaticdll_variant1_dll/armv5/urel/CreateStaticDLL_variant1.o", |
|
190 |
"createstaticdll_variant1_dll/armv5/urel/CreateStaticDLL_variant1.o.d", |
|
191 |
"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1_urel_objects.via", |
|
192 |
"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1{000a0000}.def", |
|
193 |
"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1{000a0000}.dso", |
|
194 |
||
195 |
"createstaticdll_variant2_dll/armv5/udeb/CreateStaticDLL_variant2.o", |
|
196 |
"createstaticdll_variant2_dll/armv5/udeb/CreateStaticDLL_variant2.o.d", |
|
197 |
"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2_udeb_objects.via", |
|
198 |
"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2{000a0000}.def", |
|
199 |
"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2{000a0000}.dso", |
|
200 |
"createstaticdll_variant2_dll/armv5/urel/CreateStaticDLL_variant2.o", |
|
201 |
"createstaticdll_variant2_dll/armv5/urel/CreateStaticDLL_variant2.o.d", |
|
202 |
"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2_urel_objects.via", |
|
203 |
"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2{000a0000}.def", |
|
204 |
"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2{000a0000}.dso", |
|
205 |
||
206 |
"createexe_variant3_exe/armv5/udeb/CreateEXE_variant3.o", |
|
207 |
"createexe_variant3_exe/armv5/udeb/CreateEXE_variant3.o.d", |
|
208 |
"createexe_variant3_exe/armv5/udeb/createexe_variant3_udeb_objects.via", |
|
209 |
"createexe_variant3_exe/armv5/urel/CreateEXE_variant3.o", |
|
210 |
"createexe_variant3_exe/armv5/urel/CreateEXE_variant3.o.d", |
|
211 |
"createexe_variant3_exe/armv5/urel/createexe_variant3_urel_objects.via" |
|
212 |
] |
|
213 |
||
214 |
variantBuildTargetsProductTrees = [ |
|
215 |
"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o", |
|
216 |
"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o.d", |
|
217 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1_udeb_objects.via", |
|
218 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.def", |
|
219 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.dso", |
|
220 |
"createstaticdll_variant1_dll/armv5.one/urel/CreateStaticDLL_variant1.o", |
|
221 |
"createstaticdll_variant1_dll/armv5.one/urel/CreateStaticDLL_variant1.o.d", |
|
222 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1_urel_objects.via", |
|
223 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1{000a0000}.def", |
|
224 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1{000a0000}.dso", |
|
225 |
||
226 |
"createstaticdll_variant2_dll/armv5.one/udeb/CreateStaticDLL_variant2.o", |
|
227 |
"createstaticdll_variant2_dll/armv5.one/udeb/CreateStaticDLL_variant2.o.d", |
|
228 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2_udeb_objects.via", |
|
229 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2{000a0000}.def", |
|
230 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2{000a0000}.dso", |
|
231 |
"createstaticdll_variant2_dll/armv5.one/urel/CreateStaticDLL_variant2.o", |
|
232 |
"createstaticdll_variant2_dll/armv5.one/urel/CreateStaticDLL_variant2.o.d", |
|
233 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2_urel_objects.via", |
|
234 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2{000a0000}.def", |
|
235 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2{000a0000}.dso", |
|
236 |
||
237 |
"createexe_variant3_exe/armv5.one/udeb/CreateEXE_variant3.o", |
|
238 |
"createexe_variant3_exe/armv5.one/udeb/CreateEXE_variant3.o.d", |
|
239 |
"createexe_variant3_exe/armv5.one/udeb/createexe_variant3_udeb_objects.via", |
|
240 |
"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o", |
|
241 |
"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o.d", |
|
242 |
"createexe_variant3_exe/armv5.one/urel/createexe_variant3_urel_objects.via", |
|
243 |
||
244 |
"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o", |
|
245 |
"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o.d", |
|
246 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1_udeb_objects.via", |
|
247 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.def", |
|
248 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.dso", |
|
249 |
"createstaticdll_variant1_dll/armv5.two/urel/CreateStaticDLL_variant1.o", |
|
250 |
"createstaticdll_variant1_dll/armv5.two/urel/CreateStaticDLL_variant1.o.d", |
|
251 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1_urel_objects.via", |
|
252 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1{000a0000}.def", |
|
253 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1{000a0000}.dso", |
|
254 |
||
255 |
"createstaticdll_variant2_dll/armv5.two/udeb/CreateStaticDLL_variant2.o", |
|
256 |
"createstaticdll_variant2_dll/armv5.two/udeb/CreateStaticDLL_variant2.o.d", |
|
257 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2_udeb_objects.via", |
|
258 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2{000a0000}.def", |
|
259 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2{000a0000}.dso", |
|
260 |
"createstaticdll_variant2_dll/armv5.two/urel/CreateStaticDLL_variant2.o", |
|
261 |
"createstaticdll_variant2_dll/armv5.two/urel/CreateStaticDLL_variant2.o.d", |
|
262 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2_urel_objects.via", |
|
263 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2{000a0000}.def", |
|
264 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2{000a0000}.dso", |
|
265 |
||
266 |
"createexe_variant3_exe/armv5.two/udeb/CreateEXE_variant3.o", |
|
267 |
"createexe_variant3_exe/armv5.two/udeb/CreateEXE_variant3.o.d", |
|
268 |
"createexe_variant3_exe/armv5.two/udeb/createexe_variant3_udeb_objects.via", |
|
269 |
"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o", |
|
270 |
"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o.d", |
|
271 |
"createexe_variant3_exe/armv5.two/urel/createexe_variant3_urel_objects.via", |
|
272 |
||
273 |
"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o", |
|
274 |
"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o.d", |
|
275 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1_udeb_objects.via", |
|
276 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.def", |
|
277 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.dso", |
|
278 |
"createstaticdll_variant1_dll/armv5.three/urel/CreateStaticDLL_variant1.o", |
|
279 |
"createstaticdll_variant1_dll/armv5.three/urel/CreateStaticDLL_variant1.o.d", |
|
280 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1_urel_objects.via", |
|
281 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1{000a0000}.def", |
|
282 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1{000a0000}.dso", |
|
283 |
||
284 |
"createstaticdll_variant2_dll/armv5.three/udeb/CreateStaticDLL_variant2.o", |
|
285 |
"createstaticdll_variant2_dll/armv5.three/udeb/CreateStaticDLL_variant2.o.d", |
|
286 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2_udeb_objects.via", |
|
287 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2{000a0000}.def", |
|
288 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2{000a0000}.dso", |
|
289 |
"createstaticdll_variant2_dll/armv5.three/urel/CreateStaticDLL_variant2.o", |
|
290 |
"createstaticdll_variant2_dll/armv5.three/urel/CreateStaticDLL_variant2.o.d", |
|
291 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2_urel_objects.via", |
|
292 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2{000a0000}.def", |
|
293 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2{000a0000}.dso", |
|
294 |
||
295 |
"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o", |
|
296 |
"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o.d", |
|
297 |
"createexe_variant3_exe/armv5.three/udeb/createexe_variant3_udeb_objects.via", |
|
298 |
"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o", |
|
299 |
"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o.d", |
|
300 |
"createexe_variant3_exe/armv5.three/urel/createexe_variant3_urel_objects.via" |
|
301 |
] |
|
302 |
||
303 |
variantBuildTargetsGeneric = [ |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
304 |
"dummy_var1_dll/dummy_var1_dummy.rsc.rpp", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
305 |
"dummy_var1_dll/dummy_var1_dummy.rsc.d", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
306 |
"dummy_var2_dll/dummy_var2_dummy.rsc.rpp", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
307 |
"dummy_var2_dll/dummy_var2_dummy.rsc.d", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
308 |
"dummy_var3_exe/dummy_var3_dummy.rsc.rpp", |
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
309 |
"dummy_var3_exe/dummy_var3_dummy.rsc.d" |
591 | 310 |
] |
311 |
||
641 | 312 |
bldinf = 'smoke_suite/test_resources/bv/bld.inf' |
313 |
sbscommand = "sbs -b {0} -c armv5 -c armv5.test_bv_1 -c armv5.test_bv_2 -c armv5.test_bv_3 -f- --configpath=test/smoke_suite/test_resources/bv/config/variants".format(bldinf) |
|
591 | 314 |
|
315 |
t.id = "56a" |
|
316 |
t.description = """Build variant and invariant components. |
|
317 |
In this default mode of operation, all components build for the non-product armv5 config whereas |
|
318 |
only variant components build for the armv5.* bv configs.""" |
|
319 |
t.name = "featurevariant_build" |
|
641 | 320 |
|
321 |
t.command = "{0} && cat $(EPOCROOT)/epoc32/build/{1}/{2}".format(sbscommand, BldInfFile.outputPathFragment(bldinf), "createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1.vmap.cmdfile") |
|
591 | 322 |
t.targets = preBuiltTargets + invariantTargets + variantTargetsGeneric + variantTargetsDefaultTree + variantTargetsProductTrees |
641 | 323 |
t.addbuildtargets(bldinf, |
591 | 324 |
invariantBuildTargets + variantBuildTargetsGeneric + variantBuildTargetsDefaultTree + variantBuildTargetsProductTrees |
325 |
) |
|
641 | 326 |
|
591 | 327 |
# Test that static libs are linked from the invariant place. |
328 |
t.mustmatch = [ |
|
329 |
"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib", |
|
641 | 330 |
"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib", |
331 |
"\s*-s.*variant1/CreateStaticDLL_variant1.cpp", |
|
332 |
"\s*-s.*variant1/test_createvmap01.cpp", |
|
333 |
"\s*-s.*variant1/test_createvmap02.cpp", |
|
334 |
"\s*-s.*variant1/test_createvmap03.cpp", |
|
335 |
"\s*-s.*variant1/test_createvmap04.cpp", |
|
336 |
"\s*-s.*variant1/test_createvmap05.cpp", |
|
337 |
"\s*-s.*variant1/test_createvmap06.cpp", |
|
338 |
"\s*-s.*variant1/test_createvmap07.cpp", |
|
339 |
"\s*-s.*variant1/test_createvmap08.cpp", |
|
340 |
"\s*-s.*variant1/test_createvmap09.cpp", |
|
341 |
"\s*-s.*variant1/test_createvmap10.cpp", |
|
342 |
"\s*-s.*variant1/test_createvmap11.cpp", |
|
343 |
"\s*-s.*variant1/test_createvmap12.cpp", |
|
344 |
"\s*-s.*variant1/test_createvmap13.cpp", |
|
345 |
"\s*-s.*variant1/test_createvmap14.cpp", |
|
346 |
"\s*-s.*variant1/test_createvmap15.cpp", |
|
347 |
"\s*-s.*variant1/CreateStaticDLL_variant1.mmp" |
|
591 | 348 |
] |
349 |
t.run() |
|
641 | 350 |
|
351 |
||
591 | 352 |
|
353 |
t.id = "56b" |
|
354 |
t.description = """Build variant and invariant components using an os_properties.xml that sets FEATUREVARIANTSAFE=1. |
|
355 |
With FEATUREVARIANTSAFE only invariant components build for the non-product armv5 config and |
|
356 |
only variant components build for the armv5.* bv configs.""" |
|
357 |
t.name = "featurevariant_build_featurevariantsafe" |
|
358 |
t.command = sbscommand + " --configpath=test/smoke_suite/test_resources/bv/config/properties" |
|
359 |
t.targets = preBuiltTargets + invariantTargets + variantTargetsGeneric + variantTargetsProductTrees |
|
360 |
t.addbuildtargets('smoke_suite/test_resources/bv/bld.inf', |
|
361 |
invariantBuildTargets + variantBuildTargetsGeneric + variantBuildTargetsProductTrees |
|
362 |
) |
|
363 |
t.antitargets = variantTargetsDefaultTree |
|
364 |
t.addbuildantitargets('smoke_suite/test_resources/bv/bld.inf', |
|
365 |
variantBuildTargetsDefaultTree |
|
366 |
) |
|
367 |
# Test that static libs are linked from the invariant place. |
|
368 |
t.mustmatch = [ |
|
369 |
"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib", |
|
370 |
"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib" |
|
371 |
] |
|
372 |
t.run() |
|
373 |
||
641 | 374 |
|
591 | 375 |
|
376 |
# tests for the createvmap script |
|
377 |
createvmap = "python $(SBS_HOME)/bin/createvmap.py" |
|
378 |
vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap" |
|
379 |
vmap = " -o " + vmapfile |
|
380 |
||
381 |
if 'SBS_BVCPP' in os.environ: |
|
382 |
bvcpp = " -c " + os.environ['SBS_BVCPP'].replace('\\','/') |
|
383 |
else: |
|
384 |
bvcpp = " -c $(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp" |
|
385 |
if t.onWindows: |
|
386 |
bvcpp += ".exe" |
|
387 |
||
388 |
bvdata = "$(SBS_HOME)/test/smoke_suite/test_resources/bv" |
|
389 |
||
390 |
preinc = " -p " + bvdata + "/var1/var1.h" |
|
391 |
listA = " -f " + bvdata + "/listA.txt" |
|
392 |
listB = " -f " + bvdata + "/listB.txt" |
|
393 |
listC = " -f " + bvdata + "/listC.txt" |
|
394 |
srcWith = " -s " + bvdata + "/with_macros.cpp" |
|
395 |
srcWithout = " -s " + bvdata + "/without_macros.cpp" |
|
396 |
badSrc = " -s " + bvdata + "/with_errors.cpp" |
|
397 |
||
398 |
t.id = "56c" |
|
399 |
t.name = "createvmap exits with an error" |
|
400 |
t.usebash = True |
|
401 |
t.command = createvmap |
|
402 |
t.returncode = 1 |
|
403 |
t.targets = [] |
|
404 |
t.mustmatch = [] |
|
405 |
t.run() |
|
406 |
||
407 |
||
408 |
t.id = "56d" |
|
409 |
t.name = "createvmap shows cpp errors" |
|
410 |
t.usebash = True |
|
411 |
t.command = createvmap + vmap + bvcpp + preinc + listA + badSrc |
|
412 |
t.returncode = 1 |
|
413 |
t.targets = [] |
|
414 |
t.mustmatch = ["#error this code is broken"] |
|
415 |
t.run() |
|
416 |
||
417 |
||
418 |
t.id = "56e" |
|
419 |
t.name = "createvmap errors on missing feature list" |
|
420 |
t.usebash = True |
|
421 |
t.command = createvmap + vmap + bvcpp + preinc + listC + srcWith |
|
422 |
t.returncode = 1 |
|
423 |
t.targets = [] |
|
424 |
t.mustmatch = ["The feature list '.*listC.txt' does not exist"] |
|
425 |
t.run() |
|
426 |
||
427 |
||
428 |
t.id = "56f" |
|
429 |
t.name = "createvmap warns on featureless code" |
|
430 |
t.usebash = True |
|
431 |
t.command = createvmap + vmap + bvcpp + preinc + listA + srcWithout |
|
432 |
t.returncode = 0 |
|
433 |
t.targets = [vmapfile] |
|
434 |
t.mustmatch = ["warning: No feature macros were found in the source"] |
|
435 |
t.run() |
|
436 |
||
437 |
||
438 |
t.id = "56g" |
|
439 |
t.name = "createvmap creates the right vmap file" |
|
440 |
t.usebash = True |
|
441 |
t.command = createvmap + vmap + bvcpp + preinc + listA + listB + srcWith + srcWithout + " && cat " + vmapfile |
|
442 |
t.returncode = 0 |
|
443 |
t.targets = [vmapfile] |
|
444 |
t.mustmatch = ["A_1=defined", "B_1000=undefined"] |
|
445 |
t.run() |
|
641 | 446 |
|
447 |
||
448 |
# clean up test cpp files from the first test (do it noow after they are no longer needed) |
|
449 |
for tf in test_cpp_files: |
|
450 |
os.unlink(tf) |
|
591 | 451 |
|
452 |
||
453 |
# print the overall result |
|
454 |
t.id = "56" |
|
455 |
t.name = "featurevariants" |
|
456 |
t.print_result() |
|
457 |
return t |