587
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : func_add_test.ant.xml
|
|
5 |
Part of : Helium AntLib
|
|
6 |
|
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
All rights reserved.
|
|
9 |
This component and the accompanying materials are made available
|
|
10 |
under the terms of the License "Eclipse Public License v1.0"
|
|
11 |
which accompanies this distribution, and is available
|
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
|
|
14 |
Initial Contributors:
|
|
15 |
Nokia Corporation - initial contribution.
|
|
16 |
|
|
17 |
Contributors:
|
|
18 |
|
|
19 |
Description:
|
|
20 |
|
|
21 |
============================================================================
|
|
22 |
-->
|
|
23 |
<project name="test-metadata-regex" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>Helium Antlib metadata unittests.</description>
|
|
25 |
|
|
26 |
<dirname property="project.dir" file="${ant.file.test-metadata-regex}" />
|
|
27 |
|
|
28 |
<path id="lib.path">
|
|
29 |
<fileset dir="${project.dir}/../../../../bin" includes="*.jar"/>
|
|
30 |
</path>
|
|
31 |
|
|
32 |
<taskdef resource="com/nokia/helium/metadata/ant/antlib.xml" classpathref="lib.path" uri="http://www.nokia.com/helium" />
|
|
33 |
<taskdef name="fmpp" classname="fmpp.tools.AntTask" classpathref="lib.path" onerror="report"/>
|
|
34 |
|
|
35 |
|
|
36 |
<hlm:metadatafilterset id="all-regex-filterfile">
|
|
37 |
<metadatafilterset filterfile="${project.dir}/../data/metadata_regex.csv" />
|
|
38 |
</hlm:metadatafilterset>
|
|
39 |
|
|
40 |
<target name="s60-clean-log">
|
|
41 |
<delete file="${project.dir}/../output/log_s60_filterfile.sqlite" failonerror="false"/>
|
|
42 |
<echo message="all regular expression validation" />
|
|
43 |
<echo message="database:${project.dir}/../output/log_s60_filterfile.sqlite" />
|
|
44 |
<hlm:metadatarecord database="${project.dir}/../output/log_s60_filterfile.sqlite">
|
|
45 |
<hlm:sbsmetadatainput>
|
|
46 |
<fileset dir="${project.dir}/../data/">
|
|
47 |
<include name="mcl_7952_200950_wk50_02_dfs_build_sf_armv5.log"/>
|
|
48 |
</fileset>
|
|
49 |
<metadatafilterset refid="all-regex-filterfile" />
|
|
50 |
</hlm:sbsmetadatainput>
|
|
51 |
</hlm:metadatarecord>
|
|
52 |
</target>
|
|
53 |
|
|
54 |
|
|
55 |
<hlm:metadatafilterset id="text_log_metadata_input">
|
|
56 |
<metadatafilterset filterfile="${project.dir}/../data/common.csv" />
|
|
57 |
</hlm:metadatafilterset>
|
|
58 |
|
|
59 |
|
|
60 |
<target name="log-metadata-input">
|
|
61 |
<delete file="${project.dir}/../output/log_text_metadata_input.sqlite" failonerror="false" />
|
|
62 |
<echo message="text log metadata input validation" />
|
|
63 |
<echo message="database:${project.dir}/../output/log_text_metadata_input.sqlite" />
|
|
64 |
<parallel>
|
|
65 |
<hlm:metadatarecord database="${project.dir}/../output/log_text_metadata_input.sqlite">
|
|
66 |
<hlm:sbsmetadatainput>
|
|
67 |
<fileset dir="${project.dir}/../data/">
|
|
68 |
<include name="mcl_7952_201002_wk02_010_dfs_build_sf_tools.log"/>
|
|
69 |
</fileset>
|
|
70 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
71 |
</hlm:sbsmetadatainput>
|
|
72 |
</hlm:metadatarecord>
|
|
73 |
<!--
|
|
74 |
<hlm:metadatarecord database="${project.dir}/../output/log_text_metadata_input.sqlite">
|
|
75 |
<hlm:textmetadatainput>
|
|
76 |
<fileset dir="${project.dir}/../data/">
|
|
77 |
<include name="pf_5250_2009_wk50_TUE.roms_part1.log"/>
|
|
78 |
</fileset>
|
|
79 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
80 |
</hlm:textmetadatainput>
|
|
81 |
</hlm:metadatarecord>
|
|
82 |
-->
|
|
83 |
</parallel>
|
|
84 |
</target>
|
|
85 |
|
|
86 |
<target name="log-metadata-read">
|
|
87 |
<delete file="${project.dir}/../output/log_text_metadata_input.sqlite" failonerror="false" />
|
|
88 |
<echo message="text log metadata input validation" />
|
|
89 |
<echo message="database:${project.dir}/../output/log_text_metadata_input.sqlite" />
|
|
90 |
<parallel>
|
|
91 |
<hlm:metadataread database="${project.dir}/../output/log_text_metadata_input.sqlite">
|
|
92 |
<fileset dir="${project.dir}/../data/">
|
|
93 |
<include name="pf_5250_2009_wk50_TUE.roms.log"/>
|
|
94 |
</fileset>
|
|
95 |
</hlm:metadataread>
|
|
96 |
|
|
97 |
<hlm:metadataread database="${project.dir}/../output/log_text_metadata_input.sqlite">
|
|
98 |
<fileset dir="${project.dir}/../data/">
|
|
99 |
<include name="pf_5250_2009_wk50_TUE.roms1.log"/>
|
|
100 |
</fileset>
|
|
101 |
</hlm:metadataread>
|
|
102 |
</parallel>
|
|
103 |
</target>
|
|
104 |
|
|
105 |
<target name="parallel-record_test">
|
|
106 |
<!-- <delete file="${project.dir}/../output/s60_parallel.sqlite" failonerror="false" /> -->
|
|
107 |
<!--
|
|
108 |
<parallel>
|
|
109 |
<sequential>
|
|
110 |
<echo message="sbs parallel input validation" />
|
|
111 |
<echo message="database:${project.dir}/../output/s60_parallel.db" />
|
|
112 |
<hlm:metadatarecord database="${project.dir}/../output/s60_parallel.sqlite">
|
|
113 |
<hlm:sbsmetadatainput>
|
|
114 |
<fileset dir="${project.dir}/../data/">
|
|
115 |
<include name="*s60_1.log"/>
|
|
116 |
</fileset>
|
|
117 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
118 |
</hlm:sbsmetadatainput>
|
|
119 |
</hlm:metadatarecord>
|
|
120 |
</sequential>
|
|
121 |
<sequential>
|
|
122 |
<echo message="sbs parallel input validation" />
|
|
123 |
<echo message="database:${project.dir}/../output/s60_parallel.sqlite" />
|
|
124 |
<hlm:metadatarecord database="${project.dir}/../output/s60_parallel.sqlite">
|
|
125 |
<hlm:sbsmetadatainput>
|
|
126 |
<fileset dir="${project.dir}/../data/">
|
|
127 |
<include name="*s60_2.log"/>
|
|
128 |
</fileset>
|
|
129 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
130 |
</hlm:sbsmetadatainput>
|
|
131 |
</hlm:metadatarecord>
|
|
132 |
</sequential>
|
|
133 |
<sequential>
|
|
134 |
<echo message="sbs parallel input validation" />
|
|
135 |
<echo message="database:${project.dir}/../output/s60_parallel.sqlite" />
|
|
136 |
<hlm:metadatarecord database="${project.dir}/../output/s60_parallel.sqlite">
|
|
137 |
<hlm:sbsmetadatainput>
|
|
138 |
<fileset dir="${project.dir}/../data/">
|
|
139 |
<include name="*s60_3.log"/>
|
|
140 |
</fileset>
|
|
141 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
142 |
</hlm:sbsmetadatainput>
|
|
143 |
</hlm:metadatarecord>
|
|
144 |
</sequential>
|
|
145 |
</parallel> -->
|
|
146 |
<fmpp sourceFile="${project.dir}/../../src/templates/scan2.html.ftl"
|
|
147 |
outputfile="${project.dir}/../output/s60_scan2.html">
|
|
148 |
<freemarkerLinks expandProperties="yes">
|
|
149 |
macro: ${project.dir}/../../src/templates
|
|
150 |
</freemarkerLinks>
|
|
151 |
<data expandProperties="yes">
|
|
152 |
dbPath: ${project.dir}/../output/s60_parallel.sqlite
|
|
153 |
doc: xml(${project.dir}/../data/s60_info.xml)
|
|
154 |
ant: antProperties()
|
|
155 |
</data>
|
|
156 |
</fmpp>
|
|
157 |
<hlm:generateBuildStatus dbfile="${project.dir}/../output/s60_parallel.sqlite" output-dir="${env.TEMP}" file="test-scanlog-metadata-1.log"/>
|
|
158 |
</target>
|
|
159 |
|
|
160 |
|
|
161 |
<target name="all-s60-logs">
|
|
162 |
<delete file="${project.dir}/../output/all_s60_logs_db" failonerror="false" />
|
|
163 |
<echo message="all s60 logs being processed" />
|
|
164 |
<hlm:metadatarecord database="${project.dir}/../output/all_s60_logs_db">
|
|
165 |
<hlm:sbsmetadatainput>
|
|
166 |
<fileset dir="${project.dir}/../data/s60_logs/logs/compile">
|
|
167 |
<include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_export.log"/>
|
|
168 |
<include name="92_7952_RAPTOR_201004_wk04_02.qt_tools2_compile.log"/>
|
|
169 |
<include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_dfs_variants.log"/>
|
|
170 |
<include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_tools.log"/>
|
|
171 |
<include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log"/>
|
|
172 |
<include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_tools.log"/>
|
|
173 |
<include name="92_7952_RAPTOR_201004_wk04_02_s60_bldmelast_arm9e.log"/>
|
|
174 |
</fileset>
|
|
175 |
<metadatafilterset refid="all-regex-filterfile" />
|
|
176 |
</hlm:sbsmetadatainput>
|
|
177 |
</hlm:metadatarecord>
|
|
178 |
</target>
|
|
179 |
|
|
180 |
<target name="all-ido-logs">
|
|
181 |
<delete file="${project.dir}/../output/all_ido_logs.sqlite" failonerror="false" />
|
|
182 |
<echo message="text log metadata input validation" />
|
|
183 |
<hlm:metadatarecord database="${project.dir}/../output/all_ido_logs.sqlite">
|
|
184 |
<hlm:textmetadatainput>
|
|
185 |
<fileset dir="${project.dir}/../data/ido_logs">
|
|
186 |
<include name="*.log"/>
|
|
187 |
<exclude name="*_ant_*.log"/>
|
|
188 |
</fileset>
|
|
189 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
190 |
</hlm:textmetadatainput>
|
|
191 |
<hlm:antmetadatainput>
|
|
192 |
<fileset dir="${project.dir}/../data/ido_logs">
|
|
193 |
<include name="*_ant_*.log"/>
|
|
194 |
</fileset>
|
|
195 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
196 |
</hlm:antmetadatainput>
|
|
197 |
</hlm:metadatarecord>
|
|
198 |
</target>
|
|
199 |
|
|
200 |
<target name="abld-ido-logs">
|
|
201 |
<delete file="${project.dir}/../output/abld_ido_logs.sqlite" failonerror="false" />
|
|
202 |
<echo message="text log metadata input validation" />
|
|
203 |
<hlm:metadatarecord database="${project.dir}/../output/abld_ido_logs.sqlite">
|
|
204 |
<hlm:abldmetadatainput>
|
|
205 |
<fileset dir="${project.dir}/../data/ido_abld_logs">
|
|
206 |
<include name="*_compile*.log"/>
|
|
207 |
</fileset>
|
|
208 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
209 |
</hlm:abldmetadatainput>
|
|
210 |
</hlm:metadatarecord>
|
|
211 |
</target>
|
|
212 |
|
|
213 |
<target name="test-old-schema">
|
|
214 |
<copy file="${project.dir}/../output/old_schema_log.sqlite"
|
|
215 |
tofile="${project.dir}/../output/old_schema_log.sqlite_bak" />
|
|
216 |
<echo message="text log metadata input validation" />
|
|
217 |
<hlm:metadatarecord database="${project.dir}/../output/old_schema_log.sqlite">
|
|
218 |
<hlm:abldmetadatainput>
|
|
219 |
<fileset dir="${project.dir}/../data">
|
|
220 |
<include name="sample_abld.log"/>
|
|
221 |
</fileset>
|
|
222 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
223 |
</hlm:abldmetadatainput>
|
|
224 |
</hlm:metadatarecord>
|
|
225 |
|
|
226 |
<delete file="${project.dir}/../output/old_schema_log.sqlite" />
|
|
227 |
<copy file="${project.dir}/../output/old_schema_log.sqlite_bak"
|
|
228 |
tofile="${project.dir}/../output/old_schema_log.sqlite"
|
|
229 |
failonerror="false" />
|
|
230 |
|
|
231 |
</target>
|
|
232 |
|
|
233 |
<target name="ant-ido-logs">
|
|
234 |
<delete file="${project.dir}/../output/ant_ido_logs.sqlite" failonerror="false" />
|
|
235 |
<echo message="text log metadata input validation" />
|
|
236 |
<hlm:metadatarecord database="${project.dir}/../output/ant_ido_logs.sqlite">
|
|
237 |
<hlm:antmetadatainput>
|
|
238 |
<fileset dir="${project.dir}/../data/ido_logs">
|
|
239 |
<include name="*_ant_*.log"/>
|
|
240 |
</fileset>
|
|
241 |
<metadatafilterset refid="text_log_metadata_input" />
|
|
242 |
</hlm:antmetadatainput>
|
|
243 |
</hlm:metadatarecord>
|
|
244 |
</target>
|
|
245 |
|
|
246 |
<target name="readdata">
|
|
247 |
<delete file="${project.dir}/../output/readdata.html" failonerror="false" />
|
|
248 |
<fmpp sourceFile="${project.dir}/../../src/templates/readdata.xml.ftl"
|
|
249 |
outputfile="${project.dir}/../output/readdata.html">
|
|
250 |
<freemarkerLinks expandProperties="yes">
|
|
251 |
macro: ${project.dir}/../../src/templates
|
|
252 |
</freemarkerLinks>
|
|
253 |
<data expandProperties="yes">
|
|
254 |
dbPath: ${project.dir}/../output/log_text_metadata_input.sqlite
|
|
255 |
ant: antProperties()
|
|
256 |
</data>
|
|
257 |
</fmpp>
|
|
258 |
</target>
|
|
259 |
|
|
260 |
<target name="readormdata">
|
|
261 |
<delete file="${project.dir}/../output/readdata.html" failonerror="false" />
|
|
262 |
<fmpp sourceFile="${project.dir}/../../src/templates/readormdata.xml.ftl"
|
|
263 |
outputfile="${project.dir}/../output/readdata.html">
|
|
264 |
<freemarkerLinks expandProperties="yes">
|
|
265 |
macro: ${project.dir}/../../src/templates
|
|
266 |
</freemarkerLinks>
|
|
267 |
<data expandProperties="yes">
|
|
268 |
dbPath: ${project.dir}/../output/log_text_metadata_input.sqlite
|
|
269 |
logFile: mcl_7952_201002_wk02_010_dfs_build_sf_tools.log
|
|
270 |
ant: antProperties()
|
|
271 |
</data>
|
|
272 |
</fmpp>
|
|
273 |
</target>
|
|
274 |
|
|
275 |
<target name="generatescanlog">
|
|
276 |
<delete file="${project.dir}/../output/scan2.html" failonerror="false" />
|
|
277 |
<fmpp sourceFile="${project.dir}/../../src/templates/scan2.html.ftl"
|
|
278 |
outputfile="${project.dir}/../output/scan2.html">
|
|
279 |
<freemarkerLinks expandProperties="yes">
|
|
280 |
macro: ${project.dir}/../../src/templates
|
|
281 |
</freemarkerLinks>
|
|
282 |
<data expandProperties="yes">
|
|
283 |
dbPath: ${project.dir}/../output/ido_gsdo_tb92-release_9.0.2735_metadata.sqlite
|
|
284 |
doc: xml(${project.dir}/../output/ido_gsdo_tb92-release_9.0.2735_tools_dfs_build_clean.log.info.xml)
|
|
285 |
ant: antProperties()
|
|
286 |
</data>
|
|
287 |
</fmpp>
|
|
288 |
</target>
|
|
289 |
|
|
290 |
<target name="generatebuildstatus">
|
|
291 |
<delete file="${project.dir}/../output/build_status.xml" failonerror="false" />
|
|
292 |
<fmpp sourceFile="${project.dir}/../../src/templates/build_status.xml.ftl"
|
|
293 |
outputfile="${project.dir}/../output/build_status.xml">
|
|
294 |
<freemarkerLinks expandProperties="yes">
|
|
295 |
macro: ${project.dir}/../../src/templates
|
|
296 |
</freemarkerLinks>
|
|
297 |
<data expandProperties="yes">
|
|
298 |
dbPath: ${project.dir}/../output/all_s60_logs_db
|
|
299 |
doc: xml(${project.dir}/../output/log_text_metadata_input.xml)
|
|
300 |
ant: antProperties()
|
|
301 |
</data>
|
|
302 |
</fmpp>
|
|
303 |
</target>
|
|
304 |
|
|
305 |
|
|
306 |
<target name="generate-diamond-faults">
|
|
307 |
<delete file="${project.dir}/../output/diamonds_faults.xml" failonerror="false" />
|
|
308 |
<fmpp sourceFile="${project.dir}/../../src/templates/diamonds_faults.ftl"
|
|
309 |
outputfile="${project.dir}/../output/diamonds_faults.xml">
|
|
310 |
<freemarkerLinks expandProperties="yes">
|
|
311 |
macro: ${project.dir}/../../src/templates
|
|
312 |
</freemarkerLinks>
|
|
313 |
<data expandProperties="yes">
|
|
314 |
dbPath: ${project.dir}/../output/all_s60_logs_db
|
|
315 |
doc: xml(${project.dir}/../output/log_text_metadata_input.xml)
|
|
316 |
ant: antProperties()
|
|
317 |
</data>
|
|
318 |
</fmpp>
|
|
319 |
</target>
|
|
320 |
|
|
321 |
|
|
322 |
<target name="generate-summary">
|
|
323 |
<delete file="${project.dir}/../output/summary.html" failonerror="false" />
|
|
324 |
<fmpp sourceFile="${project.dir}/../../src/templates/summary_metadata.html.ftl"
|
|
325 |
outputfile="${project.dir}/../output/summary.html">
|
|
326 |
<freemarkerLinks expandProperties="yes">
|
|
327 |
macro: ${project.dir}/../../src/templates/macro
|
|
328 |
</freemarkerLinks>
|
|
329 |
<data expandProperties="yes">
|
|
330 |
dbPath: ${project.dir}/../output/all_s60_logs_db
|
|
331 |
loginfo: xml(${project.dir}/../output/log_text_metadata_input.xml)
|
|
332 |
ant: antProperties()
|
|
333 |
</data>
|
|
334 |
</fmpp>
|
|
335 |
</target>
|
|
336 |
|
|
337 |
<target name="generate-cc-summary">
|
|
338 |
<property name="build.id" value="100.test" />
|
|
339 |
<delete file="${project.dir}/../output/cc-summary.html" failonerror="false" />
|
|
340 |
<fmpp sourceFile="${project.dir}/../../src/templates/cc_summary.html.ftl"
|
|
341 |
outputfile="${project.dir}/../output/cc-summary.html">
|
|
342 |
<freemarkerLinks expandProperties="yes">
|
|
343 |
macro: ${project.dir}/../../src/templates/macro
|
|
344 |
</freemarkerLinks>
|
|
345 |
<data expandProperties="yes">
|
|
346 |
dbPath: ${project.dir}/../output/all_ido_logs.sqlite
|
|
347 |
loginfo: xml(${project.dir}/../data/ido_logs/IDO_lcdo_tb92-ci_MCL.92.64_info.log.xml)
|
|
348 |
ant: antProperties()
|
|
349 |
</data>
|
|
350 |
</fmpp>
|
|
351 |
</target>
|
|
352 |
</project> |