80 |
80 |
81 |
81 |
82 <h2>Target sf-run-analysis-raptor</h2> |
82 <h2>Target sf-run-analysis-raptor</h2> |
83 |
83 |
84 <p><b>Location</b></p> |
84 <p><b>Location</b></p> |
85 <p> <tt class="docutils literal"><a href="/D:/maintools/sf-config/common/build.postbuild.xml#L294">D:\maintools\sf-config\common\build.postbuild.xml:294:</a></tt> |
85 <p> <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.postbuild.xml#L303">d:\maintools\sf-config\common\build.postbuild.xml:303:</a></tt> |
86 </p> |
86 </p> |
87 |
87 |
88 <p><b>Conditional execution</b></p> |
88 <p><b>Conditional execution</b></p> |
89 <p>No conditions on target execution.</p> |
89 <p>No conditions on target execution.</p> |
90 <hr/> |
90 <hr/> |
161 |
164 |
162 <h3>Source code</h3> |
165 <h3>Source code</h3> |
163 <pre> |
166 <pre> |
164 <target name="sf-run-analysis-raptor"> |
167 <target name="sf-run-analysis-raptor"> |
165 <echo message="Preprocessing *_compile.log files"/> |
168 <echo message="Preprocessing *_compile.log files"/> |
|
169 <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/> |
166 <for param="logfile"> |
170 <for param="logfile"> |
167 <path> |
171 <path> |
168 <fileset dir="${build.log.dir}"> |
172 <fileset dir="${build.log.dir}"> |
169 <include name="*_compile.log"/> |
173 <include name="*_compile.log"/> |
170 <exclude name="*build_check_compile.log"/> |
174 <exclude name="*build_check_compile.log"/> |
171 </fileset> |
175 </fileset> |
172 </path> |
176 </path> |
173 <sequential> |
177 <sequential> |
174 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
178 <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\/](.*)_compile\.log" replace="\1_compile_preprocessed.log"/> |
175 <echo message="Preprocessing @{logfile}..."/> |
179 <echo message="Preprocessing @{logfile}..."/> |
176 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true"> |
180 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" errorProperty="@{logfile}"> |
177 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
181 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
178 </exec> |
182 </exec> |
|
183 <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/> |
179 </sequential> |
184 </sequential> |
180 </for> |
185 </for> |
181 |
186 |
182 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
187 <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/> |
183 <for param="whatlogfile"> |
188 <for param="whatlogfile"> |
186 <include name="*whatlog*_compile_preprocessed.log"/> |
191 <include name="*whatlog*_compile_preprocessed.log"/> |
187 </fileset> |
192 </fileset> |
188 </path> |
193 </path> |
189 <sequential> |
194 <sequential> |
190 <echo message="Extracting whatlog info from @{whatlogfile}..."/> |
195 <echo message="Extracting whatlog info from @{whatlogfile}..."/> |
191 <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --releaseable --log=@{whatlogfile} --basedir=${build.log.dir} --append"/> |
|
192 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
196 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
193 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
197 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
194 <arg value="--releaseable"/> |
198 <arg value="--releaseable"/> |
195 <arg value="--log=@{whatlogfile}"/> |
199 <arg value="--log=@{whatlogfile}"/> |
196 <arg value="--basedir=${build.log.dir}"/> |
200 <arg value="--basedir=${build.log.dir}"/> |
207 </fileset> |
211 </fileset> |
208 </path> |
212 </path> |
209 <sequential> |
213 <sequential> |
210 <echo message="Extracting error info from @{raptorlogfile}..."/> |
214 <echo message="Extracting error info from @{raptorlogfile}..."/> |
211 <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/> |
215 <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/> |
212 <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --error --warning --unreciped --recipe --config=${raptorconfig} --log=@{raptorlogfile} --basedir=${build.log.dir}/raptorbits --append"/> |
|
213 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true"> |
216 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true"> |
214 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
217 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
215 <arg value="--error"/> |
218 <arg value="--error"/> |
216 <arg value="--warning"/> |
219 <arg value="--warning"/> |
217 <arg value="--unreciped"/> |
220 <arg value="--unreciped"/> |
218 <arg value="--recipe"/> |
221 <arg value="--recipe"/> |
219 <arg value="--config=${raptorconfig}"/> |
222 <arg value="--config=${raptorconfig}"/> |
220 <arg value="--log=@{raptorlogfile}"/> |
223 <arg value="--log=@{raptorlogfile}"/> |
221 <arg value="--basedir=${build.log.dir}/raptorbits"/> |
224 <arg value="--basedir=${build.log.dir}/raptorbits"/> |
222 <arg value="--append"/> |
|
223 </exec> |
225 </exec> |
224 </sequential> |
226 </sequential> |
225 </for> |
227 </for> |
226 |
228 |
227 <echo message="Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/summarize.pl --raptorbitsdir=${build.log.dir}/raptorbits --outputdir=${build.log.dir}"/> |
229 <echo message="Summarizing Raptor data"/> |
228 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true"> |
230 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true"> |
229 <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/> |
231 <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/> |
230 <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/> |
232 <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/> |
231 <arg value="--outputdir=${build.log.dir}"/> |
233 <arg value="--outputdir=${build.log.dir}"/> |
232 </exec> |
234 </exec> |
242 <exec executable="perl" input="@{tsv}" output="@{tsv}"> |
244 <exec executable="perl" input="@{tsv}" output="@{tsv}"> |
243 <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/> |
245 <arg value="${sf.common.config.dir}/tools/sortUnique.pl"/> |
244 </exec> |
246 </exec> |
245 </sequential> |
247 </sequential> |
246 </for> |
248 </for> |
|
249 |
|
250 <!-- Cook the raptor analysis further to produce something in the right format for the BRAG system --> |
|
251 <exec executable="perl" output="${build.log.dir}/summary/Raptor_BRAG.xml" logError="yes"> |
|
252 <arg value="${sf.common.config.dir}/tools/brag/raptorToBRAG.pl"/> |
|
253 <arg value="--raptorsummary"/> |
|
254 <arg value="${build.log.dir}/raptorbits/summary.csv"/> |
|
255 </exec> |
|
256 <!-- And copy the XSL so the output can be transformed by a browser --> |
|
257 <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/> |
247 </target> |
258 </target> |
248 </pre> |
259 </pre> |
249 |
260 |
250 |
261 |
251 <hr/> |
262 <hr/> |