author | david.stone@nokia.com |
Wed, 09 Dec 2009 14:00:42 +0000 | |
branch | wip |
changeset 64 | 48417ae3ae38 |
parent 20 | d1f6767eec1a |
child 347 | 018461a64038 |
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 |
|
5 | 18 |
import os |
3 | 19 |
|
20 |
def run(): |
|
21 |
t = SmokeTest() |
|
22 |
||
23 |
# tests for building feature variants |
|
24 |
t.id = "56" |
|
25 |
t.name = "featurevariants" |
|
26 |
t.usebash = True |
|
27 |
t.command = "sbs -b smoke_suite/test_resources/bv/bld.inf -c armv5 " + \ |
|
28 |
"-c armv5.test_bv_1 -c armv5.test_bv_2 -c armv5.test_bv_3 " + \ |
|
29 |
"--configpath=test/smoke_suite/test_resources/bv -f-" |
|
30 |
t.targets = [ |
|
31 |
# prebuilt files |
|
32 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/dummy.lib", |
|
33 |
"$(EPOCROOT)/epoc32/release/armv5/urel/dummy.lib", |
|
34 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/debfake.lib", |
|
35 |
"$(EPOCROOT)/epoc32/release/armv5/urel/relfake.lib", |
|
36 |
||
37 |
# built files |
|
38 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll", |
|
39 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.map", |
|
40 |
"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.sym", |
|
41 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll", |
|
42 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.map", |
|
43 |
"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.sym", |
|
44 |
||
45 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll", |
|
46 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.map", |
|
47 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.vmap", |
|
48 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll", |
|
49 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.map", |
|
50 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.vmap", |
|
51 |
"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.vmap", |
|
52 |
||
53 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll", |
|
54 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.map", |
|
55 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.vmap", |
|
56 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll", |
|
57 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.map", |
|
58 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.vmap", |
|
59 |
"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.vmap", |
|
60 |
||
61 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll", |
|
62 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.map", |
|
63 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.vmap", |
|
64 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll", |
|
65 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.map", |
|
66 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.vmap", |
|
67 |
"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.vmap", |
|
68 |
||
69 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll", |
|
70 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.map", |
|
71 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.vmap", |
|
72 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll", |
|
73 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.map", |
|
74 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.vmap", |
|
75 |
"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.vmap", |
|
76 |
||
77 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll", |
|
78 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.map", |
|
79 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.vmap", |
|
80 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll", |
|
81 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.map", |
|
82 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.vmap", |
|
83 |
"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.vmap", |
|
84 |
||
85 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll", |
|
86 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.map", |
|
87 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.vmap", |
|
88 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll", |
|
89 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.map", |
|
90 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.vmap", |
|
91 |
"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.vmap", |
|
92 |
||
93 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant.dso", |
|
94 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant{000a0000}.dso", |
|
95 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1.dso", |
|
96 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1{000a0000}.dso", |
|
97 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2.dso", |
|
98 |
"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2{000a0000}.dso", |
|
99 |
||
100 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var1.rsc", |
|
101 |
"$(EPOCROOT)/epoc32/include/dummy_var1.rsg", |
|
102 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var2.rsc", |
|
103 |
"$(EPOCROOT)/epoc32/include/dummy_var2.rsg", |
|
104 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var3.rsc", |
|
105 |
"$(EPOCROOT)/epoc32/include/dummy_var3.rsg", |
|
106 |
"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_inv.rsc", |
|
107 |
"$(EPOCROOT)/epoc32/include/dummy_inv.rsg" |
|
108 |
] |
|
109 |
t.addbuildtargets('smoke_suite/test_resources/bv/bld.inf', [ |
|
110 |
"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o", |
|
111 |
"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o.d", |
|
112 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant_udeb_objects.via", |
|
113 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.def", |
|
114 |
"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.dso", |
|
115 |
"createstaticdll_invariant_dll/armv5/urel/CreateStaticDLL_invariant.o", |
|
116 |
"createstaticdll_invariant_dll/armv5/urel/CreateStaticDLL_invariant.o.d", |
|
117 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant_urel_objects.via", |
|
118 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.def", |
|
119 |
"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.dso", |
|
120 |
||
121 |
"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp", |
|
122 |
"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp.d", |
|
123 |
"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp", |
|
124 |
"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp.d", |
|
125 |
"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp", |
|
126 |
"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp.d", |
|
127 |
"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp", |
|
128 |
"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp.d", |
|
129 |
||
130 |
||
131 |
"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o", |
|
132 |
"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o.d", |
|
133 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1_udeb_objects.via", |
|
134 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.def", |
|
135 |
"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.dso", |
|
136 |
"createstaticdll_variant1_dll/armv5.one/urel/CreateStaticDLL_variant1.o", |
|
137 |
"createstaticdll_variant1_dll/armv5.one/urel/CreateStaticDLL_variant1.o.d", |
|
138 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1_urel_objects.via", |
|
139 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1{000a0000}.def", |
|
140 |
"createstaticdll_variant1_dll/armv5.one/urel/createstaticdll_variant1{000a0000}.dso", |
|
141 |
||
142 |
"createstaticdll_variant2_dll/armv5.one/udeb/CreateStaticDLL_variant2.o", |
|
143 |
"createstaticdll_variant2_dll/armv5.one/udeb/CreateStaticDLL_variant2.o.d", |
|
144 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2_udeb_objects.via", |
|
145 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2{000a0000}.def", |
|
146 |
"createstaticdll_variant2_dll/armv5.one/udeb/createstaticdll_variant2{000a0000}.dso", |
|
147 |
"createstaticdll_variant2_dll/armv5.one/urel/CreateStaticDLL_variant2.o", |
|
148 |
"createstaticdll_variant2_dll/armv5.one/urel/CreateStaticDLL_variant2.o.d", |
|
149 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2_urel_objects.via", |
|
150 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2{000a0000}.def", |
|
151 |
"createstaticdll_variant2_dll/armv5.one/urel/createstaticdll_variant2{000a0000}.dso", |
|
152 |
||
153 |
"createexe_variant3_exe/armv5.one/udeb/CreateEXE_variant3.o", |
|
154 |
"createexe_variant3_exe/armv5.one/udeb/CreateEXE_variant3.o.d", |
|
155 |
"createexe_variant3_exe/armv5.one/udeb/createexe_variant3_udeb_objects.via", |
|
156 |
"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o", |
|
157 |
"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o.d", |
|
158 |
"createexe_variant3_exe/armv5.one/urel/createexe_variant3_urel_objects.via", |
|
159 |
||
160 |
||
161 |
"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o", |
|
162 |
"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o.d", |
|
163 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1_udeb_objects.via", |
|
164 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.def", |
|
165 |
"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.dso", |
|
166 |
"createstaticdll_variant1_dll/armv5.two/urel/CreateStaticDLL_variant1.o", |
|
167 |
"createstaticdll_variant1_dll/armv5.two/urel/CreateStaticDLL_variant1.o.d", |
|
168 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1_urel_objects.via", |
|
169 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1{000a0000}.def", |
|
170 |
"createstaticdll_variant1_dll/armv5.two/urel/createstaticdll_variant1{000a0000}.dso", |
|
171 |
||
172 |
"createstaticdll_variant2_dll/armv5.two/udeb/CreateStaticDLL_variant2.o", |
|
173 |
"createstaticdll_variant2_dll/armv5.two/udeb/CreateStaticDLL_variant2.o.d", |
|
174 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2_udeb_objects.via", |
|
175 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2{000a0000}.def", |
|
176 |
"createstaticdll_variant2_dll/armv5.two/udeb/createstaticdll_variant2{000a0000}.dso", |
|
177 |
"createstaticdll_variant2_dll/armv5.two/urel/CreateStaticDLL_variant2.o", |
|
178 |
"createstaticdll_variant2_dll/armv5.two/urel/CreateStaticDLL_variant2.o.d", |
|
179 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2_urel_objects.via", |
|
180 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2{000a0000}.def", |
|
181 |
"createstaticdll_variant2_dll/armv5.two/urel/createstaticdll_variant2{000a0000}.dso", |
|
182 |
||
183 |
"createexe_variant3_exe/armv5.two/udeb/CreateEXE_variant3.o", |
|
184 |
"createexe_variant3_exe/armv5.two/udeb/CreateEXE_variant3.o.d", |
|
185 |
"createexe_variant3_exe/armv5.two/udeb/createexe_variant3_udeb_objects.via", |
|
186 |
"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o", |
|
187 |
"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o.d", |
|
188 |
"createexe_variant3_exe/armv5.two/urel/createexe_variant3_urel_objects.via", |
|
189 |
||
190 |
||
191 |
"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o", |
|
192 |
"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o.d", |
|
193 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1_udeb_objects.via", |
|
194 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.def", |
|
195 |
"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.dso", |
|
196 |
"createstaticdll_variant1_dll/armv5.three/urel/CreateStaticDLL_variant1.o", |
|
197 |
"createstaticdll_variant1_dll/armv5.three/urel/CreateStaticDLL_variant1.o.d", |
|
198 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1_urel_objects.via", |
|
199 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1{000a0000}.def", |
|
200 |
"createstaticdll_variant1_dll/armv5.three/urel/createstaticdll_variant1{000a0000}.dso", |
|
201 |
||
202 |
"createstaticdll_variant2_dll/armv5.three/udeb/CreateStaticDLL_variant2.o", |
|
203 |
"createstaticdll_variant2_dll/armv5.three/udeb/CreateStaticDLL_variant2.o.d", |
|
204 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2_udeb_objects.via", |
|
205 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2{000a0000}.def", |
|
206 |
"createstaticdll_variant2_dll/armv5.three/udeb/createstaticdll_variant2{000a0000}.dso", |
|
207 |
"createstaticdll_variant2_dll/armv5.three/urel/CreateStaticDLL_variant2.o", |
|
208 |
"createstaticdll_variant2_dll/armv5.three/urel/CreateStaticDLL_variant2.o.d", |
|
209 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2_urel_objects.via", |
|
210 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2{000a0000}.def", |
|
211 |
"createstaticdll_variant2_dll/armv5.three/urel/createstaticdll_variant2{000a0000}.dso", |
|
212 |
||
213 |
"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o", |
|
214 |
"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o.d", |
|
215 |
"createexe_variant3_exe/armv5.three/udeb/createexe_variant3_udeb_objects.via", |
|
216 |
"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o", |
|
217 |
"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o.d", |
|
218 |
"createexe_variant3_exe/armv5.three/urel/createexe_variant3_urel_objects.via" |
|
219 |
]) |
|
220 |
# Test that static libs are linked from the invariant place. |
|
221 |
t.mustmatch = [ |
|
222 |
"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib", |
|
223 |
"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib" |
|
224 |
] |
|
225 |
t.run() |
|
226 |
||
227 |
||
228 |
# tests for the createvmap script |
|
229 |
createvmap = "python $(SBS_HOME)/bin/createvmap.py" |
|
230 |
vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap" |
|
231 |
vmap = " -o " + vmapfile |
|
5 | 232 |
|
233 |
if 'SBS_BVCPP' in os.environ: |
|
20
d1f6767eec1a
Tests working with separate test-epocroot.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
5
diff
changeset
|
234 |
bvcpp = " -c " + os.environ['SBS_BVCPP'].replace('\\','/') |
5 | 235 |
else: |
236 |
bvcpp = " -c $(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp" |
|
237 |
if t.onWindows: |
|
238 |
bvcpp += ".exe" |
|
3 | 239 |
|
240 |
bvdata = "$(SBS_HOME)/test/smoke_suite/test_resources/bv" |
|
241 |
||
242 |
preinc = " -p " + bvdata + "/var1/var1.h" |
|
243 |
listA = " -f " + bvdata + "/listA.txt" |
|
244 |
listB = " -f " + bvdata + "/listB.txt" |
|
245 |
listC = " -f " + bvdata + "/listC.txt" |
|
246 |
srcWith = " -s " + bvdata + "/with_macros.cpp" |
|
247 |
srcWithout = " -s " + bvdata + "/without_macros.cpp" |
|
248 |
badSrc = " -s " + bvdata + "/with_errors.cpp" |
|
249 |
||
250 |
t.id = "56a" |
|
251 |
t.name = "createvmap exits with an error" |
|
252 |
t.usebash = True |
|
253 |
t.command = createvmap |
|
254 |
t.returncode = 1 |
|
255 |
t.targets = [] |
|
256 |
t.mustmatch = [] |
|
257 |
t.run() |
|
258 |
||
259 |
||
260 |
t.id = "56b" |
|
261 |
t.name = "createvmap shows cpp errors" |
|
262 |
t.usebash = True |
|
263 |
t.command = createvmap + vmap + bvcpp + preinc + listA + badSrc |
|
264 |
t.returncode = 1 |
|
265 |
t.targets = [] |
|
266 |
t.mustmatch = ["#error this code is broken"] |
|
267 |
t.run() |
|
268 |
||
269 |
||
270 |
t.id = "56c" |
|
271 |
t.name = "createvmap errors on missing feature list" |
|
272 |
t.usebash = True |
|
273 |
t.command = createvmap + vmap + bvcpp + preinc + listC + srcWith |
|
274 |
t.returncode = 1 |
|
275 |
t.targets = [] |
|
276 |
t.mustmatch = ["The feature list '.*listC.txt' does not exist"] |
|
277 |
t.run() |
|
278 |
||
279 |
||
280 |
t.id = "56d" |
|
281 |
t.name = "createvmap warns on featureless code" |
|
282 |
t.usebash = True |
|
283 |
t.command = createvmap + vmap + bvcpp + preinc + listA + srcWithout |
|
284 |
t.returncode = 0 |
|
285 |
t.targets = [vmapfile] |
|
286 |
t.mustmatch = ["warning: No feature macros were found in the source"] |
|
287 |
t.run() |
|
288 |
||
289 |
||
290 |
t.id = "56e" |
|
291 |
t.name = "createvmap creates the right vmap file" |
|
292 |
t.usebash = True |
|
293 |
t.command = createvmap + vmap + bvcpp + preinc + listA + listB + srcWith + srcWithout + " && cat " + vmapfile |
|
294 |
t.returncode = 0 |
|
295 |
t.targets = [vmapfile] |
|
296 |
t.mustmatch = ["A_1=defined", "B_1000=undefined"] |
|
297 |
t.run() |
|
298 |
||
299 |
||
300 |
# print the overall result |
|
301 |
t.id = "56" |
|
302 |
t.name = "featurevariants" |
|
303 |
t.print_result() |
|
304 |
return t |