author | Bob Rosenberg <bob.rosenberg@nokia.com> |
Mon, 20 Sep 2010 10:55:43 +0100 | |
changeset 658 | cab9da9b71bb |
parent 628 | 7c4a911dc066 |
child 645 | b8d81fa19e7d |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : ats.ant.xml |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
217 | 23 |
<!--* @package testing --> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
24 |
<project name="_testing.ats" xmlns:hlm="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
25 |
<description> |
217 | 26 |
ATS testing targets. |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
</description> |
217 | 28 |
|
628 | 29 |
<!--* @property ats.enabled |
217 | 30 |
Value must be set to execute ats-test target. |
31 |
@type boolean |
|
32 |
@editable required |
|
33 |
@scope public |
|
628 | 34 |
@since 11.0 |
35 |
--> |
|
36 |
||
37 |
<!--* @property internal.ats.enabled |
|
38 |
Set to run ats targests if ats.enabled set to true. |
|
39 |
@type boolean |
|
40 |
@scope private |
|
217 | 41 |
--> |
42 |
||
628 | 43 |
<!--* @property enabled.ats |
44 |
Value must be set to execute ats-test target. - deprecated: Start using ats.enabled property. |
|
45 |
@type boolean |
|
46 |
@editable required |
|
47 |
@scope public |
|
48 |
@deprecated since 11.0 |
|
49 |
--> |
|
50 |
||
51 |
<!--* @property aste.enabled |
|
217 | 52 |
Value must be set to execute ats-aste target. |
53 |
@type boolean |
|
54 |
@editable required |
|
55 |
@scope public |
|
628 | 56 |
@since 11.0 |
57 |
--> |
|
58 |
||
59 |
<!--* @property internal.aste.enabled |
|
60 |
Set to run aste targets if aste.enabled set to true. |
|
61 |
@type boolean |
|
62 |
@scope private |
|
63 |
--> |
|
64 |
||
65 |
<!--* @property enabled.aste |
|
66 |
Value must be set to execute ats-aste target. - deprecated: Start using aste.enabled property. |
|
67 |
@type boolean |
|
68 |
@editable required |
|
69 |
@scope public |
|
70 |
@deprecated since 11.0 |
|
71 |
--> |
|
72 |
||
73 |
<!--* @property ats4.enabled |
|
74 |
Value must be set to execute ats4 features. |
|
75 |
@type boolean |
|
76 |
@editable required |
|
77 |
@scope public |
|
78 |
@since 11.0 |
|
79 |
--> |
|
80 |
||
81 |
<!--* @property internal.ats4.enabled |
|
82 |
Set if ats4.enabled is set to true. To run ats4 dependent targets. |
|
83 |
@type boolean |
|
84 |
@scope private |
|
217 | 85 |
--> |
86 |
||
87 |
<!--* @property ats.product.name |
|
88 |
Name of the product to be tested. For example: "PRODUCT" |
|
89 |
@type string |
|
90 |
@editable required |
|
91 |
@scope public |
|
92 |
--> |
|
93 |
||
94 |
<!--* @property ats.drop.location |
|
628 | 95 |
Server location (UNC path) to save the drop file, before sending to the ATS. For example: \\trwsem00\some_folder\. In case, ``ats.script.type`` is set to "import", ATS doesn't need to have access to ats.drop.location, its value can be any local folder on build machine, for example c:\temp (no network share needed). |
217 | 96 |
@type string |
97 |
@editable required |
|
98 |
@scope public |
|
99 |
--> |
|
100 |
||
101 |
<!--* @property ats.server |
|
102 |
For example: "4fio00105" or "catstresrv001.cats.noklab.net:80". Default server port is "8080", but it is not allowed between intra and Noklab. Because of this we need to define server port as 80. The host can be different depending on site and/or product. |
|
103 |
@type string |
|
104 |
@editable required |
|
105 |
@scope public |
|
106 |
--> |
|
107 |
||
108 |
<!--* @property ats.password |
|
109 |
Password for ATS. This password might be different from NOE or HTTP/UNIX password. |
|
110 |
@type string |
|
111 |
@editable required |
|
112 |
@scope public |
|
113 |
--> |
|
114 |
||
115 |
<!--* @property ats.username |
|
116 |
Username for ATS server. This is NOT the NOE or HTTP/UNIX username. |
|
117 |
@type string |
|
118 |
@editable required |
|
119 |
@scope public |
|
120 |
--> |
|
121 |
||
588 | 122 |
<!--* @property ats.create.singledrop.file |
628 | 123 |
defined as true if single drop file is required. Define as false or not present for multiple drop files. - deprecated: Start using ats.singledrop.enabled |
124 |
@type boolean |
|
125 |
@editable required |
|
126 |
@scope public |
|
127 |
@deprecated since 11.0 |
|
128 |
--> |
|
129 |
||
130 |
<!--* @property ats.singledrop.enabled |
|
588 | 131 |
defined as true if single drop file is required. Define as false or not present for multiple drop files. |
132 |
@type boolean |
|
133 |
@editable required |
|
134 |
@scope public |
|
628 | 135 |
@since 11.0 |
136 |
--> |
|
137 |
||
138 |
<!--* @property internal.ats.singledrop.enabled |
|
139 |
set to true if ats.singledrop.enabled set to true. |
|
140 |
@type boolean |
|
141 |
@scope private |
|
142 |
--> |
|
143 |
||
144 |
<!--* @property ats.emulator.enabled |
|
145 |
Value must be set to true to run ats with emulator. |
|
146 |
@type boolean |
|
147 |
@editable required |
|
148 |
@scope public |
|
149 |
@since 11.0 |
|
150 |
--> |
|
151 |
||
152 |
<!--* @property internal.ats.emulator.enabled |
|
153 |
Set to run emulator targets if ats.emulator.enabled is set to true. |
|
154 |
@type boolean |
|
155 |
@scope private |
|
156 |
--> |
|
157 |
||
158 |
<!--* @property ats.emulator.enable |
|
159 |
Value must be set to true to run ats with emulator. - deprecated: Start using ats.emulator.enabled property. |
|
160 |
@type boolean |
|
161 |
@editable required |
|
162 |
@scope public |
|
163 |
@deprecated since 11.0 |
|
164 |
--> |
|
165 |
||
166 |
<!--* @property matti.enabled |
|
167 |
Value must be set to true to enable testing with matti. |
|
168 |
@type boolean |
|
169 |
@editable required |
|
170 |
@scope public |
|
171 |
@since 11.0 |
|
172 |
--> |
|
173 |
||
174 |
<!--* @property internal.matti.enabled |
|
175 |
Set to run matti targets if matti.enabled is set to true. |
|
176 |
@type boolean |
|
177 |
@scope private |
|
178 |
--> |
|
179 |
||
180 |
<!--* @property ats.delta.enabled |
|
181 |
Should be true so only ADOs changed during do-prep-work-area are tested by ATS. |
|
182 |
@type boolean |
|
183 |
@editable required |
|
184 |
@scope public |
|
185 |
@since 11.0 |
|
186 |
--> |
|
187 |
||
188 |
<!--* @property ats.delta.enabled |
|
189 |
Set to run ats delta target if ats.delta.enabled set to true. |
|
190 |
@type boolean |
|
191 |
@scope private |
|
588 | 192 |
--> |
217 | 193 |
|
628 | 194 |
<!--* @property ats.disable.java.importer |
195 |
To disable java importer for ats. - deprecated: Start using ats.java.importer.enabled property. |
|
196 |
@type boolean |
|
197 |
@editable required |
|
198 |
@scope public |
|
199 |
@deprecated since 11.0 |
|
200 |
--> |
|
201 |
||
202 |
<!-- To disable java importer for ats |
|
203 |
@type boolean |
|
204 |
@editable required |
|
205 |
@scope public |
|
206 |
@since 11.0 |
|
207 |
--> |
|
208 |
<property name="ats.java.importer.enabled" value="true"/> |
|
209 |
||
210 |
<!--* @property ats.disable.iconfig |
|
211 |
To enable/disable iconfig with ats. - deprecated: Start using ats.iconfig.enabled property. |
|
212 |
@type boolean |
|
213 |
@editable required |
|
214 |
@scope public |
|
215 |
@deprecated since 11.0 |
|
216 |
--> |
|
217 |
||
218 |
<!-- To enable/disable iconfig with ats |
|
219 |
@type boolean |
|
220 |
@editable required |
|
221 |
@scope public |
|
222 |
@since 11.0 |
|
223 |
--> |
|
224 |
<property name="ats.iconfig.enabled" value="true"/> |
|
225 |
||
226 |
<!--* @property internal.ats.iconfig.enabled |
|
227 |
To run python if ats.iconfig.enabled is enable/disable. |
|
228 |
@type boolean |
|
229 |
@scope private |
|
230 |
--> |
|
231 |
||
232 |
<!--* For sending drop package file to ATS/ASTE after its creation. |
|
233 |
@type boolean |
|
234 |
@scope public |
|
235 |
@since 11.0 |
|
236 |
--> |
|
237 |
<property name="ats.upload.enabled" value="true"/> |
|
238 |
||
239 |
<!--* @property internal.ats.upload.enabled |
|
240 |
Set to run sending the test drop targets if ats.upload.enabled is set to true. |
|
241 |
@type boolean |
|
242 |
@scope private |
|
243 |
--> |
|
244 |
||
245 |
<!--* @property skip.ats.sending |
|
246 |
For sending drop package file to ATS/ASTE after its creation. - deprecated: Start using ats.upload.enabled property. |
|
247 |
@type boolean |
|
248 |
@editable required |
|
249 |
@scope public |
|
250 |
@deprecated since 11.0 |
|
251 |
--> |
|
252 |
||
253 |
<!-- Is it required to send ats test drop to server--> |
|
254 |
<condition property="internal.ats.upload.enabled"> |
|
255 |
<and> |
|
256 |
<not> |
|
257 |
<isfalse value="${ats.upload.enabled}" /> |
|
258 |
</not> |
|
259 |
<not> |
|
260 |
<isset property="skip.ats.sending"/> |
|
261 |
</not> |
|
262 |
</and> |
|
263 |
</condition> |
|
264 |
||
265 |
<!-- Check is the ATS enabled --> |
|
266 |
<condition property="internal.ats.enabled"> |
|
267 |
<or> |
|
268 |
<istrue value="${ats.enabled}" /> |
|
269 |
<istrue value="${enabled.ats}"/> |
|
270 |
</or> |
|
271 |
</condition> |
|
272 |
||
273 |
<!-- Check is the aste enabled --> |
|
274 |
<condition property="internal.aste.enabled"> |
|
275 |
<or> |
|
276 |
<istrue value="${aste.enabled}" /> |
|
277 |
<isset property="enabled.aste"/> |
|
278 |
</or> |
|
279 |
</condition> |
|
280 |
||
281 |
<!-- Check is the ast4 enabled --> |
|
282 |
<condition property="internal.ats4.enabled" value="true" else="false"> |
|
283 |
<istrue value="${ats4.enabled}" /> |
|
284 |
</condition> |
|
285 |
||
286 |
<!-- Check is the ats emulator enabled --> |
|
287 |
<condition property="internal.ats.emulator.enabled"> |
|
288 |
<or> |
|
289 |
<istrue value="${ats.emulator.enabled}" /> |
|
290 |
<istrue value="${ats.emulator.enable}" /> |
|
291 |
</or> |
|
292 |
</condition> |
|
293 |
||
294 |
<!-- Check is the ats matti enabled --> |
|
295 |
<condition property="internal.matti.enabled"> |
|
296 |
<istrue value="${matti.enabled}" /> |
|
297 |
</condition> |
|
298 |
||
299 |
<!-- Check is the ats ats delta enabled --> |
|
300 |
<condition property="internal.ats.delta.enabled"> |
|
301 |
<istrue value="${ats.delta.enabled}" /> |
|
302 |
</condition> |
|
303 |
||
304 |
<!-- Check is the ats ats delta enabled --> |
|
305 |
<condition property="internal.ats.iconfig.enabled" value="true" else="false"> |
|
306 |
<and> |
|
307 |
<not> |
|
308 |
<isfalse value="${ats.iconfig.enabled}" /> |
|
309 |
</not> |
|
310 |
<not> |
|
311 |
<isset property="ats.disable.iconfig" /> |
|
312 |
</not> |
|
313 |
</and> |
|
314 |
</condition> |
|
315 |
||
316 |
<!-- Check is the ats ats single drop file enabled --> |
|
317 |
<condition property="internal.ats.singledrop.enabled"> |
|
318 |
<or> |
|
319 |
<istrue value="${ats.singledrop.enabled}" /> |
|
320 |
<istrue value="${ats.create.singledrop.file}" /> |
|
321 |
</or> |
|
322 |
</condition> |
|
323 |
||
324 |
||
325 |
||
326 |
<!-- --> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
327 |
<fileset id="reference.ats.flash.images" dir="${release.images.dir}"> |
217 | 328 |
<include name="**/*.fpsx" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
329 |
<include name="**/*rnd.C00" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
330 |
<include name="**/*rnd.V01" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
331 |
</fileset> |
179 | 332 |
|
587 | 333 |
<!--* @property ats.flashfiles.minlimit |
334 |
Limit of minimum number of flash files to execute ats-test target, otherwise ATSDrop.zip will not be generated. Default value is "2" files. |
|
217 | 335 |
@type string |
336 |
@scope public |
|
337 |
--> |
|
587 | 338 |
<condition property="ats.flashfiles.minlimit" value="0" else="2"> |
628 | 339 |
<or> |
340 |
<istrue value="${ats.emulator.enabled}" /> |
|
341 |
<istrue value="${ats.emulator.enable}" /> |
|
342 |
</or> |
|
587 | 343 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
344 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
345 |
<fileset id="reference.ats.sis.images" dir="${ats.sis.images.dir}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
346 |
<include name="**/*.sis" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
347 |
</fileset> |
217 | 348 |
<!-- Limit of minimum number of sis files to execute matti-test target, otherwise MATTI-drop.zip will not be generated. Default value is "1" files. |
349 |
@type string |
|
350 |
@scope public |
|
351 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
352 |
<property name="ats.sisfiles.minlimit" value="1" /> |
179 | 353 |
|
628 | 354 |
<property name="drop.file.counter" value="0" /> |
217 | 355 |
|
587 | 356 |
<!-- The target creates ATSDrop.zip file which also includes test.xml file; and sends the drop to ATS. |
588 | 357 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
358 |
The layer definition, in system definition file, for tsrc directory should look like: |
588 | 359 |
|
360 |
<layer name="name_test_layer"> |
|
361 |
<module name="module_name"> |
|
362 |
<unit id="unit_id" name="unti_name" bldFile="path_of_tsrc_folder_to_be_built" filter=""/> |
|
363 |
</module> |
|
364 |
</layer> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
365 |
--> |
628 | 366 |
<target name="ats-test" if="internal.ats.enabled"> |
179 | 367 |
<mkdir dir="${test.log.dir}"/> |
628 | 368 |
<runtarget target="load-property-from-cache-file" /> |
179 | 369 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
628 | 370 |
<trycatch reference="exception"> |
179 | 371 |
<try> |
372 |
<runtarget target="ats-delta"/> |
|
373 |
<antcall target="create-canonical-sysdef-file" inheritRefs="true"> |
|
374 |
<reference refid="ats.system.definition.files" torefid="system.definition.files" /> |
|
375 |
</antcall> |
|
376 |
<runtarget target="copy-mon-sym" /> |
|
377 |
<runtarget target="ats-create-drop" /> |
|
378 |
</try> |
|
379 |
<catch> |
|
628 | 380 |
<echo>Error: ${toString:exception}</echo> |
179 | 381 |
</catch> |
382 |
</trycatch> |
|
383 |
<hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_ats.log" append="false"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
384 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
385 |
<hlm:textmetadatainput> |
179 | 386 |
<fileset casesensitive="false" file="${test.log.dir}/${build.id}_ats.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
387 |
<metadatafilterset refid="filterset.ats" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
388 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
389 |
</hlm:metadatarecord> |
628 | 390 |
<hlm:generateBuildStatus file="${test.log.dir}/${build.id}_ats.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
391 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
392 |
|
179 | 393 |
<!-- The target creates the ATSdrop.zip file including test.xml for ATS ASTE tests. This target is executable.--> |
628 | 394 |
<target name="ats-aste" if="internal.aste.enabled"> |
179 | 395 |
<mkdir dir="${test.log.dir}"/> |
628 | 396 |
<runtarget target="load-property-from-cache-file" /> |
179 | 397 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
398 |
<runtarget target="do-ats-aste" /> |
179 | 399 |
<hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_aste.log" append="false"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
400 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
401 |
<hlm:textmetadatainput> |
179 | 402 |
<fileset casesensitive="false" file="${test.log.dir}/${build.id}_aste.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
403 |
<metadatafilterset refid="filterset.aste" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
404 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
405 |
</hlm:metadatarecord> |
628 | 406 |
<hlm:generateBuildStatus file="${test.log.dir}/${build.id}_aste.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
407 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
408 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
409 |
<!-- The target creates the MATTI_drop.zip file including test.xml for MATTI tests. This target is executable.--> |
628 | 410 |
<target name="matti-test" if="internal.matti.enabled"> |
179 | 411 |
<mkdir dir="${test.log.dir}"/> |
628 | 412 |
<runtarget target="load-property-from-cache-file" /> |
179 | 413 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
414 |
<runtarget target="do-ats-matti" /> |
179 | 415 |
<hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_matti.log" append="false"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
416 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
417 |
<hlm:textmetadatainput> |
179 | 418 |
<fileset casesensitive="false" file="${test.log.dir}/${build.id}_matti.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
419 |
<metadatafilterset refid="filterset.matti" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
420 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
421 |
</hlm:metadatarecord> |
628 | 422 |
<hlm:generateBuildStatus file="${test.log.dir}/${build.id}_matti.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
423 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
424 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
425 |
<!-- Sends drop file to ATS/ASTE. Please see `ats-test` for description. --> |
628 | 426 |
<target name="do-ats-test" depends="ats-username, ats-password" if="internal.ats.upload.enabled"> |
179 | 427 |
<property name="ats.sending" value="true" /> |
428 |
<!-- Make the drop file visible to ATS. --> |
|
429 |
||
430 |
<var name="ats.drop.location.file" unset="true"/> |
|
431 |
<if> |
|
432 |
<isset property="ats.drop.location" /> |
|
433 |
<then> |
|
434 |
<mkdir dir="${ats.drop.location}" /> |
|
435 |
<property name="ats.drop.location.file" location="${ats.drop.location}/${ats.drop.file}" /> |
|
436 |
<copy file="${build.output.dir}/ats/${ats.drop.file}" tofile="${ats.drop.location.file}" /> |
|
437 |
</then> |
|
438 |
<else> |
|
439 |
<property name="ats.drop.location.file" location="${build.output.dir}/ats/${ats.drop.file}" /> |
|
440 |
</else> |
|
441 |
</if> |
|
628 | 442 |
|
443 |
<!-- Notify ATS about the drop. --> |
|
444 |
<if> |
|
445 |
<istrue value="${internal.ats4.enabled}" /> |
|
446 |
<then> |
|
447 |
<hlm:python failonerror="true"> |
|
179 | 448 |
version = r'${java.version}' |
449 |
if '1.6.0' in version: |
|
450 |
assert int(version.split('_')[1]) > 6, 'Java 6 u7 required' |
|
628 | 451 |
</hlm:python> |
452 |
<condition property="ats.import.arg" value="-import" else=""> |
|
453 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
454 |
</condition> |
|
455 |
<condition property="ats4.libs" value="${helium.dir}/extensions/nokia/external/ats4" else="${helium.dir}/external/antlibs"> |
|
456 |
<available type="dir" file="${helium.dir}/extensions/nokia/external/ats4"/> |
|
457 |
</condition> |
|
458 |
<java classname="com.nokia.ats.util.server.CommandLineClient" fork="true" maxmemory="1024m" failonerror="true"> |
|
459 |
<classpath> |
|
460 |
<pathelement path="${java.class.path}"/> |
|
461 |
<fileset dir="${ats4.libs}" includes="*.jar"/> |
|
462 |
</classpath> |
|
463 |
<arg line="-url http://${ats.server}/ServerService -path ${ats.drop.location.file} ${ats.import.arg}"/> |
|
464 |
</java> |
|
465 |
</then> |
|
466 |
<else> |
|
467 |
<if> |
|
468 |
<and> |
|
469 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
470 |
<available classname="com.nokia.taitei.util.TestDropImporter"/> |
|
471 |
<not> |
|
472 |
<or> |
|
473 |
<istrue value="${ats.disable.java.importer}" /> |
|
474 |
<isfalse value="${ats.java.importer.enabled}" /> |
|
475 |
</or> |
|
476 |
</not> |
|
477 |
</and> |
|
478 |
<then> |
|
479 |
<java classname="com.nokia.taitei.util.TestDropImporter" fork="true" maxmemory="1024m" failonerror="true"> |
|
587 | 480 |
<classpath> |
481 |
<pathelement path="${java.class.path}"/> |
|
482 |
</classpath> |
|
628 | 483 |
<arg line="${ats.server} ${ats.drop.location.file} ${ats.username} ${ats.password}"/> |
587 | 484 |
</java> |
485 |
</then> |
|
486 |
<else> |
|
628 | 487 |
<condition property="ats.wsh.testrun.file" value="wshTestRunImport.vbs" else="wshTestRunX.vbs"> |
488 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
489 |
</condition> |
|
490 |
<exec executable="cscript" dir="${build.drive}/" failonerror="true"> |
|
491 |
<env key="ats3.username" value="${ats.username}" /> |
|
492 |
<env key="ats3.password" value="${ats.password}" /> |
|
493 |
<env key="ats3.host" value="${ats.server}" /> |
|
494 |
<env key="ats3.pathToDrop" value="${ats.drop.location.file}"/> |
|
495 |
<arg value="${helium.dir}/tools/testing/ats/${ats.wsh.testrun.file}" /> |
|
496 |
</exec> |
|
587 | 497 |
</else> |
628 | 498 |
</if> |
499 |
</else> |
|
500 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
501 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
502 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
503 |
<!-- The target is dependent on "ats-test", should not be called independently. The target fetches flash files location --> |
628 | 504 |
<target name="ats-set-flash-image-path" unless="internal.ats.emulator.enabled"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
505 |
<pathconvert pathsep="," property="ats.flash.images"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
506 |
<fileset refid="reference.ats.flash.images"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
507 |
</pathconvert> |
587 | 508 |
<script language="jython" setbeans="false"> |
628 | 509 |
if project.getProperty('internal.ats.iconfig.enabled') == 'true': |
587 | 510 |
import atsant |
511 |
ic = None |
|
512 |
try: |
|
588 | 513 |
ic = atsant.IConfigATS(project.getProperty('release.images.dir'), project.getProperty('ats.product.name')) |
587 | 514 |
except Exception, ex: |
515 |
print ex |
|
516 |
if ic: |
|
517 |
project.setProperty('ats.flash.images', ic.findimages()) |
|
518 |
</script> |
|
179 | 519 |
<hlm:python failonerror="true"> |
520 |
<![CDATA[ |
|
521 |
flashfilescount = len(r'${ats.flash.images}'.split(',')) |
|
522 |
mincount = int(r'${ats.flashfiles.minlimit}') |
|
588 | 523 |
if mincount > 0: |
524 |
assert r'${ats.flash.images}' != '', 'No images found in ' + r'${release.images.dir}' |
|
179 | 525 |
if flashfilescount < mincount: |
217 | 526 |
raise Exception('Not enough flash files, check reference.ats.flash.images and build.id, found: ' + r'${ats.flash.images}' + ', looking in: ' + r'${release.images.dir}') |
179 | 527 |
]]> |
528 |
</hlm:python> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
529 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
530 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
531 |
<!-- The target is dependent on "ats-test", should not be called independently. The target fetches flash files location --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
532 |
<target name="ats-set-sis-flash-image-path"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
533 |
<pathconvert pathsep="," property="ats.sis.images"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
534 |
<fileset refid="reference.ats.sis.images"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
535 |
</pathconvert> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
536 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
537 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
538 |
<!-- Sets values common for ATS, this is a dependent target and shouldn't be used as an individual target --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
539 |
<target name="ats-common"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
540 |
<property name="ats.config.file" value="" /> |
217 | 541 |
<property name="ats.specific.pkg" value="" /> |
628 | 542 |
|
217 | 543 |
<!-- Product HardWare ID (HWID) attached to ATS. By default the value of HWID is not set. |
544 |
@type string |
|
545 |
@scope public |
|
546 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
547 |
<property name="ats.product.hwid" value="" /> |
628 | 548 |
<!-- To set test commands execution time limit on ATS server, in seconds. Default value is "60". |
217 | 549 |
@type string |
550 |
@scope public |
|
551 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
552 |
<property name="ats.test.timeout" value="60" /> |
217 | 553 |
<!-- Sets ATS reports store location. Default location is "${publish.dir}/${publish.subdir}" |
554 |
@type string |
|
555 |
@scope public |
|
556 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
557 |
<property name="ats.report.location" value="${publish.dir}/${publish.subdir}" /> |
628 | 558 |
<condition property="internal.ats.diamonds.arg" value="--diamonds-build-url=http://${diamonds.host}:${diamonds.port}${diamonds.build.id}" else=""> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
559 |
<isset property="diamonds.build.url" /> |
179 | 560 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
561 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
562 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
563 |
<!-- Sets default values for the ATS (STIF and EUnit), this is a dependent target and shouldn't be used as an individual target --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
564 |
<target name="ats-set-defaults-stifeunit" depends="ats-common,lookup-email"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
565 |
<!-- Default values for the properties --> |
217 | 566 |
<!-- The property is needed if you want to get an email from ATS server after the tests are executed. There can be one to many semicolon(s) ";" separated email addresses. |
567 |
@type string |
|
568 |
@scope public |
|
569 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
570 |
<property name="ats.email.list" value="${email.from}" /> |
588 | 571 |
<!-- Value of the ats email report |
572 |
@type string |
|
573 |
@scope public |
|
574 |
--> |
|
575 |
<property name="ats.report.type" value="ATS3_REPORT" /> |
|
217 | 576 |
<!-- The default value is "data" and refers to the 'data' directory under 'tsrc' directory. |
577 |
@type string |
|
578 |
@scope public |
|
579 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
580 |
<property name="tsrc.data.dir" value="data" /> |
217 | 581 |
<!-- Modify the plan name if you have understanding of test.xml file or leave it as it is. Default value is "plan" |
582 |
@type string |
|
583 |
@scope public |
|
584 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
585 |
<property name="ats.plan.name" value="plan" /> |
217 | 586 |
<!-- Modify the test-run name if you have understanding of test.xml file or leave it as it is. Default value is a string consist of build id, product name, major and minor versions |
587 |
@type string |
|
588 |
@scope public |
|
589 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
590 |
<property name="ats.testrun.name" value="${build.id}_${ats.product.name}" /> |
217 | 591 |
<!-- CTC host, provided by CATS used to create coverage measurement reports. MON.sym files are copied to this location, for example "10.0.0.1". If not given, code coverage reports are not created |
592 |
@type string |
|
593 |
@scope public |
|
594 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
595 |
<property name="ats.ctc.host" value="" /> |
179 | 596 |
<condition property="ats.version" value="4" else="3"> |
628 | 597 |
<istrue value="${internal.ats4.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
598 |
</condition> |
628 | 599 |
<var name="ats.drop.file" value="${build.id}_ATS${ats.version}Drop${drop.file.counter}.zip" /> |
179 | 600 |
|
587 | 601 |
<!--* @property ats.target.platform |
602 |
Sets target platform for compiling test components. Default value is "armv5 urel". |
|
217 | 603 |
@type string |
604 |
@scope public |
|
605 |
--> |
|
587 | 606 |
<condition property="ats.target.platform" value="winscw urel" else="armv5 urel"> |
628 | 607 |
<or> |
608 |
<istrue value="${ats.emulator.enabled}" /> |
|
609 |
<istrue value="${ats.emulator.enable}" /> |
|
610 |
</or> |
|
587 | 611 |
</condition> |
628 | 612 |
<!-- Should be "true" if tracing is needed during the tests running on ATS. Default value is "false", the values are case-sensitive. |
613 |
@type boolean |
|
614 |
@scope public |
|
615 |
@editable required |
|
616 |
--> |
|
617 |
<property name="ats.trace.enabled" value="false"/> |
|
618 |
||
619 |
<!-- Should be "true" if coverage measurement and dynamic analysis (CTC) tool support is to be used by ATS. Default value is "false", the values are case-sensitive. |
|
620 |
@type boolean |
|
621 |
@editable required |
|
217 | 622 |
@scope public |
623 |
--> |
|
628 | 624 |
<property name="ats.ctc.enabled" value="false"/> |
625 |
||
626 |
<!--* @property internal.ats.ctc.enabled |
|
627 |
Set to run the ats ctc targets. |
|
628 |
@type boolean |
|
629 |
@scope private |
|
630 |
--> |
|
631 |
<condition property="internal.ats.ctc.enabled"> |
|
632 |
<istrue value="${ats.ctc.enabled}" /> |
|
633 |
</condition> |
|
634 |
||
635 |
<!-- Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off". |
|
636 |
@type boolean |
|
637 |
@editable required |
|
217 | 638 |
@scope public |
639 |
--> |
|
628 | 640 |
<property name="ats.multiset.enabled" value="false"/> |
641 |
||
642 |
<property name="eunitexerunner.flags" value="/E S60AppEnv /R Off" /> |
|
643 |
||
644 |
<!--* @property ats.obey.pkgfiles.rule.enabled |
|
645 |
If the property is set to "true", then the only test components which will have PKG files, will be included into the test.xml as a test-set. Which means, even if there's a test component (executable) but there's no PKG file, it should not be considered as a test component and hence not included into the test.xml as a separate test. By default the property value is false. |
|
646 |
@type boolean |
|
217 | 647 |
@scope public |
648 |
--> |
|
628 | 649 |
|
650 |
<!--* @property ats.obey.pkgfiles.rule |
|
651 |
If the property is set to "true", then the only test components which will have PKG files, will be included into the test.xml as a test-set. Which means, even if there's a test component (executable) but there's no PKG file, it should not be considered as a test component and hence not included into the test.xml as a separate test. By default the property value is false. - deprecated: Start using ats.obey.pkgfiles.rule.enabled property |
|
652 |
@type boolean |
|
217 | 653 |
@scope public |
628 | 654 |
@deprecated since 11.0 |
655 |
--> |
|
656 |
||
657 |
<!-- * @property internal.ats.obey.pkgfiles.rule.enabled |
|
658 |
If the property is set to "true", if ats.obey.pkgfiles.rule.enabled set to true. |
|
659 |
@type boolean |
|
660 |
@scope private |
|
217 | 661 |
--> |
628 | 662 |
<condition property="internal.ats.obey.pkgfiles.rule.enabled" value="true" else="false"> |
663 |
<or> |
|
664 |
<istrue value="${ats.obey.pkgfiles.rule.enabled}" /> |
|
665 |
<istrue value="${ats.obey.pkgfiles.rule}" /> |
|
666 |
</or> |
|
667 |
</condition> |
|
668 |
||
669 |
||
670 |
<fail unless="ats.product.name" message="Error: ats.product.name property not defined" /> |
|
671 |
||
672 |
<!--* @property ats.hti.enabled |
|
673 |
Set to true if ats.emulator.enabled set to true. To enable hti feature while creating ats test drop. |
|
674 |
@type boolean |
|
675 |
@scope private |
|
676 |
--> |
|
677 |
<condition property="ats.hti.enabled" value="false" else="true"> |
|
678 |
<or> |
|
679 |
<istrue value="${ats.emulator.enabled}" /> |
|
680 |
<istrue value="${ats.emulator.enable}" /> |
|
681 |
</or> |
|
587 | 682 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
683 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
684 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
685 |
<!-- Sets default values for the ASTE, this is a dependent target and shouldn't be used as an individual target --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
686 |
<target name="ats-set-defaults-aste" depends="ats-common"> |
179 | 687 |
<var name="ats.drop.file" value="ATSAsteDrop.zip" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
688 |
<property name="ats.aste.test.type" value="smoke" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
689 |
<property name="ats.aste.testasset.caseids" value="100,101,102,103,105,106,107,108,109,110,111,112,113,114,115" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
690 |
<property name="ats.aste.software.version" value="${build.id}" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
691 |
<property name="ats.aste.language" value="English" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
692 |
<property name="ats.aste.software.release" value="${build.name}" /> |
217 | 693 |
<!-- Modify the plan name if you have understanding of test.xml file or leave it as it is. Default value is "plan" |
694 |
@type string |
|
695 |
@scope public |
|
696 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
697 |
<property name="ats.aste.plan.name" value="plan" /> |
217 | 698 |
<!-- Modify the test-run name if you have understanding of test.xml file or leave it as it is. Default value is a string consist of build id, product name, major and minor versions |
699 |
@type string |
|
700 |
@scope public |
|
701 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
702 |
<property name="ats.aste.testrun.name" value="${build.id}_${ats.product.name}_${major.version}.${minor.version}" /> |
217 | 703 |
<!-- The property is needed if you want to get an email from ATS server after the tests are executed. There can be one to many semicolon(s) ";" separated email addresses. |
704 |
@type string |
|
705 |
@scope public |
|
706 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
707 |
<property name="ats.aste.email.list" value="" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
708 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
709 |
|
628 | 710 |
|
711 |
<macrodef name="getModuleTsrcMacro" uri="http://www.nokia.com/helium"> |
|
712 |
<attribute name="property" /> |
|
713 |
<attribute name="prefix"/> |
|
714 |
<sequential> |
|
715 |
<if> |
|
716 |
<istrue value="${sysdef3.enabled}" /> |
|
717 |
<then> |
|
718 |
<hlm:filterSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
|
719 |
destfile="${build.drive}/output/build/canonical_system_definition_filtered_ats_test.xml"> |
|
720 |
<filterSet> |
|
721 |
<filter filter="test" /> |
|
722 |
</filterSet> |
|
723 |
||
724 |
<filterSet refid="${ats.test.filterset}" /> |
|
725 |
</hlm:filterSysdef> |
|
726 |
<hlm:getModuleTsrcInternalMacro property="@{property}" prefix="@{prefix}" sysdef="${build.drive}/output/build/canonical_system_definition_filtered_ats_test.xml" /> |
|
727 |
</then> |
|
728 |
<else> |
|
729 |
<hlm:getModuleTsrcInternalMacro property="@{property}" prefix="@{prefix}" sysdef="${canonical.sysdef.file}" /> |
|
730 |
</else> |
|
731 |
</if> |
|
732 |
</sequential> |
|
733 |
</macrodef> |
|
734 |
||
588 | 735 |
<!-- This macro fetches the tsrc paths from system definition file (layers.sysdef.xml). |
736 |
||
737 |
The layer defintion should look like: |
|
738 |
||
739 |
<layer name="name_test_layer"> |
|
740 |
<module name="module_name"> |
|
741 |
<unit id="unit_id" name="unti_name" bldFile="path_of_tsrc_folder_to_be_built" filter="" /> |
|
742 |
</module> |
|
743 |
</layer> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
744 |
--> |
628 | 745 |
<scriptdef name="getModuleTsrcInternalMacro" language="jython" uri="http://www.nokia.com/helium"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
746 |
<attribute name="property" /> |
179 | 747 |
<attribute name="prefix"/> |
628 | 748 |
<attribute name="sysdef"/> |
179 | 749 |
import traceback |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
750 |
import os |
179 | 751 |
import atsant |
752 |
from com.nokia.ant.util import Helper |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
753 |
|
628 | 754 |
canonicalsysdeffile = attributes.get('sysdef') |
755 |
createsingledropfile = project.getProperty('internal.ats.singledrop.enabled') |
|
756 |
sysdef3 = atsant.get_boolean(str(project.getProperty('sysdef3.enabled'))) |
|
757 |
modules = atsant.files_to_test(canonicalsysdeffile, project.getProperty('exclude.test.layers'), project.getProperty('ido.build.filter'), project.getProperty('build.drive'), createsingledropfile, sysdef3) |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
758 |
|
179 | 759 |
for name in modules.keys(): |
760 |
if modules[name] == []: |
|
761 |
del modules[name] |
|
762 |
else: |
|
763 |
project.setProperty("%s.%s" % (attributes.get('prefix'), name), " ".join(modules[name])) |
|
628 | 764 |
|
765 |
if modules == {}: |
|
766 |
raise Exception('No test modules found in ' + canonicalsysdeffile) |
|
767 |
||
179 | 768 |
project.setProperty(attributes.get('property'), ",".join(modules.keys())) |
769 |
project.setProperty('ats.drops.count', str(len(modules))) |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
770 |
</scriptdef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
771 |
|
179 | 772 |
<!-- The target is dependent on "ats-test", should not be called individually. The target creates the ATSdrop.zip file including test:xml file --> |
587 | 773 |
<target name="ats-create-drop" depends="ats-set-flash-image-path,ats-emulator-zip"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
774 |
<mkdir dir="${build.output.dir}/ats" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
775 |
<hlm:getModuleTsrcMacro property="module.list" prefix="module.tsrc" /> |
628 | 776 |
<for list="${module.list}" delimiter="," param="module"> |
777 |
<sequential> |
|
778 |
<runtarget target="ats-set-defaults-stifeunit" /> |
|
779 |
<exec executable="python"> |
|
780 |
<arg line="-m ats3.__init__" /> |
|
781 |
<arg value="--device-type=${ats.product.name}" /> |
|
782 |
<arg value="--device-hwid=${ats.product.hwid}" /> |
|
783 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
784 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
785 |
<arg value="--report-email=${ats.email.list}" /> |
|
786 |
<arg value="--report-type=${ats.report.type}" /> |
|
787 |
<arg value="--plan-name=${ats.plan.name}" /> |
|
788 |
<arg value="--testrun-name=${ats.testrun.name}_@{module}" /> |
|
789 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
790 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
791 |
<arg value="--target-platform=${ats.target.platform}" /> |
|
792 |
<arg value="--data-dir=${tsrc.data.dir}" /> |
|
793 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
794 |
<arg value="--build-drive=${build.drive}" /> |
|
795 |
<arg value="--trace-enabled=${ats.trace.enabled}" /> |
|
796 |
<arg value="--ctc-enabled=${ats.ctc.enabled}" /> |
|
797 |
<arg value="--multiset-enabled=${ats.multiset.enabled}" /> |
|
798 |
<arg value="--file-store=${ats.report.location}" /> |
|
799 |
<arg value="--eunitexerunner-flags=${eunitexerunner.flags}" /> |
|
800 |
<arg value="--ctc-run-process-params=${ats.ctc.host}#${ats.drop.file}#${ats.drops.count}" /> <!-- Three differnt value are combined with '#' character which is later parsed inside the script --> |
|
801 |
<arg value="--monsym-files=${ats.ctc.monsyms}" /> |
|
802 |
<arg value="--config=${ats.config.file}" /> |
|
803 |
<arg value="--obey-pkgfiles=${internal.ats.obey.pkgfiles.rule.enabled}" /> |
|
804 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
|
805 |
<arg value="--specific-pkg=${ats.specific.pkg}" /> |
|
806 |
<arg value="--hti=${ats.hti.enabled}" /> |
|
807 |
<arg value="--verbose" /> |
|
808 |
<arg line="${module.tsrc.@{module}}" /> |
|
809 |
</exec> |
|
810 |
<antcall target="do-ats-test" /> |
|
811 |
<math result="drop.file.counter" operand1="1" operation="+" operand2="${drop.file.counter}" datatype="int" /> |
|
812 |
</sequential> |
|
813 |
</for> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
814 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
815 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
816 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
817 |
<!-- Please see ats-aste for description.--> |
628 | 818 |
<target name="do-ats-aste" depends="ats-set-flash-image-path, ats-set-defaults-aste" if="internal.aste.enabled"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
819 |
<mkdir dir="${build.output.dir}/ats" /> |
179 | 820 |
<exec executable="python"> |
217 | 821 |
<arg line="-m ats3.aste" /> |
179 | 822 |
<arg value="--report-email=${ats.aste.email.list}" /> |
823 |
<arg value="--device-type=${ats.product.name}" /> |
|
824 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
825 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
826 |
<arg value="--plan-name=${ats.aste.plan.name}" /> |
|
827 |
<arg value="--testrun-name=${ats.aste.testrun.name}" /> |
|
828 |
<arg value="--device-hwid=${ats.product.hwid}" /> |
|
829 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
830 |
<arg value="--build-drive=${build.drive}" /> |
|
831 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
832 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
833 |
<arg value="--test-type=${ats.aste.test.type}" /> |
|
834 |
<arg value="--testasset-location=${ats.aste.testasset.location}" /> |
|
835 |
<arg value="--testasset-caseids=${ats.aste.testasset.caseids}" /> |
|
836 |
<arg value="--software-version=${ats.aste.software.version}" /> |
|
837 |
<arg value="--device-language=${ats.aste.language}" /> |
|
838 |
<arg value="--software-release=${ats.aste.software.release}" /> |
|
628 | 839 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
179 | 840 |
<arg value="--verbose" /> |
841 |
</exec> |
|
842 |
<runtarget target="do-ats-test" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
843 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
844 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
845 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
846 |
This target search the mon.sym files using unit information from the canonical sysdef file. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
847 |
Then it copies the discovered files under the ftp server defined by ats.ctc.host. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
848 |
The target url is: ftp ://[server]/ctc_helium/[diamonds_id]/mon_syms/[id]/mon.sym |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
849 |
--> |
628 | 850 |
<target name="copy-mon-sym" if="internal.ats.ctc.enabled"> |
179 | 851 |
<if> |
628 | 852 |
<istrue value="${internal.ats4.enabled}"/> |
179 | 853 |
<then> |
628 | 854 |
<var name="ats.ctc.host" value="${diamonds.host}"/> |
855 |
</then> |
|
856 |
</if> |
|
857 |
<fmpp sourceFile="${helium.dir}/tools/testing/ats/templates/monsym-file-list.txt.ftl" |
|
858 |
outputFile="${temp.build.dir}/monsym-file-list.txt"> |
|
859 |
<data expandProperties="yes"> |
|
860 |
data: xml(${canonical.sysdef.file}) |
|
861 |
ant: antProperties() |
|
862 |
</data> |
|
863 |
</fmpp> |
|
864 |
<hlm:path2file reference="mon.sym.list" file="${temp.build.dir}/monsym-file-list.txt" /> |
|
865 |
<script language="jython"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
866 |
import os |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
867 |
import ctc |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
868 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
869 |
if not project.getProperty('ats.ctc.host'): |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
870 |
raise Exception('ats.ctc.host property is not defined.') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
871 |
if not project.getProperty('diamonds.build.id'): |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
872 |
raise Exception('diamonds.build.id property is not defined.') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
873 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
874 |
server = project.getProperty('ats.ctc.host') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
875 |
diamondsid = os.path.basename(os.path.dirname(project.getProperty('diamonds.build.id'))) |
628 | 876 |
if project.getProperty('internal.ats4.enabled') != 'true': |
877 |
diamondsid = r'ctc_helium/' + diamondsid |
|
878 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
879 |
path = project.getReference('mon.sym.list') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
880 |
if not path: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
881 |
raise Exception('mon.sym.list reference has not been set') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
882 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
883 |
uploader = ctc.MonSymFTPUploader(server, path.list(), diamondsid) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
884 |
monsyms = uploader.upload() |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
885 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
886 |
# Using ; to separate the path because the target script is running on windows |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
887 |
project.setNewProperty('ats.ctc.monsyms', ';'.join([ "//%s/%s" % (server, x) for x in monsyms])) |
628 | 888 |
</script> |
889 |
<echo>ats.ctc.monsyms: ${ats.ctc.monsyms}</echo> |
|
179 | 890 |
</target> |
891 |
||
217 | 892 |
<!-- Temp dir |
893 |
@type string |
|
894 |
@scope private |
|
895 |
--> |
|
179 | 896 |
<property name="ats.evalid.pre" value="${temp.build.dir}/${build.id}_atsevalidpre" /> |
217 | 897 |
<!-- Temp dir |
898 |
@type string |
|
899 |
@scope private |
|
900 |
--> |
|
179 | 901 |
<property name="ats.evalid.post" value="${temp.build.dir}/${build.id}_atsevalidpost" /> |
902 |
||
903 |
<!-- Call before preperation --> |
|
628 | 904 |
<target name="find-files-pre" if="internal.ats.delta.enabled"> |
179 | 905 |
<hlm:evalidMacro dir="${ats.evalid.pre}"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
906 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
907 |
|
179 | 908 |
<!-- Call after preperation --> |
628 | 909 |
<target name="find-files-post" if="internal.ats.delta.enabled"> |
179 | 910 |
<hlm:evalidMacro dir="${ats.evalid.post}"/> |
911 |
</target> |
|
912 |
||
913 |
<!-- Run evalid on ido directories --> |
|
914 |
<macrodef name="evalidMacro" uri="http://www.nokia.com/helium"> |
|
915 |
<attribute name="dir"/> |
|
916 |
<sequential> |
|
917 |
<runtarget target="ido-create-ado-mapping"/> |
|
918 |
<hlm:python> |
|
919 |
import delta_zip |
|
920 |
delta_zip.evalidAdomapping(r'${build.drive}', r'@{dir}', r'${ado.mapping.file}') |
|
921 |
</hlm:python> |
|
922 |
</sequential> |
|
923 |
</macrodef> |
|
924 |
||
925 |
<!-- Generate sysdef fileset based on evalid data --> |
|
628 | 926 |
<target name="ats-delta" if="internal.ats.delta.enabled"> |
179 | 927 |
<script language="jython"> |
928 |
import ido |
|
929 |
from com.nokia.ant.util import Helper |
|
930 |
import delta_zip |
|
931 |
import os |
|
932 |
||
933 |
atspath = project.createDataType("path") |
|
934 |
i = project.getReference('system.definition.files').iterator() |
|
935 |
changedfiles = delta_zip.changedFiles(Helper.getProperty(project, 'ats.evalid.pre'), Helper.getProperty(project, 'ats.evalid.post')) |
|
936 |
while i.hasNext(): |
|
937 |
path = i.next().toString() |
|
938 |
sysdefpath = os.path.abspath(os.path.join(project.getProperty('build.drive') + os.sep, ido.get_sysdef_location(path))) |
|
939 |
for f in changedfiles: |
|
940 |
if sysdefpath.lower() in os.path.abspath(f).lower(): |
|
941 |
pe = atspath.createPathElement() |
|
942 |
pe.setPath(path) |
|
943 |
break |
|
944 |
project.addReference('ats.system.definition.files', atspath) |
|
945 |
</script> |
|
946 |
</target> |
|
947 |
||
948 |
<!-- Common target to run ats, aste and matti --> |
|
949 |
<target name="run-test" depends="ats-test,ats-aste,matti-test"/> |
|
587 | 950 |
|
951 |
<!-- Zip build area for emulator --> |
|
628 | 952 |
<target name="ats-emulator-zip" if="internal.ats.emulator.enabled"> |
587 | 953 |
<property name="zips.emulator_zip.spec.name" value="emulator_zip"/> |
588 | 954 |
<hlm:zipContentMacro type="emulator_zip" file="${helium.dir}/tools/testing/ats/emulator_zip.cfg.xml" /> |
587 | 955 |
|
956 |
<if> |
|
957 |
<isset property="ats.drop.location" /> |
|
958 |
<then> |
|
959 |
<property name="ats.flash.images" value="${ats.drop.location}\${build.id}_emulator_urel.zip"/> |
|
960 |
<copy file="${build.output.dir}/ats/${build.id}_emulator_urel.zip" tofile="${ats.flash.images}" /> |
|
961 |
</then> |
|
962 |
<else> |
|
963 |
<property name="ats.flash.images" value="${build.output.dir}/ats/${build.id}_emulator_urel.zip"/> |
|
964 |
</else> |
|
965 |
</if> |
|
966 |
</target> |
|
588 | 967 |
|
968 |
<!-- Generate and upload drop using custom template --> |
|
969 |
<target name="ats-custom-drop"> |
|
970 |
<mkdir dir="${build.output.dir}/ats" /> |
|
971 |
<runtarget target="ats-set-flash-image-path" /> |
|
972 |
<runtarget target="ats-set-defaults-stifeunit" /> |
|
973 |
<property name="ats.custom.template" value="${helium.dir}/tools/testing/ats/templates/ats4_naviengine_template.xml"/> |
|
974 |
<exec executable="python"> |
|
975 |
<arg line="-Wignore -m ats3.custom" /> |
|
976 |
<arg value="--custom-template=${ats.custom.template}" /> |
|
977 |
<arg value="--device-type=${ats.product.name}" /> |
|
978 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
979 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
980 |
<arg value="--report-email=${ats.email.list}" /> |
|
981 |
<arg value="--testrun-name=${ats.testrun.name}" /> |
|
982 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
983 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
984 |
<arg value="--test-type=${ats.custom.test.type}" /> |
|
985 |
</exec> |
|
986 |
<runtarget target="do-ats-test" /> |
|
987 |
</target> |
|
988 |
||
628 | 989 |
<!-- a dependant target please do not call directly use matti-test, |
990 |
target calls the MATTI script that creates the MATTI_drop.zip file and runs the tests |
|
991 |
listed in test.rb. ats-set-flash-image-path and ats-set-sis-flash-image-path look for lists of files--> |
|
992 |
<target name="do-ats-matti" depends="ats-set-flash-image-path" > |
|
993 |
<runtarget target="ats-set-defaults-stifeunit" /> |
|
994 |
<!--need to set theseup for use by do-ats-test target--> |
|
995 |
<mkdir dir="${build.output.dir}/ats" /> |
|
996 |
<var name="ats.drop.file" value="ATSMattiDrop.zip" /> |
|
997 |
<!-- execute the MattiDrops.py script with parameters--> |
|
998 |
<exec executable="python" resultproperty="script.response"> |
|
999 |
<arg line="-m ats3.matti2" /> |
|
1000 |
<arg value="--build-drive=${build.drive}" /> |
|
1001 |
<arg value="--test-profiles=${matti.test.profiles}" /> <!--"all, !bat1" --> |
|
1002 |
<arg value="--sierra-enabled=${matti.sierra.enabled}" /> <!--"true/false" --> |
|
1003 |
<arg value="--matti-timeout=${matti.test.timeout}" /> <!--"600" --> |
|
1004 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
1005 |
<arg value="--testasset-location=${matti.asset.location}" /> <!--"local and/or network drive" --> |
|
1006 |
<arg value="--file-store=${ats.output.dir}" /> <!--"network drive" --> |
|
1007 |
<arg value="--testrun-name=${ats.testrun.name}" /> <!--"Matti_Profile_Name" --> |
|
1008 |
<arg value="--alias-name=${ats.alias.name}" /> <!--"agents_alias_Name" --> |
|
1009 |
<arg value="--device-type=${ats.product.name}" /> |
|
1010 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
1011 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
1012 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
1013 |
<arg value="--template-loc=${matti.template.file}" /> <!--"local and/or network drive. No comma separated list" --> |
|
1014 |
<arg value="--email-format=${ats.email.format}" /> <!--"Email Formatting. e.g. simplelogger" --> |
|
1015 |
<arg value="--email-subject=${ats.email.subject}" /> <!--"Email Subject. e.g. Matti testing" --> |
|
1016 |
<arg value="--report-email=${ats.email.list}" /> |
|
1017 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
|
1018 |
<arg value="--matti-sis-files=${matti.sis.files}" /> <!--"src#store#dst, src#store#dst" --> |
|
1019 |
<arg value="--matti-parameters=${matti.parameters}" /> |
|
1020 |
<arg value="--sierra-parameters=${matti.sierra.parameters}" /> <!--Additional sierra parameters for matti task e.g. ordered teardown --> |
|
1021 |
</exec> |
|
1022 |
||
1023 |
<!-- Unset the internal property to overwrite with new value--> |
|
1024 |
<var name="internal.ats.upload.enabled" unset="true"/> |
|
1025 |
<!-- set internal property if python returns 0 value for matti test drop creation --> |
|
1026 |
<condition property="internal.ats.upload.enabled"> |
|
1027 |
<equals arg1="${script.response}" arg2="0" /> |
|
1028 |
</condition> |
|
1029 |
<runtarget target="do-ats-test" /> |
|
1030 |
</target> |
|
1031 |
||
1032 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1033 |
</project> |