common/build.xml
changeset 354 bf2e2e1cb5ad
parent 352 a4c764727769
child 355 32e90c026ea4
child 356 f5a4f71b49e1
equal deleted inserted replaced
353:43774ee61a20 354:bf2e2e1cb5ad
   710         <arg value="x"/>
   710         <arg value="x"/>
   711         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   711         <arg value="-y"/> <!-- Need to unpack in overwrite mode, due to TEF -->
   712         <arg value="${build.drive}/output/zips/bin*.zip"/>
   712         <arg value="${build.drive}/output/zips/bin*.zip"/>
   713         </exec>
   713         </exec>
   714     </target>
   714     </target>
   715     
   715 
   716     <target name ="sf-make-junction">
   716     <target name="sf-find-ATS-worker-root">
   717         
   717       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
   718         <mkdir dir="${sf.spec.test.epocroot}"/>
   718         <arg value="-pe"/>
       
   719         <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
       
   720         <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
       
   721       </exec>
       
   722       <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
       
   723     </target>
       
   724     
       
   725     <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">
       
   726         
       
   727         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
   719 
   728 
   720         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   729         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
   721         <arg value="make_junction.pl"/>
   730         <arg value="make_junction.pl"/>
   722         <arg value="--link=${sf.spec.test.epocroot}/epoc32"/>
   731         <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
   723         <arg value="--target=${build.drive}/epoc32"/>
   732         <arg value="--target=${build.drive}/epoc32"/>
   724         <arg value="--force"/>
   733         <arg value="--force"/>
   725       </exec>
   734       </exec>
   726     </target>
   735     </target>
   727 
   736 
   728     <target name ="sf-delete-junction">
   737     <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
   729         <exec executable="junction.exe" dir="${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
   738         <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">
   730         <arg value="-d"/>
   739         <arg value="-d"/>
   731         <arg value="epoc32"/>
   740         <arg value="epoc32"/>
   732       </exec>
   741       </exec>
   733     </target>  
   742     </target>  
   734     
   743         
   735     <target name="sf-send-testpkg" depends="sf-make-junction">
   744     <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
   736         <mkdir dir="${sf.spec.test.package.droppath}"/>
   745         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   737         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   746         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   738         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   747         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   739             <arg value="ats3_testdrop.pl"/>
   748             <arg value="ats3_testdrop.pl"/>
   740             <arg value="--host=${sf.spec.test.host.name}"/>
   749             <arg value="--host=${sf.spec.test.host.name}"/>
   741             <arg value="--username=${sf.spec.test.host.username}"/>
   750             <arg value="--username=${sf.spec.test.host.username}"/>
   742             <arg value="--password=${sf.spec.test.host.password}"/>
   751             <arg value="--password=${sf.spec.test.host.password}"/>
   743             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   752             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   744             <arg value="--local-drop-path=${sf.spec.test.package.droppath}"/>
   753             <arg value="--local-drop-path=${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   745             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   754             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   746         </exec>
   755         </exec>
   747     </target>
   756     </target>
   748 
   757 
   749     <target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
   758     <target name="sf-build-smoketestpkg" depends="sf-getenv-tools">