author | Zheng Shen <zheng.shen@nokia.com> |
Tue, 26 Oct 2010 11:12:31 +0800 | |
changeset 654 | 7c11c3d8d025 |
parent 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> |
645 | 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 |
||
645 | 37 |
<!--* @property ats.bootuptest.enabled |
38 |
Value must be set to execute ats-bootup-test target. |
|
39 |
@type boolean |
|
40 |
@scope public |
|
41 |
@since 12.0 |
|
42 |
--> |
|
43 |
||
628 | 44 |
<!--* @property internal.ats.enabled |
45 |
Set to run ats targests if ats.enabled set to true. |
|
46 |
@type boolean |
|
47 |
@scope private |
|
217 | 48 |
--> |
645 | 49 |
|
50 |
<!--* @property ats.aste.testasset.location |
|
51 |
Location of SW Test Assets, if the TestAsset is not packaged then it is first compressed to a .zip file. It should be a UNC path. |
|
52 |
@type string |
|
53 |
@editable required |
|
54 |
@scope public |
|
55 |
--> |
|
56 |
||
57 |
<!--* @property eunit.test.package |
|
58 |
The EUnit package name to be unzipped on the environment, for executing EUnit tests. |
|
59 |
@type string |
|
60 |
@scope public |
|
61 |
--> |
|
62 |
||
63 |
<!--* @property ats.script.type |
|
64 |
There are two types of ats script files to send drop to ATS server, runx and import; only difference is that with import ATS doesn't have to have access rights to testdrop.zip file, as it is sent to the system over http and import doesn't need network shares. If that is not needed import should not be used. Default value is runx as import involves heavy processing on ATS server. |
|
65 |
@type string |
|
66 |
@scope public |
|
67 |
--> |
|
68 |
||
69 |
<!--* @property tsrc.path.list |
|
70 |
Contains list of the tsrc directories. Gets the list from system definition layer files. Assuming that the test components are defined already in te layers.sysdef.xml files to get compiled. Not recommended, but the property value can be set if there are no System Definition file(s), and tsrc directories paths to set manually. |
|
71 |
@type string |
|
72 |
@scope public |
|
73 |
--> |
|
74 |
||
75 |
<!--* @property ats.diamonds.signal |
|
76 |
Should be true so at end of the build diamonds is checked for test results and Helium fails if tests failed. |
|
77 |
@type string |
|
78 |
@scope public |
|
79 |
--> |
|
80 |
||
81 |
<!-- Contains a test filterset name. A filterset is used to select/unselect test components. The filter(s) is/are effective when the same filters are defined in the package definition file for component(s). |
|
82 |
@type string |
|
83 |
@editable required |
|
84 |
@scope public |
|
85 |
@since 10.79 |
|
86 |
--> |
|
87 |
<property name="ats.test.filterset" value="sysdef.filters.test" /> |
|
88 |
<hlm:sysdefFilterSet id="sysdef.filters.test" > |
|
89 |
<filter filter="test" /> |
|
90 |
</hlm:sysdefFilterSet> |
|
217 | 91 |
|
645 | 92 |
<!--* @property tdriver.asset.location |
93 |
The location of the test asset where ruby test files, sip profiles, hardware data etc are located. |
|
94 |
@type string |
|
95 |
@editable required |
|
96 |
@scope public |
|
97 |
--> |
|
98 |
||
99 |
<!--* @property tdriver.test.profiles |
|
100 |
Test profiles to be executed should be mentioned in this comma separated list e.g., 'bat, fute'. |
|
101 |
@type string |
|
102 |
@editable required |
|
103 |
@scope public |
|
104 |
--> |
|
105 |
||
106 |
<!--* @property tdriver.tdrunner.enabled |
|
107 |
Mustbe set to 'true' if TDrunner is engine is to be used. If true .sip files are used otherwise .rb (ruby) files are used to execute tests. |
|
108 |
@type boolean |
|
109 |
@editable required |
|
110 |
@scope public |
|
111 |
--> |
|
112 |
||
113 |
<!--* @property tdriver.template.file |
|
114 |
Location of the TDriver template file if user wants to use own template file instead of the default one. |
|
115 |
@type string |
|
116 |
@scope public |
|
117 |
--> |
|
118 |
||
628 | 119 |
<!--* @property enabled.ats |
120 |
Value must be set to execute ats-test target. - deprecated: Start using ats.enabled property. |
|
121 |
@type boolean |
|
122 |
@editable required |
|
123 |
@scope public |
|
124 |
@deprecated since 11.0 |
|
125 |
--> |
|
126 |
||
127 |
<!--* @property aste.enabled |
|
217 | 128 |
Value must be set to execute ats-aste target. |
129 |
@type boolean |
|
130 |
@editable required |
|
131 |
@scope public |
|
628 | 132 |
@since 11.0 |
133 |
--> |
|
134 |
||
135 |
<!--* @property internal.aste.enabled |
|
136 |
Set to run aste targets if aste.enabled set to true. |
|
137 |
@type boolean |
|
138 |
@scope private |
|
139 |
--> |
|
140 |
||
141 |
<!--* @property enabled.aste |
|
142 |
Value must be set to execute ats-aste target. - deprecated: Start using aste.enabled property. |
|
143 |
@type boolean |
|
144 |
@editable required |
|
145 |
@scope public |
|
146 |
@deprecated since 11.0 |
|
147 |
--> |
|
148 |
||
149 |
<!--* @property ats4.enabled |
|
150 |
Value must be set to execute ats4 features. |
|
151 |
@type boolean |
|
152 |
@editable required |
|
153 |
@scope public |
|
154 |
@since 11.0 |
|
155 |
--> |
|
645 | 156 |
|
628 | 157 |
<!--* @property internal.ats4.enabled |
158 |
Set if ats4.enabled is set to true. To run ats4 dependent targets. |
|
159 |
@type boolean |
|
160 |
@scope private |
|
217 | 161 |
--> |
645 | 162 |
|
163 |
<!-- Execute test cases using stf on ats4. Defaults to True, Set it to False if you do not want to enable stf. |
|
164 |
@type boolean |
|
165 |
@scope public |
|
166 |
@since 12.0 |
|
167 |
--> |
|
168 |
<property name="ats.stf.enabled" value="true"/> |
|
217 | 169 |
|
170 |
<!--* @property ats.product.name |
|
171 |
Name of the product to be tested. For example: "PRODUCT" |
|
172 |
@type string |
|
173 |
@editable required |
|
174 |
@scope public |
|
175 |
--> |
|
176 |
||
177 |
<!--* @property ats.drop.location |
|
628 | 178 |
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 | 179 |
@type string |
180 |
@editable required |
|
181 |
@scope public |
|
182 |
--> |
|
183 |
||
184 |
<!--* @property ats.server |
|
185 |
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. |
|
186 |
@type string |
|
187 |
@editable required |
|
188 |
@scope public |
|
189 |
--> |
|
190 |
||
191 |
<!--* @property ats.password |
|
645 | 192 |
Password for ATS3. This password might be different from NOE or HTTP/UNIX password. |
217 | 193 |
@type string |
194 |
@editable required |
|
195 |
@scope public |
|
196 |
--> |
|
197 |
||
198 |
<!--* @property ats.username |
|
645 | 199 |
Username for ATS3 server. This is NOT the NOE or HTTP/UNIX username. |
217 | 200 |
@type string |
201 |
@editable required |
|
202 |
@scope public |
|
203 |
--> |
|
204 |
||
588 | 205 |
<!--* @property ats.create.singledrop.file |
628 | 206 |
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 |
207 |
@type boolean |
|
208 |
@editable required |
|
209 |
@scope public |
|
210 |
@deprecated since 11.0 |
|
211 |
--> |
|
212 |
||
213 |
<!--* @property ats.singledrop.enabled |
|
588 | 214 |
defined as true if single drop file is required. Define as false or not present for multiple drop files. |
215 |
@type boolean |
|
216 |
@editable required |
|
217 |
@scope public |
|
628 | 218 |
@since 11.0 |
219 |
--> |
|
220 |
||
221 |
<!--* @property internal.ats.singledrop.enabled |
|
222 |
set to true if ats.singledrop.enabled set to true. |
|
223 |
@type boolean |
|
224 |
@scope private |
|
225 |
--> |
|
226 |
||
227 |
<!--* @property ats.emulator.enabled |
|
228 |
Value must be set to true to run ats with emulator. |
|
229 |
@type boolean |
|
230 |
@editable required |
|
231 |
@scope public |
|
232 |
@since 11.0 |
|
233 |
--> |
|
234 |
||
235 |
<!--* @property internal.ats.emulator.enabled |
|
236 |
Set to run emulator targets if ats.emulator.enabled is set to true. |
|
237 |
@type boolean |
|
238 |
@scope private |
|
239 |
--> |
|
240 |
||
241 |
<!--* @property ats.emulator.enable |
|
242 |
Value must be set to true to run ats with emulator. - deprecated: Start using ats.emulator.enabled property. |
|
243 |
@type boolean |
|
244 |
@editable required |
|
245 |
@scope public |
|
246 |
@deprecated since 11.0 |
|
247 |
--> |
|
248 |
||
645 | 249 |
<!--* @property ats.tdriver.enabled |
250 |
Value must be set to true to enable testing with TDriver. |
|
628 | 251 |
@type boolean |
252 |
@editable required |
|
253 |
@scope public |
|
254 |
@since 11.0 |
|
255 |
--> |
|
256 |
||
645 | 257 |
<!--* @property internal.ats.tdriver.enabled |
258 |
Set to run TDriver targets if ats.tdriver.enabled is set to true. |
|
628 | 259 |
@type boolean |
260 |
@scope private |
|
261 |
--> |
|
262 |
||
263 |
<!--* @property ats.delta.enabled |
|
264 |
Should be true so only ADOs changed during do-prep-work-area are tested by ATS. |
|
265 |
@type boolean |
|
266 |
@editable required |
|
267 |
@scope public |
|
268 |
@since 11.0 |
|
269 |
--> |
|
270 |
||
271 |
<!--* @property ats.disable.java.importer |
|
272 |
To disable java importer for ats. - deprecated: Start using ats.java.importer.enabled property. |
|
273 |
@type boolean |
|
274 |
@editable required |
|
275 |
@scope public |
|
276 |
@deprecated since 11.0 |
|
277 |
--> |
|
278 |
||
645 | 279 |
<!-- To disable java importer for ats3 |
628 | 280 |
@type boolean |
281 |
@editable required |
|
282 |
@scope public |
|
283 |
@since 11.0 |
|
284 |
--> |
|
285 |
<property name="ats.java.importer.enabled" value="true"/> |
|
286 |
||
287 |
<!--* @property ats.disable.iconfig |
|
288 |
To enable/disable iconfig with ats. - deprecated: Start using ats.iconfig.enabled property. |
|
289 |
@type boolean |
|
290 |
@editable required |
|
291 |
@scope public |
|
292 |
@deprecated since 11.0 |
|
293 |
--> |
|
294 |
||
295 |
<!-- To enable/disable iconfig with ats |
|
296 |
@type boolean |
|
297 |
@editable required |
|
298 |
@scope public |
|
299 |
@since 11.0 |
|
300 |
--> |
|
301 |
<property name="ats.iconfig.enabled" value="true"/> |
|
302 |
||
303 |
<!--* @property internal.ats.iconfig.enabled |
|
304 |
To run python if ats.iconfig.enabled is enable/disable. |
|
305 |
@type boolean |
|
306 |
@scope private |
|
307 |
--> |
|
308 |
||
309 |
<!--* For sending drop package file to ATS/ASTE after its creation. |
|
310 |
@type boolean |
|
311 |
@scope public |
|
312 |
@since 11.0 |
|
313 |
--> |
|
314 |
<property name="ats.upload.enabled" value="true"/> |
|
315 |
||
316 |
<!--* @property internal.ats.upload.enabled |
|
317 |
Set to run sending the test drop targets if ats.upload.enabled is set to true. |
|
318 |
@type boolean |
|
319 |
@scope private |
|
320 |
--> |
|
321 |
||
322 |
<!--* @property skip.ats.sending |
|
323 |
For sending drop package file to ATS/ASTE after its creation. - deprecated: Start using ats.upload.enabled property. |
|
324 |
@type boolean |
|
325 |
@editable required |
|
326 |
@scope public |
|
327 |
@deprecated since 11.0 |
|
328 |
--> |
|
329 |
||
330 |
<!-- Is it required to send ats test drop to server--> |
|
331 |
<condition property="internal.ats.upload.enabled"> |
|
332 |
<and> |
|
333 |
<not> |
|
334 |
<isfalse value="${ats.upload.enabled}" /> |
|
335 |
</not> |
|
336 |
<not> |
|
337 |
<isset property="skip.ats.sending"/> |
|
338 |
</not> |
|
339 |
</and> |
|
340 |
</condition> |
|
341 |
||
342 |
<!-- Check is the ATS enabled --> |
|
343 |
<condition property="internal.ats.enabled"> |
|
344 |
<or> |
|
345 |
<istrue value="${ats.enabled}" /> |
|
346 |
<istrue value="${enabled.ats}"/> |
|
347 |
</or> |
|
348 |
</condition> |
|
349 |
||
350 |
<!-- Check is the aste enabled --> |
|
351 |
<condition property="internal.aste.enabled"> |
|
352 |
<or> |
|
353 |
<istrue value="${aste.enabled}" /> |
|
354 |
<isset property="enabled.aste"/> |
|
355 |
</or> |
|
356 |
</condition> |
|
645 | 357 |
|
358 |
<!-- Check if bootup testing is enabled --> |
|
359 |
<condition property="internal.ats.bootuptest.enabled"> |
|
360 |
<istrue value="${ats.bootuptest.enabled}" /> |
|
361 |
</condition> |
|
362 |
||
628 | 363 |
<!-- Check is the ast4 enabled --> |
364 |
<condition property="internal.ats4.enabled" value="true" else="false"> |
|
365 |
<istrue value="${ats4.enabled}" /> |
|
366 |
</condition> |
|
645 | 367 |
|
628 | 368 |
<!-- Check is the ats emulator enabled --> |
369 |
<condition property="internal.ats.emulator.enabled"> |
|
370 |
<or> |
|
371 |
<istrue value="${ats.emulator.enabled}" /> |
|
372 |
<istrue value="${ats.emulator.enable}" /> |
|
373 |
</or> |
|
374 |
</condition> |
|
375 |
||
645 | 376 |
<!-- Check is the ats TDriver enabled --> |
377 |
<condition property="internal.ats.tdriver.enabled"> |
|
378 |
<or> |
|
379 |
<istrue value="${ats.tdriver.enabled}" /> |
|
380 |
<istrue value="${tdriver.enabled}" /> |
|
381 |
<istrue value="${matti.enabled}" /> |
|
382 |
</or> |
|
628 | 383 |
</condition> |
384 |
||
385 |
<!-- Check is the ats ats delta enabled --> |
|
386 |
<condition property="internal.ats.delta.enabled"> |
|
387 |
<istrue value="${ats.delta.enabled}" /> |
|
388 |
</condition> |
|
389 |
||
390 |
<!-- Check is the ats ats delta enabled --> |
|
391 |
<condition property="internal.ats.iconfig.enabled" value="true" else="false"> |
|
392 |
<and> |
|
393 |
<not> |
|
394 |
<isfalse value="${ats.iconfig.enabled}" /> |
|
395 |
</not> |
|
396 |
<not> |
|
397 |
<isset property="ats.disable.iconfig" /> |
|
398 |
</not> |
|
399 |
</and> |
|
400 |
</condition> |
|
401 |
||
402 |
<!-- Check is the ats ats single drop file enabled --> |
|
403 |
<condition property="internal.ats.singledrop.enabled"> |
|
404 |
<or> |
|
405 |
<istrue value="${ats.singledrop.enabled}" /> |
|
406 |
<istrue value="${ats.create.singledrop.file}" /> |
|
407 |
</or> |
|
408 |
</condition> |
|
409 |
||
645 | 410 |
<!-- 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. |
411 |
@type boolean |
|
412 |
@editable required |
|
413 |
@scope public |
|
414 |
--> |
|
415 |
<property name="ats.ctc.enabled" value="false"/> |
|
628 | 416 |
|
645 | 417 |
<!--* @property internal.ats.ctc.enabled |
418 |
Set to run the ats ctc targets. |
|
419 |
@type boolean |
|
420 |
@scope private |
|
421 |
--> |
|
422 |
<condition property="internal.ats.ctc.enabled"> |
|
423 |
<istrue value="${ats.ctc.enabled}" /> |
|
424 |
</condition> |
|
628 | 425 |
|
426 |
<!-- --> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
427 |
<fileset id="reference.ats.flash.images" dir="${release.images.dir}"> |
217 | 428 |
<include name="**/*.fpsx" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
429 |
<include name="**/*rnd.C00" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
430 |
<include name="**/*rnd.V01" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
431 |
</fileset> |
179 | 432 |
|
587 | 433 |
<!--* @property ats.flashfiles.minlimit |
434 |
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 | 435 |
@type string |
436 |
@scope public |
|
437 |
--> |
|
587 | 438 |
<condition property="ats.flashfiles.minlimit" value="0" else="2"> |
628 | 439 |
<or> |
440 |
<istrue value="${ats.emulator.enabled}" /> |
|
441 |
<istrue value="${ats.emulator.enable}" /> |
|
442 |
</or> |
|
587 | 443 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
444 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
445 |
<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
|
446 |
<include name="**/*.sis" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
447 |
</fileset> |
645 | 448 |
<!-- Limit of minimum number of sis files to execute tdriver-test target, otherwise TDriver-drop.zip will not be generated. Default value is "1" files. |
217 | 449 |
@type string |
450 |
@scope public |
|
451 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
452 |
<property name="ats.sisfiles.minlimit" value="1" /> |
179 | 453 |
|
628 | 454 |
<property name="drop.file.counter" value="0" /> |
217 | 455 |
|
587 | 456 |
<!-- The target creates ATSDrop.zip file which also includes test.xml file; and sends the drop to ATS. |
588 | 457 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
458 |
The layer definition, in system definition file, for tsrc directory should look like: |
588 | 459 |
|
460 |
<layer name="name_test_layer"> |
|
461 |
<module name="module_name"> |
|
462 |
<unit id="unit_id" name="unti_name" bldFile="path_of_tsrc_folder_to_be_built" filter=""/> |
|
463 |
</module> |
|
464 |
</layer> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
465 |
--> |
628 | 466 |
<target name="ats-test" if="internal.ats.enabled"> |
179 | 467 |
<mkdir dir="${test.log.dir}"/> |
628 | 468 |
<runtarget target="load-property-from-cache-file" /> |
179 | 469 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
628 | 470 |
<trycatch reference="exception"> |
179 | 471 |
<try> |
472 |
<runtarget target="ats-delta"/> |
|
473 |
<antcall target="create-canonical-sysdef-file" inheritRefs="true"> |
|
474 |
<reference refid="ats.system.definition.files" torefid="system.definition.files" /> |
|
475 |
</antcall> |
|
476 |
<runtarget target="copy-mon-sym" /> |
|
477 |
<runtarget target="ats-create-drop" /> |
|
478 |
</try> |
|
479 |
<catch> |
|
628 | 480 |
<echo>Error: ${toString:exception}</echo> |
179 | 481 |
</catch> |
482 |
</trycatch> |
|
483 |
<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
|
484 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
485 |
<hlm:textmetadatainput> |
179 | 486 |
<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
|
487 |
<metadatafilterset refid="filterset.ats" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
488 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
489 |
</hlm:metadatarecord> |
628 | 490 |
<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
|
491 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
492 |
|
179 | 493 |
<!-- The target creates the ATSdrop.zip file including test.xml for ATS ASTE tests. This target is executable.--> |
628 | 494 |
<target name="ats-aste" if="internal.aste.enabled"> |
179 | 495 |
<mkdir dir="${test.log.dir}"/> |
628 | 496 |
<runtarget target="load-property-from-cache-file" /> |
179 | 497 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
498 |
<runtarget target="do-ats-aste" /> |
179 | 499 |
<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
|
500 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
501 |
<hlm:textmetadatainput> |
179 | 502 |
<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
|
503 |
<metadatafilterset refid="filterset.aste" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
504 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
505 |
</hlm:metadatarecord> |
628 | 506 |
<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
|
507 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
508 |
|
645 | 509 |
<!-- Old target for tdriver-test. Deprecated in Helium 12 --> |
510 |
<target name="matti-test"> |
|
511 |
<runtarget target="tdriver-test" /> |
|
512 |
</target> |
|
513 |
||
514 |
<!-- The target creates the TDriver_drop.zip file including test.xml for TDriver tests. This target is executable.--> |
|
515 |
<target name="tdriver-test" if="internal.ats.tdriver.enabled"> |
|
179 | 516 |
<mkdir dir="${test.log.dir}"/> |
628 | 517 |
<runtarget target="load-property-from-cache-file" /> |
179 | 518 |
<hlm:filterRecordStartMacro pattern="${ats.password}" category="ats"/> |
645 | 519 |
<runtarget target="copy-mon-sym" /> |
520 |
<runtarget target="do-ats-tdriver" /> |
|
521 |
<hlm:filterRecordStopMacro log="${test.log.dir}/${build.id}_tdriver.log" append="false"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
522 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
523 |
<hlm:textmetadatainput> |
645 | 524 |
<fileset casesensitive="false" file="${test.log.dir}/${build.id}_tdriver.log" /> |
525 |
<metadatafilterset refid="filterset.tdriver" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
526 |
</hlm:textmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
527 |
</hlm:metadatarecord> |
645 | 528 |
<hlm:generateBuildStatus file="${test.log.dir}/${build.id}_tdriver.log" /> |
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 |
<!-- Sends drop file to ATS/ASTE. Please see `ats-test` for description. --> |
628 | 532 |
<target name="do-ats-test" depends="ats-username, ats-password" if="internal.ats.upload.enabled"> |
179 | 533 |
<property name="ats.sending" value="true" /> |
534 |
<!-- Make the drop file visible to ATS. --> |
|
535 |
||
536 |
<var name="ats.drop.location.file" unset="true"/> |
|
537 |
<if> |
|
538 |
<isset property="ats.drop.location" /> |
|
539 |
<then> |
|
540 |
<mkdir dir="${ats.drop.location}" /> |
|
541 |
<property name="ats.drop.location.file" location="${ats.drop.location}/${ats.drop.file}" /> |
|
542 |
<copy file="${build.output.dir}/ats/${ats.drop.file}" tofile="${ats.drop.location.file}" /> |
|
543 |
</then> |
|
544 |
<else> |
|
545 |
<property name="ats.drop.location.file" location="${build.output.dir}/ats/${ats.drop.file}" /> |
|
546 |
</else> |
|
547 |
</if> |
|
628 | 548 |
|
549 |
<!-- Notify ATS about the drop. --> |
|
550 |
<if> |
|
551 |
<istrue value="${internal.ats4.enabled}" /> |
|
552 |
<then> |
|
553 |
<hlm:python failonerror="true"> |
|
179 | 554 |
version = r'${java.version}' |
555 |
if '1.6.0' in version: |
|
556 |
assert int(version.split('_')[1]) > 6, 'Java 6 u7 required' |
|
628 | 557 |
</hlm:python> |
558 |
<condition property="ats.import.arg" value="-import" else=""> |
|
559 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
560 |
</condition> |
|
561 |
<condition property="ats4.libs" value="${helium.dir}/extensions/nokia/external/ats4" else="${helium.dir}/external/antlibs"> |
|
562 |
<available type="dir" file="${helium.dir}/extensions/nokia/external/ats4"/> |
|
563 |
</condition> |
|
645 | 564 |
<echo message="Uploading using: -url http://${ats.server}/ServerService -path ${ats.drop.location.file} ${ats.import.arg}"/> |
628 | 565 |
<java classname="com.nokia.ats.util.server.CommandLineClient" fork="true" maxmemory="1024m" failonerror="true"> |
566 |
<classpath> |
|
567 |
<pathelement path="${java.class.path}"/> |
|
568 |
<fileset dir="${ats4.libs}" includes="*.jar"/> |
|
569 |
</classpath> |
|
570 |
<arg line="-url http://${ats.server}/ServerService -path ${ats.drop.location.file} ${ats.import.arg}"/> |
|
571 |
</java> |
|
572 |
</then> |
|
573 |
<else> |
|
574 |
<if> |
|
575 |
<and> |
|
576 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
577 |
<available classname="com.nokia.taitei.util.TestDropImporter"/> |
|
578 |
<not> |
|
579 |
<or> |
|
580 |
<istrue value="${ats.disable.java.importer}" /> |
|
581 |
<isfalse value="${ats.java.importer.enabled}" /> |
|
582 |
</or> |
|
583 |
</not> |
|
584 |
</and> |
|
585 |
<then> |
|
586 |
<java classname="com.nokia.taitei.util.TestDropImporter" fork="true" maxmemory="1024m" failonerror="true"> |
|
587 | 587 |
<classpath> |
588 |
<pathelement path="${java.class.path}"/> |
|
589 |
</classpath> |
|
628 | 590 |
<arg line="${ats.server} ${ats.drop.location.file} ${ats.username} ${ats.password}"/> |
587 | 591 |
</java> |
592 |
</then> |
|
593 |
<else> |
|
628 | 594 |
<condition property="ats.wsh.testrun.file" value="wshTestRunImport.vbs" else="wshTestRunX.vbs"> |
595 |
<equals arg1="${ats.script.type}" arg2="import" /> |
|
596 |
</condition> |
|
597 |
<exec executable="cscript" dir="${build.drive}/" failonerror="true"> |
|
598 |
<env key="ats3.username" value="${ats.username}" /> |
|
599 |
<env key="ats3.password" value="${ats.password}" /> |
|
600 |
<env key="ats3.host" value="${ats.server}" /> |
|
601 |
<env key="ats3.pathToDrop" value="${ats.drop.location.file}"/> |
|
602 |
<arg value="${helium.dir}/tools/testing/ats/${ats.wsh.testrun.file}" /> |
|
603 |
</exec> |
|
587 | 604 |
</else> |
628 | 605 |
</if> |
606 |
</else> |
|
607 |
</if> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
608 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
609 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
610 |
<!-- The target is dependent on "ats-test", should not be called independently. The target fetches flash files location --> |
628 | 611 |
<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
|
612 |
<pathconvert pathsep="," property="ats.flash.images"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
613 |
<fileset refid="reference.ats.flash.images"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
614 |
</pathconvert> |
587 | 615 |
<script language="jython" setbeans="false"> |
628 | 616 |
if project.getProperty('internal.ats.iconfig.enabled') == 'true': |
587 | 617 |
import atsant |
618 |
ic = None |
|
619 |
try: |
|
588 | 620 |
ic = atsant.IConfigATS(project.getProperty('release.images.dir'), project.getProperty('ats.product.name')) |
645 | 621 |
except IOError, ex: |
587 | 622 |
print ex |
623 |
if ic: |
|
624 |
project.setProperty('ats.flash.images', ic.findimages()) |
|
625 |
</script> |
|
179 | 626 |
<hlm:python failonerror="true"> |
627 |
<![CDATA[ |
|
628 |
flashfilescount = len(r'${ats.flash.images}'.split(',')) |
|
629 |
mincount = int(r'${ats.flashfiles.minlimit}') |
|
588 | 630 |
if mincount > 0: |
631 |
assert r'${ats.flash.images}' != '', 'No images found in ' + r'${release.images.dir}' |
|
179 | 632 |
if flashfilescount < mincount: |
217 | 633 |
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 | 634 |
]]> |
635 |
</hlm:python> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
636 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
637 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
638 |
<!-- 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
|
639 |
<target name="ats-set-sis-flash-image-path"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
640 |
<pathconvert pathsep="," property="ats.sis.images"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
641 |
<fileset refid="reference.ats.sis.images"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
642 |
</pathconvert> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
643 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
644 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
645 |
<!-- 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
|
646 |
<target name="ats-common"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
647 |
<property name="ats.config.file" value="" /> |
645 | 648 |
|
649 |
<!-- Text in name of PKG files to use eg. 'sanity' would only use xxxsanity.pkg files from components. |
|
650 |
@type string |
|
651 |
@scope public |
|
652 |
--> |
|
217 | 653 |
<property name="ats.specific.pkg" value="" /> |
628 | 654 |
|
217 | 655 |
<!-- Product HardWare ID (HWID) attached to ATS. By default the value of HWID is not set. |
656 |
@type string |
|
657 |
@scope public |
|
658 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
659 |
<property name="ats.product.hwid" value="" /> |
628 | 660 |
<!-- To set test commands execution time limit on ATS server, in seconds. Default value is "60". |
217 | 661 |
@type string |
662 |
@scope public |
|
663 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
664 |
<property name="ats.test.timeout" value="60" /> |
217 | 665 |
<!-- Sets ATS reports store location. Default location is "${publish.dir}/${publish.subdir}" |
666 |
@type string |
|
667 |
@scope public |
|
668 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
669 |
<property name="ats.report.location" value="${publish.dir}/${publish.subdir}" /> |
628 | 670 |
<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
|
671 |
<isset property="diamonds.build.url" /> |
179 | 672 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
673 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
674 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
675 |
<!-- 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
|
676 |
<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
|
677 |
<!-- Default values for the properties --> |
217 | 678 |
<!-- 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. |
679 |
@type string |
|
680 |
@scope public |
|
681 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
682 |
<property name="ats.email.list" value="${email.from}" /> |
588 | 683 |
<!-- Value of the ats email report |
684 |
@type string |
|
685 |
@scope public |
|
686 |
--> |
|
687 |
<property name="ats.report.type" value="ATS3_REPORT" /> |
|
217 | 688 |
<!-- The default value is "data" and refers to the 'data' directory under 'tsrc' directory. |
689 |
@type string |
|
690 |
@scope public |
|
691 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
692 |
<property name="tsrc.data.dir" value="data" /> |
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.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.testrun.name" value="${build.id}_${ats.product.name}" /> |
217 | 703 |
<!-- 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 |
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.ctc.host" value="" /> |
179 | 708 |
<condition property="ats.version" value="4" else="3"> |
628 | 709 |
<istrue value="${internal.ats4.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
710 |
</condition> |
628 | 711 |
<var name="ats.drop.file" value="${build.id}_ATS${ats.version}Drop${drop.file.counter}.zip" /> |
179 | 712 |
|
587 | 713 |
<!--* @property ats.target.platform |
714 |
Sets target platform for compiling test components. Default value is "armv5 urel". |
|
217 | 715 |
@type string |
716 |
@scope public |
|
717 |
--> |
|
587 | 718 |
<condition property="ats.target.platform" value="winscw urel" else="armv5 urel"> |
628 | 719 |
<or> |
720 |
<istrue value="${ats.emulator.enabled}" /> |
|
721 |
<istrue value="${ats.emulator.enable}" /> |
|
722 |
</or> |
|
587 | 723 |
</condition> |
628 | 724 |
<!-- Should be "true" if tracing is needed during the tests running on ATS. Default value is "false", the values are case-sensitive. |
725 |
@type boolean |
|
726 |
@scope public |
|
727 |
@editable required |
|
728 |
--> |
|
729 |
<property name="ats.trace.enabled" value="false"/> |
|
645 | 730 |
<!-- Should be ``true`` so a set is used for each pkg file in a component, this allows tests to run in parallel on several devices. |
628 | 731 |
@type boolean |
217 | 732 |
@scope public |
733 |
--> |
|
628 | 734 |
<property name="ats.multiset.enabled" value="false"/> |
645 | 735 |
|
736 |
<!-- Flags for EUnit exerunner can be set by setting the value of this variable. The default flags are set to "/E S60AppEnv /R Off". |
|
737 |
@type string |
|
738 |
@editable required |
|
739 |
@scope public |
|
740 |
--> |
|
628 | 741 |
<property name="eunitexerunner.flags" value="/E S60AppEnv /R Off" /> |
742 |
||
743 |
<!--* @property ats.obey.pkgfiles.rule.enabled |
|
744 |
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. |
|
745 |
@type boolean |
|
217 | 746 |
@scope public |
747 |
--> |
|
628 | 748 |
|
749 |
<!--* @property ats.obey.pkgfiles.rule |
|
750 |
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 |
|
751 |
@type boolean |
|
217 | 752 |
@scope public |
628 | 753 |
@deprecated since 11.0 |
754 |
--> |
|
755 |
||
756 |
<!-- * @property internal.ats.obey.pkgfiles.rule.enabled |
|
757 |
If the property is set to "true", if ats.obey.pkgfiles.rule.enabled set to true. |
|
758 |
@type boolean |
|
759 |
@scope private |
|
217 | 760 |
--> |
628 | 761 |
<condition property="internal.ats.obey.pkgfiles.rule.enabled" value="true" else="false"> |
762 |
<or> |
|
763 |
<istrue value="${ats.obey.pkgfiles.rule.enabled}" /> |
|
764 |
<istrue value="${ats.obey.pkgfiles.rule}" /> |
|
765 |
</or> |
|
766 |
</condition> |
|
767 |
||
768 |
||
769 |
<fail unless="ats.product.name" message="Error: ats.product.name property not defined" /> |
|
770 |
||
771 |
<!--* @property ats.hti.enabled |
|
772 |
Set to true if ats.emulator.enabled set to true. To enable hti feature while creating ats test drop. |
|
773 |
@type boolean |
|
774 |
@scope private |
|
775 |
--> |
|
776 |
<condition property="ats.hti.enabled" value="false" else="true"> |
|
777 |
<or> |
|
778 |
<istrue value="${ats.emulator.enabled}" /> |
|
779 |
<istrue value="${ats.emulator.enable}" /> |
|
780 |
</or> |
|
587 | 781 |
</condition> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
782 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
783 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
784 |
<!-- 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
|
785 |
<target name="ats-set-defaults-aste" depends="ats-common"> |
179 | 786 |
<var name="ats.drop.file" value="ATSAsteDrop.zip" /> |
645 | 787 |
<!-- Type of test to run. Default is 'smoke'. |
788 |
@type string |
|
789 |
@scope public |
|
790 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
791 |
<property name="ats.aste.test.type" value="smoke" /> |
645 | 792 |
<!-- These are the cases that which tests should be run from the TestAsset. For example, value can be set as 100,101,102,103,105,106,. A comma is needed to separate case IDs |
793 |
@type string |
|
794 |
@scope public |
|
795 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
796 |
<property name="ats.aste.testasset.caseids" value="100,101,102,103,105,106,107,108,109,110,111,112,113,114,115" /> |
645 | 797 |
<!-- Version of the software to be tested. For example: 'W81' |
798 |
@type string |
|
799 |
@editable required |
|
800 |
@scope public |
|
801 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
802 |
<property name="ats.aste.software.version" value="${build.id}" /> |
645 | 803 |
<!-- Variant Language to be tested. Default is 'English' |
804 |
@type string |
|
805 |
@scope public |
|
806 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
807 |
<property name="ats.aste.language" value="English" /> |
645 | 808 |
<!-- Flash images releases, for example 'SPP 51.32'. |
809 |
@type string |
|
810 |
@editable required |
|
811 |
@scope public |
|
812 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
813 |
<property name="ats.aste.software.release" value="${build.name}" /> |
217 | 814 |
<!-- Modify the plan name if you have understanding of test.xml file or leave it as it is. Default value is "plan" |
815 |
@type string |
|
816 |
@scope public |
|
817 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
818 |
<property name="ats.aste.plan.name" value="plan" /> |
217 | 819 |
<!-- 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 |
820 |
@type string |
|
821 |
@scope public |
|
822 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
823 |
<property name="ats.aste.testrun.name" value="${build.id}_${ats.product.name}_${major.version}.${minor.version}" /> |
217 | 824 |
<!-- 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. |
825 |
@type string |
|
826 |
@scope public |
|
827 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
828 |
<property name="ats.aste.email.list" value="" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
829 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
830 |
|
628 | 831 |
|
832 |
<macrodef name="getModuleTsrcMacro" uri="http://www.nokia.com/helium"> |
|
833 |
<attribute name="property" /> |
|
834 |
<attribute name="prefix"/> |
|
835 |
<sequential> |
|
836 |
<if> |
|
837 |
<istrue value="${sysdef3.enabled}" /> |
|
838 |
<then> |
|
839 |
<hlm:filterSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
|
840 |
destfile="${build.drive}/output/build/canonical_system_definition_filtered_ats_test.xml"> |
|
841 |
<filterSet> |
|
842 |
<filter filter="test" /> |
|
843 |
</filterSet> |
|
844 |
||
845 |
<filterSet refid="${ats.test.filterset}" /> |
|
846 |
</hlm:filterSysdef> |
|
847 |
<hlm:getModuleTsrcInternalMacro property="@{property}" prefix="@{prefix}" sysdef="${build.drive}/output/build/canonical_system_definition_filtered_ats_test.xml" /> |
|
848 |
</then> |
|
849 |
<else> |
|
850 |
<hlm:getModuleTsrcInternalMacro property="@{property}" prefix="@{prefix}" sysdef="${canonical.sysdef.file}" /> |
|
851 |
</else> |
|
852 |
</if> |
|
853 |
</sequential> |
|
854 |
</macrodef> |
|
855 |
||
588 | 856 |
<!-- This macro fetches the tsrc paths from system definition file (layers.sysdef.xml). |
857 |
||
858 |
The layer defintion should look like: |
|
859 |
||
860 |
<layer name="name_test_layer"> |
|
861 |
<module name="module_name"> |
|
862 |
<unit id="unit_id" name="unti_name" bldFile="path_of_tsrc_folder_to_be_built" filter="" /> |
|
863 |
</module> |
|
864 |
</layer> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
865 |
--> |
628 | 866 |
<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
|
867 |
<attribute name="property" /> |
179 | 868 |
<attribute name="prefix"/> |
628 | 869 |
<attribute name="sysdef"/> |
179 | 870 |
import traceback |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
871 |
import os |
179 | 872 |
import atsant |
873 |
from com.nokia.ant.util import Helper |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
874 |
|
628 | 875 |
canonicalsysdeffile = attributes.get('sysdef') |
876 |
createsingledropfile = project.getProperty('internal.ats.singledrop.enabled') |
|
877 |
sysdef3 = atsant.get_boolean(str(project.getProperty('sysdef3.enabled'))) |
|
878 |
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
|
879 |
|
179 | 880 |
for name in modules.keys(): |
881 |
if modules[name] == []: |
|
882 |
del modules[name] |
|
883 |
else: |
|
884 |
project.setProperty("%s.%s" % (attributes.get('prefix'), name), " ".join(modules[name])) |
|
628 | 885 |
|
886 |
if modules == {}: |
|
887 |
raise Exception('No test modules found in ' + canonicalsysdeffile) |
|
888 |
||
179 | 889 |
project.setProperty(attributes.get('property'), ",".join(modules.keys())) |
890 |
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
|
891 |
</scriptdef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
892 |
|
179 | 893 |
<!-- The target is dependent on "ats-test", should not be called individually. The target creates the ATSdrop.zip file including test:xml file --> |
587 | 894 |
<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
|
895 |
<mkdir dir="${build.output.dir}/ats" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
896 |
<hlm:getModuleTsrcMacro property="module.list" prefix="module.tsrc" /> |
628 | 897 |
<for list="${module.list}" delimiter="," param="module"> |
898 |
<sequential> |
|
899 |
<runtarget target="ats-set-defaults-stifeunit" /> |
|
900 |
<exec executable="python"> |
|
901 |
<arg line="-m ats3.__init__" /> |
|
902 |
<arg value="--device-type=${ats.product.name}" /> |
|
903 |
<arg value="--device-hwid=${ats.product.hwid}" /> |
|
904 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
905 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
906 |
<arg value="--report-email=${ats.email.list}" /> |
|
907 |
<arg value="--report-type=${ats.report.type}" /> |
|
908 |
<arg value="--plan-name=${ats.plan.name}" /> |
|
909 |
<arg value="--testrun-name=${ats.testrun.name}_@{module}" /> |
|
910 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
911 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
912 |
<arg value="--target-platform=${ats.target.platform}" /> |
|
913 |
<arg value="--data-dir=${tsrc.data.dir}" /> |
|
914 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
915 |
<arg value="--build-drive=${build.drive}" /> |
|
916 |
<arg value="--trace-enabled=${ats.trace.enabled}" /> |
|
917 |
<arg value="--ctc-enabled=${ats.ctc.enabled}" /> |
|
918 |
<arg value="--multiset-enabled=${ats.multiset.enabled}" /> |
|
919 |
<arg value="--file-store=${ats.report.location}" /> |
|
920 |
<arg value="--eunitexerunner-flags=${eunitexerunner.flags}" /> |
|
921 |
<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 --> |
|
922 |
<arg value="--monsym-files=${ats.ctc.monsyms}" /> |
|
923 |
<arg value="--config=${ats.config.file}" /> |
|
924 |
<arg value="--obey-pkgfiles=${internal.ats.obey.pkgfiles.rule.enabled}" /> |
|
925 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
|
645 | 926 |
<arg value="--ats-stf-enabled=${ats.stf.enabled}" /> |
628 | 927 |
<arg value="--specific-pkg=${ats.specific.pkg}" /> |
928 |
<arg value="--hti=${ats.hti.enabled}" /> |
|
645 | 929 |
<arg value="--minimum-execution-blocks=${ats.minimum.execution.blocks.enabled}" /> |
628 | 930 |
<arg value="--verbose" /> |
931 |
<arg line="${module.tsrc.@{module}}" /> |
|
932 |
</exec> |
|
933 |
<antcall target="do-ats-test" /> |
|
934 |
<math result="drop.file.counter" operand1="1" operation="+" operand2="${drop.file.counter}" datatype="int" /> |
|
935 |
</sequential> |
|
936 |
</for> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
937 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
938 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
939 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
940 |
<!-- Please see ats-aste for description.--> |
628 | 941 |
<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
|
942 |
<mkdir dir="${build.output.dir}/ats" /> |
179 | 943 |
<exec executable="python"> |
217 | 944 |
<arg line="-m ats3.aste" /> |
179 | 945 |
<arg value="--report-email=${ats.aste.email.list}" /> |
946 |
<arg value="--device-type=${ats.product.name}" /> |
|
947 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
948 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
949 |
<arg value="--plan-name=${ats.aste.plan.name}" /> |
|
950 |
<arg value="--testrun-name=${ats.aste.testrun.name}" /> |
|
951 |
<arg value="--device-hwid=${ats.product.hwid}" /> |
|
952 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
953 |
<arg value="--build-drive=${build.drive}" /> |
|
954 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
955 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
956 |
<arg value="--test-type=${ats.aste.test.type}" /> |
|
957 |
<arg value="--testasset-location=${ats.aste.testasset.location}" /> |
|
958 |
<arg value="--testasset-caseids=${ats.aste.testasset.caseids}" /> |
|
959 |
<arg value="--software-version=${ats.aste.software.version}" /> |
|
960 |
<arg value="--device-language=${ats.aste.language}" /> |
|
961 |
<arg value="--software-release=${ats.aste.software.release}" /> |
|
628 | 962 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
179 | 963 |
<arg value="--verbose" /> |
964 |
</exec> |
|
965 |
<runtarget target="do-ats-test" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
966 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
967 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
968 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
969 |
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
|
970 |
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
|
971 |
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
|
972 |
--> |
628 | 973 |
<target name="copy-mon-sym" if="internal.ats.ctc.enabled"> |
179 | 974 |
<if> |
628 | 975 |
<istrue value="${internal.ats4.enabled}"/> |
179 | 976 |
<then> |
628 | 977 |
<var name="ats.ctc.host" value="${diamonds.host}"/> |
978 |
</then> |
|
979 |
</if> |
|
980 |
<fmpp sourceFile="${helium.dir}/tools/testing/ats/templates/monsym-file-list.txt.ftl" |
|
981 |
outputFile="${temp.build.dir}/monsym-file-list.txt"> |
|
982 |
<data expandProperties="yes"> |
|
983 |
data: xml(${canonical.sysdef.file}) |
|
984 |
ant: antProperties() |
|
985 |
</data> |
|
986 |
</fmpp> |
|
987 |
<hlm:path2file reference="mon.sym.list" file="${temp.build.dir}/monsym-file-list.txt" /> |
|
988 |
<script language="jython"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
989 |
import os |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
990 |
import ctc |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
991 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
992 |
if not project.getProperty('ats.ctc.host'): |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
993 |
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
|
994 |
if not project.getProperty('diamonds.build.id'): |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
995 |
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
|
996 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
997 |
server = project.getProperty('ats.ctc.host') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
998 |
diamondsid = os.path.basename(os.path.dirname(project.getProperty('diamonds.build.id'))) |
628 | 999 |
if project.getProperty('internal.ats4.enabled') != 'true': |
1000 |
diamondsid = r'ctc_helium/' + diamondsid |
|
1001 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1002 |
path = project.getReference('mon.sym.list') |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1003 |
if not path: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1004 |
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
|
1005 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1006 |
uploader = ctc.MonSymFTPUploader(server, path.list(), diamondsid) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1007 |
monsyms = uploader.upload() |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1008 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1009 |
# 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
|
1010 |
project.setNewProperty('ats.ctc.monsyms', ';'.join([ "//%s/%s" % (server, x) for x in monsyms])) |
628 | 1011 |
</script> |
1012 |
<echo>ats.ctc.monsyms: ${ats.ctc.monsyms}</echo> |
|
179 | 1013 |
</target> |
1014 |
||
217 | 1015 |
<!-- Temp dir |
1016 |
@type string |
|
1017 |
@scope private |
|
1018 |
--> |
|
179 | 1019 |
<property name="ats.evalid.pre" value="${temp.build.dir}/${build.id}_atsevalidpre" /> |
217 | 1020 |
<!-- Temp dir |
1021 |
@type string |
|
1022 |
@scope private |
|
1023 |
--> |
|
179 | 1024 |
<property name="ats.evalid.post" value="${temp.build.dir}/${build.id}_atsevalidpost" /> |
1025 |
||
1026 |
<!-- Call before preperation --> |
|
628 | 1027 |
<target name="find-files-pre" if="internal.ats.delta.enabled"> |
179 | 1028 |
<hlm:evalidMacro dir="${ats.evalid.pre}"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1029 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1030 |
|
179 | 1031 |
<!-- Call after preperation --> |
628 | 1032 |
<target name="find-files-post" if="internal.ats.delta.enabled"> |
179 | 1033 |
<hlm:evalidMacro dir="${ats.evalid.post}"/> |
1034 |
</target> |
|
1035 |
||
1036 |
<!-- Run evalid on ido directories --> |
|
1037 |
<macrodef name="evalidMacro" uri="http://www.nokia.com/helium"> |
|
1038 |
<attribute name="dir"/> |
|
1039 |
<sequential> |
|
645 | 1040 |
<property name="evalid.mapping.file" location="${build.output.dir}/build/ado_mapping_evalid.ini" /> |
1041 |
<hlm:createAdoMappingMacro adoMapFile="${evalid.mapping.file}" /> |
|
179 | 1042 |
<hlm:python> |
1043 |
import delta_zip |
|
645 | 1044 |
delta_zip.evalidAdomapping(r'${build.drive}', r'@{dir}', r'${evalid.mapping.file}') |
179 | 1045 |
</hlm:python> |
1046 |
</sequential> |
|
1047 |
</macrodef> |
|
1048 |
||
1049 |
<!-- Generate sysdef fileset based on evalid data --> |
|
628 | 1050 |
<target name="ats-delta" if="internal.ats.delta.enabled"> |
179 | 1051 |
<script language="jython"> |
1052 |
import ido |
|
1053 |
from com.nokia.ant.util import Helper |
|
1054 |
import delta_zip |
|
1055 |
import os |
|
1056 |
||
1057 |
atspath = project.createDataType("path") |
|
1058 |
i = project.getReference('system.definition.files').iterator() |
|
1059 |
changedfiles = delta_zip.changedFiles(Helper.getProperty(project, 'ats.evalid.pre'), Helper.getProperty(project, 'ats.evalid.post')) |
|
1060 |
while i.hasNext(): |
|
1061 |
path = i.next().toString() |
|
1062 |
sysdefpath = os.path.abspath(os.path.join(project.getProperty('build.drive') + os.sep, ido.get_sysdef_location(path))) |
|
1063 |
for f in changedfiles: |
|
1064 |
if sysdefpath.lower() in os.path.abspath(f).lower(): |
|
1065 |
pe = atspath.createPathElement() |
|
1066 |
pe.setPath(path) |
|
1067 |
break |
|
1068 |
project.addReference('ats.system.definition.files', atspath) |
|
1069 |
</script> |
|
1070 |
</target> |
|
1071 |
||
645 | 1072 |
<!-- Common target to run ats, aste and TDriver --> |
1073 |
<target name="run-test" depends="ats-test,ats-aste,tdriver-test"/> |
|
587 | 1074 |
|
1075 |
<!-- Zip build area for emulator --> |
|
628 | 1076 |
<target name="ats-emulator-zip" if="internal.ats.emulator.enabled"> |
587 | 1077 |
<property name="zips.emulator_zip.spec.name" value="emulator_zip"/> |
588 | 1078 |
<hlm:zipContentMacro type="emulator_zip" file="${helium.dir}/tools/testing/ats/emulator_zip.cfg.xml" /> |
587 | 1079 |
|
1080 |
<if> |
|
1081 |
<isset property="ats.drop.location" /> |
|
1082 |
<then> |
|
1083 |
<property name="ats.flash.images" value="${ats.drop.location}\${build.id}_emulator_urel.zip"/> |
|
1084 |
<copy file="${build.output.dir}/ats/${build.id}_emulator_urel.zip" tofile="${ats.flash.images}" /> |
|
1085 |
</then> |
|
1086 |
<else> |
|
1087 |
<property name="ats.flash.images" value="${build.output.dir}/ats/${build.id}_emulator_urel.zip"/> |
|
1088 |
</else> |
|
1089 |
</if> |
|
1090 |
</target> |
|
588 | 1091 |
|
1092 |
<!-- Generate and upload drop using custom template --> |
|
1093 |
<target name="ats-custom-drop"> |
|
1094 |
<mkdir dir="${build.output.dir}/ats" /> |
|
1095 |
<runtarget target="ats-set-flash-image-path" /> |
|
1096 |
<runtarget target="ats-set-defaults-stifeunit" /> |
|
1097 |
<property name="ats.custom.template" value="${helium.dir}/tools/testing/ats/templates/ats4_naviengine_template.xml"/> |
|
1098 |
<exec executable="python"> |
|
1099 |
<arg line="-Wignore -m ats3.custom" /> |
|
1100 |
<arg value="--custom-template=${ats.custom.template}" /> |
|
1101 |
<arg value="--device-type=${ats.product.name}" /> |
|
1102 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
1103 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
1104 |
<arg value="--report-email=${ats.email.list}" /> |
|
1105 |
<arg value="--testrun-name=${ats.testrun.name}" /> |
|
1106 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
1107 |
<arg value="--test-timeout=${ats.test.timeout}" /> |
|
1108 |
<arg value="--test-type=${ats.custom.test.type}" /> |
|
1109 |
</exec> |
|
1110 |
<runtarget target="do-ats-test" /> |
|
1111 |
</target> |
|
1112 |
||
645 | 1113 |
<!-- a dependant target please do not call directly use tdriver-test, |
1114 |
target calls the TDriver script that creates the TDriver_drop.zip file and runs the tests |
|
628 | 1115 |
listed in test.rb. ats-set-flash-image-path and ats-set-sis-flash-image-path look for lists of files--> |
645 | 1116 |
<target name="do-ats-tdriver" depends="ats-set-flash-image-path" > |
628 | 1117 |
<runtarget target="ats-set-defaults-stifeunit" /> |
645 | 1118 |
|
1119 |
<!-- Separate but similar property to ats.test.timeout for TDriver tests. |
|
1120 |
@type string |
|
1121 |
@editable required |
|
1122 |
@scope public |
|
1123 |
--> |
|
1124 |
<property name="tdriver.test.timeout" value="60" /> |
|
1125 |
<!-- There are special sis files required to execute with test execution. This is a comma separated list in which several sis files can be deifned in a certain format like '<src file on build area>#<destination to save the file on memory card>#<destination to install the file>' e.g. <x:dir1abc.sis#f:memory1abc.sis#c:phonememoryprivateabc.sis> |
|
1126 |
@type string |
|
1127 |
@editable required |
|
1128 |
@scope public |
|
1129 |
--> |
|
1130 |
<property name="tdriver.sis.files" value=""/> |
|
1131 |
<!-- TDrunner parameters are set using this property. e.g. 'teardown ordered'. |
|
1132 |
@type string |
|
1133 |
@editable required |
|
1134 |
@scope public |
|
1135 |
--> |
|
1136 |
<property name="tdriver.tdrunner.parameters" value=""/> |
|
1137 |
<!-- TDriver test parameters can be given through TDriver parameters xml file. |
|
1138 |
@type string |
|
1139 |
@editable required |
|
1140 |
@scope public |
|
1141 |
--> |
|
1142 |
<property name="tdriver.parameters" value=""/> |
|
1143 |
<!-- Alias name for the test cases to be used in test.xml files for ATS4 drops only. |
|
1144 |
@type string |
|
1145 |
@scope public |
|
1146 |
@since 11.0 |
|
1147 |
--> |
|
1148 |
<property name="ats.alias.name" value="sut_s60"/> |
|
1149 |
<!-- The Subject for the ATS report email. This email is received in the end of the test execution. |
|
1150 |
@type string |
|
1151 |
@scope public |
|
1152 |
--> |
|
1153 |
<property name="ats.email.subject" value="${build.id} TDriver test results"/> |
|
1154 |
<!-- This specifies email format. E.g. to receive email without attachment 'simplelogger'. |
|
1155 |
@type string |
|
1156 |
@scope public |
|
1157 |
--> |
|
1158 |
<property name="ats.email.format" value="simplelogger"/> |
|
1159 |
<fail unless="tdriver.asset.location" message="Error: tdriver.asset.location property not defined" /> |
|
1160 |
||
628 | 1161 |
<!--need to set theseup for use by do-ats-test target--> |
1162 |
<mkdir dir="${build.output.dir}/ats" /> |
|
645 | 1163 |
<var name="ats.drop.file" value="ATSTDriverDrop.zip" /> |
1164 |
<!-- execute the tdriver.py script with parameters--> |
|
628 | 1165 |
<exec executable="python" resultproperty="script.response"> |
645 | 1166 |
<arg line="-m ats3.tdriver" /> |
628 | 1167 |
<arg value="--build-drive=${build.drive}" /> |
645 | 1168 |
<arg value="--test-profiles=${tdriver.test.profiles}" /> <!--"all, !bat1" --> |
1169 |
<arg value="--tdrunner-enabled=${tdriver.tdrunner.enabled}" /> <!--"true/false" --> |
|
1170 |
<arg value="--tdriver-timeout=${tdriver.test.timeout}" /> <!--"600" --> |
|
628 | 1171 |
<arg value="${internal.ats.diamonds.arg}" /> |
645 | 1172 |
<arg value="--testasset-location=${tdriver.asset.location}" /> <!--"local and/or network drive" --> |
1173 |
<arg value="--file-store=${ats.report.location}" /> <!--"network drive" --> |
|
1174 |
<arg value="--testrun-name=${ats.testrun.name}" /> <!--"TDriver_Profile_Name" --> |
|
628 | 1175 |
<arg value="--alias-name=${ats.alias.name}" /> <!--"agents_alias_Name" --> |
1176 |
<arg value="--device-type=${ats.product.name}" /> |
|
1177 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
1178 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
1179 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
645 | 1180 |
<arg value="--template-loc=${tdriver.template.file}" /> <!--"local and/or network drive. No comma separated list" --> |
628 | 1181 |
<arg value="--email-format=${ats.email.format}" /> <!--"Email Formatting. e.g. simplelogger" --> |
645 | 1182 |
<arg value="--email-subject=${ats.email.subject}" /> <!--"Email Subject. e.g. TDriver testing" --> |
628 | 1183 |
<arg value="--report-email=${ats.email.list}" /> |
1184 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
|
645 | 1185 |
<arg value="--tdriver-sis-files=${tdriver.sis.files}" /> <!--"src#store#dst, src#store#dst" --> |
1186 |
<arg value="--tdriver-parameters=${tdriver.parameters}" /> |
|
1187 |
<arg value="--tdrunner-parameters=${tdriver.tdrunner.parameters}" /> <!--Additional TDrunner parameters for tdriver task e.g. ordered teardown --> |
|
1188 |
<arg value="--ctc-enabled=${ats.ctc.enabled}" /> |
|
628 | 1189 |
</exec> |
1190 |
<runtarget target="do-ats-test" /> |
|
1191 |
</target> |
|
1192 |
||
645 | 1193 |
<!-- The target is used to test ROM image files that whether device boots up --> |
1194 |
<target name="ats-bootup-test" depends="ats-common,ats-set-flash-image-path" if="internal.ats.bootuptest.enabled"> |
|
1195 |
<!--need to set the setup for use by do-ats-test target--> |
|
1196 |
<mkdir dir="${build.output.dir}/ats" /> |
|
1197 |
<var name="ats.drop.file" value="ATSBootupDrop.zip" /> |
|
1198 |
<!-- execute the bootup_testing.py script with parameters--> |
|
1199 |
<exec executable="python" resultproperty="script.response"> |
|
1200 |
<arg line="-m ats3.bootup_testing" /> |
|
1201 |
<arg value="--build-drive=${build.drive}" /> |
|
1202 |
<arg value="${internal.ats.diamonds.arg}" /> |
|
1203 |
<arg value="--file-store=${ats.report.location}" /> <!--"network drive" --> |
|
1204 |
<arg value="--testrun-name=${ats.testrun.name}" /> <!--"bootup_test" --> |
|
1205 |
<arg value="--alias-name=${ats.alias.name}" /> <!--"agents_alias_Name" --> |
|
1206 |
<arg value="--device-type=${ats.product.name}" /> |
|
1207 |
<arg value="--flash-images=${ats.flash.images}" /> |
|
1208 |
<arg value="--drop-file=${build.output.dir}/ats/${ats.drop.file}" /> |
|
1209 |
<arg value="--minimum-flash-images=${ats.flashfiles.minlimit}" /> |
|
1210 |
<arg value="--email-format=${ats.email.format}" /> <!--"Email Formatting. e.g. simplelogger" --> |
|
1211 |
<arg value="--email-subject=${ats.email.subject}" /> <!--"Email Subject. e.g. TDriver testing" --> |
|
1212 |
<arg value="--report-email=${ats.email.list}" /> |
|
1213 |
<arg value="--ats4-enabled=${internal.ats4.enabled}" /> |
|
1214 |
</exec> |
|
1215 |
<runtarget target="do-ats-test" /> |
|
1216 |
</target> |
|
628 | 1217 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1218 |
</project> |