common/build.xml
changeset 354 32e90c026ea4
parent 347 94b4a136d800
parent 353 bf2e2e1cb5ad
child 356 11a2ee167d1a
equal deleted inserted replaced
349:1fa0548ccf38 354:32e90c026ea4
   385 
   385 
   386                 <echo message="INFO Validate Zip files"/>
   386                 <echo message="INFO Validate Zip files"/>
   387                 <runtarget target="sf-package-validate"/>
   387                 <runtarget target="sf-package-validate"/>
   388             </then>
   388             </then>
   389         </if>
   389         </if>
       
   390         <!-- run build analysis tools -->
       
   391         <runtarget target="sf-run-analysis"/>
       
   392         
   390         </parallel>
   393         </parallel>
   391         
   394         
   392         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
   395         <if><istrue value="${sf.spec.test.sendpkg.enable}"/>
   393             <then>
   396             <then>
   394                 <runtarget target="sf-build-smoketestpkg"/>
   397                 <runtarget target="sf-build-smoketestpkg"/>
   395                 <runtarget target="sf-send-testpkg"/>
   398                 <runtarget target="sf-send-testpkg"/>
   396             </then>
   399             </then>
   397         </if>
   400         </if>
   398 
   401 
   399         <!-- run build analysis tools -->
       
   400         <runtarget target="sf-run-analysis"/>
       
   401 
   402 
   402         <runtarget target="sf-zip-logs"/>
   403         <runtarget target="sf-zip-logs"/>
   403 
   404 
   404         <!-- Do BC check -->
   405         <!-- Do BC check -->
   405         <if><istrue value="${sf.spec.bccheck.enable}"/>
   406         <if><istrue value="${sf.spec.bccheck.enable}"/>
   460     if a baseline list is available then generate deltas too -->
   461     if a baseline list is available then generate deltas too -->
   461 
   462 
   462     <target name="sf-list-dir">
   463     <target name="sf-list-dir">
   463         <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
   464         <property name="sf.currentlist.name"   value="${sf.list.name}"/> 
   464         <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
   465         <property name="sf.dir.location" value="${build.drive}/epoc32"/> 
       
   466         <property name="sf.dir.exclude" value="${build.drive}/epoc32/build"/> 
   465     
   467     
   466         <if>
   468         <if>
   467             <istrue value="${sf.spec.dirlist.enable}"/>
   469             <istrue value="${sf.spec.dirlist.enable}"/>
   468             <then>
   470             <then>
   469                 <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location}"/>
   471                 <echo message="Dirlist name: ${sf.currentlist.name} requested for ${sf.dir.location} excluding ${sf.dir.exclude}"/>
   470                 <exec executable="perl" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
   472                 <exec executable="python" dir="${build.log.dir}/" failonerror="true" output="${build.log.dir}/listdir_${build.id}_${sf.currentlist.name}.log">
   471                     <arg value="${sf.common.config.dir}/tools/listdir.pl"/>
   473                     <arg value="${sf.common.config.dir}/tools/listdir.py"/>
   472                     <arg value="${sf.dir.location}"/>
   474                     <arg value="${sf.dir.location}"/>
       
   475                     <arg value="${sf.dir.exclude}"/>
   473                 </exec>
   476                 </exec>
   474             </then>
   477             </then>
   475         </if>
   478         </if>
   476     </target>
   479     </target>
   477     
   480     
   710         <arg value="x"/>
   713         <arg value="x"/>
   711         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   714         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   712         <arg value="${build.drive}/output/zips/bin*.zip"/>
   715         <arg value="${build.drive}/output/zips/bin*.zip"/>
   713         </exec>
   716         </exec>
   714     </target>
   717     </target>
   715     
   718 
   716     <target name ="sf-make-junction">
   719     <target name="sf-find-ATS-worker-root">
   717         <mkdir dir="${sf.spec.test.epocroot}"/>
   720       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
       
   721         <arg value="-pe"/>
       
   722         <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
       
   723         <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
       
   724       </exec>
       
   725       <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
       
   726     </target>
       
   727     
       
   728     <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">
       
   729         
       
   730         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
   718 
   731 
   719         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   732         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   720         <arg value="make_junction.pl"/>
   733         <arg value="make_junction.pl"/>
   721         <arg value="--link=${sf.spec.test.epocroot}/epoc32"/>
   734         <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
   722         <arg value="--target=${build.drive}/epoc32"/>
   735         <arg value="--target=${build.drive}/epoc32"/>
   723         <arg value="--force"/>
   736         <arg value="--force"/>
   724       </exec>
   737       </exec>
   725     </target>
   738     </target>
   726 
   739 
   727     <target name ="sf-delete-junction">
   740     <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
   728         <exec executable="junction.exe" dir="${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
   741         <exec executable="junction.exe" dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
   729         <arg value="-d"/>
   742         <arg value="-d"/>
   730         <arg value="epoc32"/>
   743         <arg value="epoc32"/>
   731       </exec>
   744       </exec>
   732     </target>  
   745     </target>  
   733     
   746         
   734     <target name="sf-send-testpkg" depends="sf-make-junction">
   747     <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
   735         <mkdir dir="${sf.spec.test.package.droppath}"/>
   748         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   736         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   749         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   737         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   750         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   738             <arg value="ats3_testdrop.pl"/>
   751             <arg value="ats3_testdrop.pl"/>
   739             <arg value="--host=${sf.spec.test.host.name}"/>
   752             <arg value="--host=${sf.spec.test.host.name}"/>
   740             <arg value="--username=${sf.spec.test.host.username}"/>
   753             <arg value="--username=${sf.spec.test.host.username}"/>
   741             <arg value="--password=${sf.spec.test.host.password}"/>
   754             <arg value="--password=${sf.spec.test.host.password}"/>
   742             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   755             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   743             <arg value="--local-drop-path=${sf.spec.test.package.droppath}"/>
   756             <arg value="--local-drop-path=${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   744             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   757             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   745         </exec>
   758         </exec>
   746     </target>
   759     </target>
   747 
   760 
   748     <target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
   761     <target name="sf-build-smoketestpkg" depends="sf-getenv-tools">