author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Thu, 13 May 2010 13:53:03 +0100 | |
changeset 552 | 0d12d79bd42d |
parent 217 | 0f5e3a7fb6af |
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 : test_scanlog.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 |
--> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
23 |
<project name="test_scanlog" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
24 |
<description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
25 |
Testing scanlog implementation. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
26 |
</description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
<property environment="env"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
28 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
29 |
<dirname property="test.scanlog.dir" file="${ant.file.test_scanlog}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
30 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
31 |
<property name="helium.dir" location="${test.scanlog.dir}/../../../.."/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
32 |
<import file="${helium.dir}/helium.ant.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
33 |
<!-- Macro to process the log to generate scanlog. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
34 |
<macrodef name="scanlogTest" uri="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
35 |
<attribute name="log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
36 |
<attribute name="output"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
37 |
<sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
38 |
<exec executable="python" dir="${test.scanlog.dir}" failonerror="false"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
39 |
<arg value="sbsscanlog.py"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
40 |
<arg value="--log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
41 |
<arg value="@{log}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
42 |
<arg value="--output"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
43 |
<arg value="@{output}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
44 |
</exec> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
45 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
46 |
</macrodef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
47 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
48 |
<!-- Macro to process the log to generate scanlog. --> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
49 |
<macrodef name="scanlogMetadataTest" uri="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
50 |
<attribute name="log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
51 |
<attribute name="output"/> |
217 | 52 |
<attribute name="whatlog" default="@{output}.what.log"/> |
53 |
<attribute name="cleanlog" default="@{output}.clean.log"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
54 |
<sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
55 |
<exec executable="python" dir="${test.scanlog.dir}" failonerror="false"> |
217 | 56 |
<env key="SBS_WHAT_LOG_FILE" value="@{whatlog}" /> |
57 |
<env key="SBS_CLEAN_LOG_FILE" value="@{cleanlog}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
58 |
<arg value="sbsscanlogmetadata.py"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
59 |
<arg value="--log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
60 |
<arg value="@{log}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
61 |
<arg value="--output"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
62 |
<arg value="@{output}"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
63 |
</exec> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
64 |
</sequential> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
65 |
</macrodef> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
66 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
67 |
<target name="test-scanlog-1"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
68 |
<echo message="log.dir:${env.TEMP}/" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
69 |
<delete file="${env.TEMP}/test-scanlog-1.log" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
70 |
<delete file="${env.TEMP}/test-scanlog-1.log.xml" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
71 |
<delete file="${env.TEMP}/test-scanlog-1.log.scan2.html" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
72 |
<hlm:scanlogTest log="${helium.dir}\tests\data\scanlog\ido_lcdo_tb92-ci_mcl.92.400__armv5_winscw_armv5.test_multiple_thread_dfs_build_compile.log" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
73 |
output="${env.TEMP}/test-scanlog-1.log" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
74 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
75 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
76 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log.scan2.html"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
77 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
78 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
79 |
<target name="test-scanlog-2"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
80 |
<echo message="log.dir:${env.TEMP}/" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
81 |
<delete file="${env.TEMP}/test-scanlog-1.log" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
82 |
<delete file="${env.TEMP}/test-scanlog-1.log.xml" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
83 |
<delete file="${env.TEMP}/test-scanlog-1.log.scan2.html" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
84 |
<hlm:scanlogTest log="${helium.dir}\tests\data\scanlog\ido_lcdo_tb92-ci_mcl.92.400__armv5_winscw_armv5.test_multiple_threadreallyclean_dfs_build_clean_compile.log" output="${env.TEMP}/test-scanlog21.log" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
85 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
86 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
87 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-1.log.scan2.html"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
88 |
</target> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
89 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
90 |
<target name="test-scanlog-3"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
91 |
<echo message="log.dir:${env.TEMP}/" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
92 |
<delete file="${env.TEMP}/test-scanlog-3.log" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
93 |
<delete file="${env.TEMP}/test-scanlog-3.log.xml" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
94 |
<delete file="${env.TEMP}/test-scanlog-3.log.scan2.html" failonerror="false"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
95 |
<hlm:scanlogTest log="${helium.dir}\tests\data\scanlog\all_regex_type.log" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
96 |
output="${env.TEMP}/test-scanlog-3.log" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
97 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
98 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
99 |
<hlm:assertFileExists file="${env.TEMP}/test-scanlog-3.log.scan2.html"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
100 |
</target> |
217 | 101 |
|
102 |
<target name="s60-compilation-logs"> |
|
103 |
<mkdir dir="${helium.dir}/tests/data/output/" /> |
|
104 |
<delete file="${helium.dir}\tests\data\test-s60.db" failonerror="false"/> |
|
105 |
<delete file="${helium.dir}\tests\data\test-s60.scan2.html" failonerror="false"/> |
|
106 |
<hlm:metadatarecord database="${helium.dir}/tests/data/output/test-s60.db"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
107 |
<hlm:sbsmetadatainput> |
217 | 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> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
114 |
<metadatafilterset refid="filterset.sbs" /> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
115 |
</hlm:sbsmetadatainput> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
116 |
</hlm:metadatarecord> |
217 | 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" |
|
179 | 248 |
outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
249 |
<freemarkerLinks expandProperties="yes"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
250 |
macro: ${helium.dir}/tools/common/templates/macro |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
251 |
</freemarkerLinks> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
252 |
<data expandProperties="yes"> |
217 | 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"/> |
|
268 |
||
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 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
285 |
doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
286 |
ant: antProperties() |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
287 |
</data> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
288 |
</fmpp> |
217 | 289 |
<hlm:generateBuildStatus dbfile="${helium.dir}/tests/data/test-metadata-1_db" output-dir="${helium.dir}/tests/data/" file="test-scanlog-metadata-1.log"/> |
179 | 290 |
<hlm:assertFileExists file="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
291 |
</target> |
217 | 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" |
|
299 |
output="${helium.dir}/tests/data/test-scanlog-metadata-1.log" /> |
|
300 |
||
301 |
<hlm:metadatarecord database="${helium.dir}/tests/data/test-metadata-1_db"> |
|
302 |
<hlm:sbsmetadatainput whatLogFile="${helium.dir}/tests/data/test-scanlog-metadata-1.whatlog.log"> |
|
303 |
<fileset casesensitive="false" file="${helium.dir}/tests/data/test-scanlog-metadata-1.log"/> |
|
304 |
<metadatafilterset refid="filterset.sbs" /> |
|
305 |
</hlm:sbsmetadatainput> |
|
306 |
</hlm:metadatarecord> |
|
307 |
<fmpp sourceFile="${helium.dir}/tools/common/templates/log/scan2_orm.html.ftl" |
|
308 |
outputfile="${helium.dir}/tests/data/test-scanlog-metadata-1.log.scan2.html"> |
|
309 |
<freemarkerLinks expandProperties="yes"> |
|
310 |
macro: ${helium.dir}/tools/common/templates/macro |
|
311 |
</freemarkerLinks> |
|
312 |
<data expandProperties="yes"> |
|
313 |
dbPath: ${helium.dir}/tests/data/test-metadata-1_db |
|
314 |
whatLogPath: ${helium.dir}\tests\data/test-scanlog-metadata-1.what.log |
|
315 |
doc: xml(${helium.dir}/tests/data/scanlog/all_regex_type.log_sbs_info.xml) |
|
316 |
ant: antProperties() |
|
317 |
</data> |
|
318 |
</fmpp> |
|
319 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
320 |
<target name="test-metadata-signal"> |
217 | 321 |
<antcall target="scanlog-metadata-1" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
322 |
</target> |
179 | 323 |
</project> |