93 output="${env.TEMP}/test-scanlog-3.log" /> |
96 output="${env.TEMP}/test-scanlog-3.log" /> |
94 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log"/> |
97 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log"/> |
95 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.xml"/> |
98 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.xml"/> |
96 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.scan2.html"/> |
99 <hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.scan2.html"/> |
97 </target> |
100 </target> |
98 |
101 |
99 <target name="test-scanlog-metadata-1"> |
102 <target name="s60-compilation-logs"> |
100 <echo message="log.dir:${env.TEMP}/" /> |
103 <mkdir dir="${helium.dir}/tests/data/output/" /> |
101 <delete file="${helium.dir}\tests\data\test-scanlog-metadata-1.log" failonerror="false"/> |
104 <delete file="${helium.dir}\tests\data\test-s60.db" failonerror="false"/> |
102 <delete file="${helium.dir}\tests\data\test-metadata-1.sqlite" failonerror="false"/> |
105 <delete file="${helium.dir}\tests\data\test-s60.scan2.html" failonerror="false"/> |
103 <delete file="${helium.dir}\tests\data\test-scanlog-metadata-1.log.scan2.html" failonerror="false"/> |
106 <hlm:metadatarecord database="${helium.dir}/tests/data/output/test-s60.db"> |
|
107 <hlm:sbsmetadatainput> |
|
108 <fileset dir="${helium.dir}/tests/data/scanlog/s60_logs/logs/compile" casesensitive="false"> |
|
109 <include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_export.log"/> |
|
110 <include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_dfs_variants.log"/> |
|
111 <include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_tools.log"/> |
|
112 <include name="92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log"/> |
|
113 </fileset> |
|
114 <metadatafilterset refid="filterset.sbs" /> |
|
115 </hlm:sbsmetadatainput> |
|
116 </hlm:metadatarecord> |
|
117 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
118 outputfile="${helium.dir}/tests/data/output/92_7952_RAPTOR_201004_wk04_02_dfs_build_export.log.html"> |
|
119 <freemarkerLinks expandProperties="yes"> |
|
120 macro: ${helium.dir}/tools/common/templates/macro |
|
121 </freemarkerLinks> |
|
122 <data expandProperties="yes"> |
|
123 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
124 doc: xml(${helium.dir}/tests/data/scanlog/s60_logs/logs/compile/92_7952_RAPTOR_201004_wk04_02_dfs_build_export.log.info.xml) |
|
125 ant: antProperties() |
|
126 </data> |
|
127 </fmpp> |
|
128 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
129 outputfile="${helium.dir}/tests/data/output/92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_dfs_variants.log.html"> |
|
130 <freemarkerLinks expandProperties="yes"> |
|
131 macro: ${helium.dir}/tools/common/templates/macro |
|
132 </freemarkerLinks> |
|
133 <data expandProperties="yes"> |
|
134 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
135 doc: xml(${helium.dir}/tests/data/scanlog/s60_logs/logs/compile/92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_dfs_variants.log.info.xml) |
|
136 ant: antProperties() |
|
137 </data> |
|
138 </fmpp> |
|
139 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
140 outputfile="${helium.dir}/tests/data/output/92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_tools.log"> |
|
141 <freemarkerLinks expandProperties="yes"> |
|
142 macro: ${helium.dir}/tools/common/templates/macro |
|
143 </freemarkerLinks> |
|
144 <data expandProperties="yes"> |
|
145 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
146 doc: xml(${helium.dir}/tests/data/scanlog/s60_logs/logs/compile/92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_tools.log.info.xml) |
|
147 ant: antProperties() |
|
148 </data> |
|
149 </fmpp> |
|
150 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
151 outputfile="${helium.dir}/tests/data/output/92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log.html"> |
|
152 <freemarkerLinks expandProperties="yes"> |
|
153 macro: ${helium.dir}/tools/common/templates/macro |
|
154 </freemarkerLinks> |
|
155 <data expandProperties="yes"> |
|
156 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
157 doc: xml(${helium.dir}/tests/data/scanlog/s60_logs/logs/compile/92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log.info.xml) |
|
158 ant: antProperties() |
|
159 </data> |
|
160 </fmpp> |
|
161 </target> |
|
162 |
|
163 <target name="diamonds-faults"> |
|
164 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata.ftl" |
|
165 outputfile="${helium.dir}/tests/data/output/compile-main.xml"> |
|
166 <data expandProperties="yes"> |
|
167 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
168 logpath: 92_7952_RAPTOR_201004_wk04_02_dfs_build_export.log |
|
169 ant: antProperties() |
|
170 </data> |
|
171 </fmpp> |
|
172 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata.ftl" |
|
173 outputfile="${helium.dir}/tests/data/output/compile-main-tools.xml"> |
|
174 <data expandProperties="yes"> |
|
175 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
176 logpath: 92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_tools.log |
|
177 ant: antProperties() |
|
178 </data> |
|
179 </fmpp> |
|
180 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata.ftl" |
|
181 outputfile="${helium.dir}/tests/data/output/compile-main-ncp.xml"> |
|
182 <data expandProperties="yes"> |
|
183 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
184 logpath: 92_7952_RAPTOR_201004_wk04_02_dfs_build_ncp_dfs_variants.log |
|
185 ant: antProperties() |
|
186 </data> |
|
187 </fmpp> |
|
188 <fmpp sourceFile="${helium.dir}/tools/common/templates/diamonds/faults_metadata.ftl" |
|
189 outputfile="${helium.dir}/tests/data/output/compile-main-dfs.xml"> |
|
190 <data expandProperties="yes"> |
|
191 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
192 logpath: 92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log |
|
193 ant: antProperties() |
|
194 </data> |
|
195 </fmpp> |
|
196 </target> |
|
197 |
|
198 <target name="email-status-html"> |
|
199 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/email_status.html.ftl" |
|
200 outputfile="${helium.dir}/tests/data/output/email_status.html"> |
|
201 <data expandProperties="yes"> |
|
202 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
203 logpath: 92_7952_RAPTOR_201004_wk04_02_dfs_build_sf_dfs_variants.log |
|
204 ant: antProperties() |
|
205 </data> |
|
206 </fmpp> |
|
207 </target> |
|
208 |
|
209 <target name="summary-html"> |
|
210 |
|
211 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/summary_metadata.html.ftl" |
|
212 outputfile="${helium.dir}/tests/data/output/summary.html"> |
|
213 <freemarkerLinks expandProperties="yes"> |
|
214 macro: ${helium.dir}/tools/common/templates/macro |
|
215 </freemarkerLinks> |
|
216 <data expandProperties="yes"> |
|
217 dbPath: ${helium.dir}/tests/data/output/test-s60.db |
|
218 loginfo: xml(${helium.dir}/tests/data/scanlog/s60_logs/logs/92_7952_RAPTOR_201004_wk04_02_info.log.xml) |
|
219 ant: antProperties() |
|
220 </data> |
|
221 </fmpp> |
|
222 </target> |
|
223 |
|
224 <target name="scanlog-metadata-1"> |
|
225 <echo message="log.dir:${env.TEMP}/" /> |
|
226 <property name="sbslog" value="${helium.dir}/tests/data/test-scanlog-metadata-1.log" /> |
|
227 <property name="whatlog" value="${helium.dir}/tests/data/test-scanlog-metadata-1.log.what1.log" /> |
|
228 <property name="cleanlog" value="${helium.dir}/tests/data/test-scanlog-metadata-1.log.clean1.log" /> |
|
229 <delete file="${sbslog}" failonerror="false"/> |
|
230 <delete file="${whatlog}" failonerror="false"/> |
|
231 <delete file="${cleanlog}" failonerror="false"/> |
|
232 <delete dir="${helium.dir}\tests\data\test-metadata-1_db" failonerror="false"/> |
|
233 <delete file="${sbslog}.scan2.html" failonerror="false"/> |
|
234 <hlm:scanlogMetadataTest whatlog="${whatlog}" cleanlog="${cleanlog}" log="${helium.dir}/tests/data/scanlog/all_regex_type.log" |
|
235 output="${sbslog}" /> |
|
236 <hlm:assertFileExists file="${sbslog}"/> |
|
237 <hlm:metadatarecord database="${helium.dir}/tests/data/test-metadata-1_db"> |
|
238 <hlm:sbsmetadatainput whatLogFile="${whatlog}"> |
|
239 <fileset casesensitive="false" file="${sbslog}"/> |
|
240 <metadatafilterset refid="filterset.sbs" /> |
|
241 </hlm:sbsmetadatainput> |
|
242 </hlm:metadatarecord> |
|
243 <hlm:assertFileExists file="${cleanlog}"/> |
|
244 <hlm:assertFileExists file="${whatlog}"/> |
|
245 <hlm:assertFileExists file="${sbslog}"/> |
|
246 <hlm:assertFileExists file="${sbslog}.sbs_error.log"/> |
|
247 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
248 outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
|
249 <freemarkerLinks expandProperties="yes"> |
|
250 macro: ${helium.dir}/tools/common/templates/macro |
|
251 </freemarkerLinks> |
|
252 <data expandProperties="yes"> |
|
253 dbPath: ${helium.dir}/tests/data/test-metadata-1_db |
|
254 whatLogPath: ${whatlog} |
|
255 doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
|
256 ant: antProperties() |
|
257 </data> |
|
258 </fmpp> |
|
259 <hlm:generateBuildStatus dbfile="${helium.dir}/tests/data/test-metadata-1_db" output-dir="${helium.dir}/tests/data/" file="test-scanlog-metadata-1.log"/> |
|
260 <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"/> |
|
261 </target> |
|
262 |
|
263 <target name="scanlog-metadata-text"> |
|
264 <echo message="log.dir:${env.TEMP}/" /> |
|
265 <delete file="${helium.dir}\tests\data\test-scanlog-metadata-text.log" failonerror="false"/> |
|
266 <delete dir="${helium.dir}\tests\data\test-metadata-1_db" failonerror="false"/> |
|
267 <delete file="${helium.dir}\tests\data\test-scanlog-metadata-text.scan2.html" failonerror="false"/> |
104 |
268 |
105 <hlm:scanlogMetadataTest log="${helium.dir}/tests/data/scanlog/all_regex_type.log" |
269 <hlm:scanlogMetadataTest log="${helium.dir}/tests/data/scanlog/all_regex_type.log" |
|
270 output="${helium.dir}/tests/data/test-scanlog-metadata-text.log" /> |
|
271 <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-text"/> |
|
272 <hlm:metadatarecord database="${helium.dir}/tests/data/test-metadata-1_db"> |
|
273 <hlm:textmetadatainput> |
|
274 <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/> |
|
275 <metadatafilterset refid="filterset.sbs" /> |
|
276 </hlm:textmetadatainput> |
|
277 </hlm:metadatarecord> |
|
278 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_text_orm.html.ftl" |
|
279 outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
|
280 <freemarkerLinks expandProperties="yes"> |
|
281 macro: ${helium.dir}/tools/common/templates/macro |
|
282 </freemarkerLinks> |
|
283 <data expandProperties="yes"> |
|
284 dbPath: ${helium.dir}/tests/data/test-metadata-1_db |
|
285 doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
|
286 ant: antProperties() |
|
287 </data> |
|
288 </fmpp> |
|
289 <hlm:generateBuildStatus dbfile="${helium.dir}/tests/data/test-metadata-1_db" output-dir="${helium.dir}/tests/data/" file="test-scanlog-metadata-1.log"/> |
|
290 <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"/> |
|
291 </target> |
|
292 |
|
293 <target name="scanlog-metadata-whatlog-test"> |
|
294 <echo message="log.dir:${env.TEMP}/" /> |
|
295 <delete dir="${helium.dir}\tests\data\test-metadata-1_db" failonerror="false"/> |
|
296 <delete file="${helium.dir}\tests\data\test-scanlog-metadata-text.scan2.html" failonerror="false"/> |
|
297 |
|
298 <hlm:scanlogMetadataTest log="${helium.dir}/tests/data/scanlog/ido_gsdo_tb92-release_9.0.2859_armv5_dfs_build.log" |
106 output="${helium.dir}/tests/data/test-scanlog-metadata-1.log" /> |
299 output="${helium.dir}/tests/data/test-scanlog-metadata-1.log" /> |
107 <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/> |
300 |
108 <hlm:metadatarecord database="${helium.dir}/tests/data/test-metadata-1.sqlite"> |
301 <hlm:metadatarecord database="${helium.dir}/tests/data/test-metadata-1_db"> |
109 <hlm:sbsmetadatainput> |
302 <hlm:sbsmetadatainput whatLogFile="${helium.dir}/tests/data/test-scanlog-metadata-1.whatlog.log"> |
110 <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/> |
303 <fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/> |
111 <metadatafilterset refid="filterset.sbs" /> |
304 <metadatafilterset refid="filterset.sbs" /> |
112 </hlm:sbsmetadatainput> |
305 </hlm:sbsmetadatainput> |
113 </hlm:metadatarecord> |
306 </hlm:metadatarecord> |
114 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2.html.ftl" |
307 <fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
115 outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
308 outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
116 <freemarkerLinks expandProperties="yes"> |
309 <freemarkerLinks expandProperties="yes"> |
117 macro: ${helium.dir}/tools/common/templates/macro |
310 macro: ${helium.dir}/tools/common/templates/macro |
118 </freemarkerLinks> |
311 </freemarkerLinks> |
119 <data expandProperties="yes"> |
312 <data expandProperties="yes"> |
120 dbPath: ${helium.dir}/tests/data/test-metadata-1.sqlite |
313 dbPath: ${helium.dir}/tests/data/test-metadata-1_db |
|
314 whatLogPath: ${helium.dir}\tests\data/test-scanlog-metadata-1.what.log |
121 doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
315 doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
122 ant: antProperties() |
316 ant: antProperties() |
123 </data> |
317 </data> |
124 </fmpp> |
318 </fmpp> |
125 <hlm:generateBuildStatus dbfile="${helium.dir}/tests/data/test-metadata-1.sqlite" output-dir="${helium.dir}/tests/data/" file="test-scanlog-metadata-1.log"/> |
319 </target> |
126 <hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"/> |
|
127 </target> |
|
128 |
|
129 <target name="test-metadata-signal"> |
320 <target name="test-metadata-signal"> |
130 <antcall target="test-scanlog-metadata-1" /> |
321 <antcall target="scanlog-metadata-1" /> |
131 </target> |
322 </target> |
132 </project> |
323 </project> |