doc/api/helium/target-sf-run-analysis-raptor.html
changeset 627 56a1d97e7c73
parent 432 f2ddfa555b0f
equal deleted inserted replaced
607:3c858aa7a023 627:56a1d97e7c73
    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/>
   100 <p> 
   100 <p> 
   101 <table class="docutils" width="50%">
   101 <table class="docutils" width="50%">
   102     <tr>
   102     <tr>
   103         <th class="head">Name</th>
   103         <th class="head">Name</th>
   104     </tr>
   104     </tr>
       
   105         <tr>
       
   106                     <td>perl</td>
       
   107             </tr>
   105         <tr>
   108         <tr>
   106                     <td>perl</td>
   109                     <td>perl</td>
   107             </tr>
   110             </tr>
   108         <tr>
   111         <tr>
   109                     <td>perl</td>
   112                     <td>perl</td>
   161 
   164 
   162 <h3>Source code</h3>
   165 <h3>Source code</h3>
   163 <pre>
   166 <pre>
   164     &lt;target name=&quot;sf-run-analysis-raptor&quot;&gt;            
   167     &lt;target name=&quot;sf-run-analysis-raptor&quot;&gt;            
   165       &lt;echo message=&quot;Preprocessing *_compile.log files&quot;/&gt;
   168       &lt;echo message=&quot;Preprocessing *_compile.log files&quot;/&gt;
       
   169       &lt;delete file=&quot;${build.log.dir}/analysis/${build.id}_preprocess.log&quot;/&gt;
   166       &lt;for param=&quot;logfile&quot;&gt;
   170       &lt;for param=&quot;logfile&quot;&gt;
   167         &lt;path&gt;
   171         &lt;path&gt;
   168           &lt;fileset dir=&quot;${build.log.dir}&quot;&gt;
   172           &lt;fileset dir=&quot;${build.log.dir}&quot;&gt;
   169             &lt;include name=&quot;*_compile.log&quot;/&gt;
   173             &lt;include name=&quot;*_compile.log&quot;/&gt;
   170             &lt;exclude name=&quot;*build_check_compile.log&quot;/&gt;
   174             &lt;exclude name=&quot;*build_check_compile.log&quot;/&gt;
   171           &lt;/fileset&gt;
   175           &lt;/fileset&gt;
   172         &lt;/path&gt;
   176         &lt;/path&gt;
   173         &lt;sequential&gt;
   177         &lt;sequential&gt;
   174 		  &lt;propertyregex override=&quot;yes&quot; property=&quot;preprocessedlogfile&quot; input=&quot;@{logfile}&quot; regexp=&quot;.*[\\/](.*)_compile\.log&quot; replace=&quot;\1_compile_preprocessed.log&quot;/&gt;
   178           &lt;propertyregex override=&quot;yes&quot; property=&quot;preprocessedlogfile&quot; input=&quot;@{logfile}&quot; regexp=&quot;.*[\\/](.*)_compile\.log&quot; replace=&quot;\1_compile_preprocessed.log&quot;/&gt;
   175 	      &lt;echo message=&quot;Preprocessing @{logfile}...&quot;/&gt;
   179           &lt;echo message=&quot;Preprocessing @{logfile}...&quot;/&gt;
   176           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; input=&quot;@{logfile}&quot; output=&quot;${build.log.dir}/analysis/${preprocessedlogfile}&quot; error=&quot;${build.log.dir}/analysis/${build.id}_preprocess.log&quot; append=&quot;true&quot;&gt;
   180           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; input=&quot;@{logfile}&quot; output=&quot;${build.log.dir}/analysis/${preprocessedlogfile}&quot; errorProperty=&quot;@{logfile}&quot;&gt;
   177             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/preprocess_log.pl&quot;/&gt;
   181             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/preprocess_log.pl&quot;/&gt;
   178           &lt;/exec&gt;
   182           &lt;/exec&gt;
       
   183 	  &lt;echo file=&quot;${build.log.dir}/analysis/${build.id}_preprocess.log&quot; append=&quot;true&quot; message=&quot;${@{logfile}}${line.separator}&quot;/&gt;
   179         &lt;/sequential&gt;
   184         &lt;/sequential&gt;
   180       &lt;/for&gt;
   185       &lt;/for&gt;
   181       
   186       
   182       &lt;echo message=&quot;Extracting whatlog information from *whatlog*_compile_preprocessed.log files&quot;/&gt;
   187       &lt;echo message=&quot;Extracting whatlog information from *whatlog*_compile_preprocessed.log files&quot;/&gt;
   183       &lt;for param=&quot;whatlogfile&quot;&gt;
   188       &lt;for param=&quot;whatlogfile&quot;&gt;
   186             &lt;include name=&quot;*whatlog*_compile_preprocessed.log&quot;/&gt;
   191             &lt;include name=&quot;*whatlog*_compile_preprocessed.log&quot;/&gt;
   187           &lt;/fileset&gt;
   192           &lt;/fileset&gt;
   188         &lt;/path&gt;
   193         &lt;/path&gt;
   189         &lt;sequential&gt;
   194         &lt;sequential&gt;
   190           &lt;echo message=&quot;Extracting whatlog info from @{whatlogfile}...&quot;/&gt;
   195           &lt;echo message=&quot;Extracting whatlog info from @{whatlogfile}...&quot;/&gt;
   191           &lt;echo message=&quot;Exec: [${sf.common.config.dir}/tools/raptor] perl ${sf.common.config.dir}/tools/raptor/parse.pl --releaseable --log=@{whatlogfile} --basedir=${build.log.dir} --append&quot;/&gt;
       
   192           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_whatlog.log&quot; append=&quot;true&quot;&gt;
   196           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_whatlog.log&quot; append=&quot;true&quot;&gt;
   193             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/parse.pl&quot;/&gt;
   197             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/parse.pl&quot;/&gt;
   194             &lt;arg value=&quot;--releaseable&quot;/&gt;
   198             &lt;arg value=&quot;--releaseable&quot;/&gt;
   195             &lt;arg value=&quot;--log=@{whatlogfile}&quot;/&gt;
   199             &lt;arg value=&quot;--log=@{whatlogfile}&quot;/&gt;
   196             &lt;arg value=&quot;--basedir=${build.log.dir}&quot;/&gt;
   200             &lt;arg value=&quot;--basedir=${build.log.dir}&quot;/&gt;
   207           &lt;/fileset&gt;
   211           &lt;/fileset&gt;
   208         &lt;/path&gt;
   212         &lt;/path&gt;
   209         &lt;sequential&gt;
   213         &lt;sequential&gt;
   210           &lt;echo message=&quot;Extracting error info from @{raptorlogfile}...&quot;/&gt;
   214           &lt;echo message=&quot;Extracting error info from @{raptorlogfile}...&quot;/&gt;
   211           &lt;propertyregex override=&quot;yes&quot; property=&quot;raptorconfig&quot; input=&quot;@{raptorlogfile}&quot; regexp=&quot;.*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*&quot; replace=&quot;\1&quot; casesensitive=&quot;false&quot; defaultValue=&quot;noconfig&quot;/&gt;
   215           &lt;propertyregex override=&quot;yes&quot; property=&quot;raptorconfig&quot; input=&quot;@{raptorlogfile}&quot; regexp=&quot;.*[\\/].*__(.*)\.whatlog_(single|multiple)_thread.*&quot; replace=&quot;\1&quot; casesensitive=&quot;false&quot; defaultValue=&quot;noconfig&quot;/&gt;
   212           &lt;echo message=&quot;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&quot;/&gt;
       
   213           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_raptorparse.log&quot; append=&quot;true&quot;&gt;
   216           &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_raptorparse.log&quot; append=&quot;true&quot;&gt;
   214             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/parse.pl&quot;/&gt;
   217             &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/parse.pl&quot;/&gt;
   215             &lt;arg value=&quot;--error&quot;/&gt;
   218             &lt;arg value=&quot;--error&quot;/&gt;
   216             &lt;arg value=&quot;--warning&quot;/&gt;
   219             &lt;arg value=&quot;--warning&quot;/&gt;
   217             &lt;arg value=&quot;--unreciped&quot;/&gt;
   220             &lt;arg value=&quot;--unreciped&quot;/&gt;
   218             &lt;arg value=&quot;--recipe&quot;/&gt;
   221             &lt;arg value=&quot;--recipe&quot;/&gt;
   219             &lt;arg value=&quot;--config=${raptorconfig}&quot;/&gt;
   222             &lt;arg value=&quot;--config=${raptorconfig}&quot;/&gt;
   220             &lt;arg value=&quot;--log=@{raptorlogfile}&quot;/&gt;
   223             &lt;arg value=&quot;--log=@{raptorlogfile}&quot;/&gt;
   221             &lt;arg value=&quot;--basedir=${build.log.dir}/raptorbits&quot;/&gt;
   224             &lt;arg value=&quot;--basedir=${build.log.dir}/raptorbits&quot;/&gt;
   222             &lt;arg value=&quot;--append&quot;/&gt;
       
   223           &lt;/exec&gt;
   225           &lt;/exec&gt;
   224         &lt;/sequential&gt;
   226         &lt;/sequential&gt;
   225       &lt;/for&gt;
   227       &lt;/for&gt;
   226       
   228       
   227       &lt;echo message=&quot;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}&quot;/&gt;
   229       &lt;echo message=&quot;Summarizing Raptor data&quot;/&gt;
   228       &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_raptorparse.log&quot; append=&quot;true&quot;&gt;
   230       &lt;exec executable=&quot;perl&quot; dir=&quot;${sf.common.config.dir}/tools/raptor&quot; failonerror=&quot;false&quot; output=&quot;${build.log.dir}/analysis/${build.id}_raptorparse.log&quot; append=&quot;true&quot;&gt;
   229         &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/summarize.pl&quot;/&gt;
   231         &lt;arg value=&quot;${sf.common.config.dir}/tools/raptor/summarize.pl&quot;/&gt;
   230         &lt;arg value=&quot;--raptorbitsdir=${build.log.dir}/raptorbits&quot;/&gt;
   232         &lt;arg value=&quot;--raptorbitsdir=${build.log.dir}/raptorbits&quot;/&gt;
   231         &lt;arg value=&quot;--outputdir=${build.log.dir}&quot;/&gt;
   233         &lt;arg value=&quot;--outputdir=${build.log.dir}&quot;/&gt;
   232       &lt;/exec&gt;
   234       &lt;/exec&gt;
   242           &lt;exec executable=&quot;perl&quot; input=&quot;@{tsv}&quot; output=&quot;@{tsv}&quot;&gt;
   244           &lt;exec executable=&quot;perl&quot; input=&quot;@{tsv}&quot; output=&quot;@{tsv}&quot;&gt;
   243             &lt;arg value=&quot;${sf.common.config.dir}/tools/sortUnique.pl&quot;/&gt;
   245             &lt;arg value=&quot;${sf.common.config.dir}/tools/sortUnique.pl&quot;/&gt;
   244           &lt;/exec&gt;
   246           &lt;/exec&gt;
   245         &lt;/sequential&gt;
   247         &lt;/sequential&gt;
   246       &lt;/for&gt;
   248       &lt;/for&gt;
       
   249 
       
   250       &lt;!-- Cook the raptor analysis further to produce something in the right format for the BRAG system --&gt;
       
   251       &lt;exec executable=&quot;perl&quot; output=&quot;${build.log.dir}/summary/Raptor_BRAG.xml&quot; logError=&quot;yes&quot;&gt;
       
   252         &lt;arg value=&quot;${sf.common.config.dir}/tools/brag/raptorToBRAG.pl&quot;/&gt;
       
   253         &lt;arg value=&quot;--raptorsummary&quot;/&gt;
       
   254         &lt;arg value=&quot;${build.log.dir}/raptorbits/summary.csv&quot;/&gt;
       
   255       &lt;/exec&gt;
       
   256       &lt;!-- And copy the XSL so the output can be transformed by a browser --&gt;
       
   257       &lt;copy file=&quot;${sf.common.config.dir}/tools/brag/brag.xsl&quot; toDir=&quot;${build.log.dir}/summary/&quot;/&gt;
   247     &lt;/target&gt;
   258     &lt;/target&gt;
   248 </pre>
   259 </pre>
   249 
   260 
   250 
   261 
   251     <hr/>
   262     <hr/>