common/build.test.xml
changeset 393 8db8dd000e3b
parent 381 ad45f298ad85
child 441 efd6b490c9fa
equal deleted inserted replaced
392:7efe68a9f0fe 393:8db8dd000e3b
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="SF-COMMON-BCTEST" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium">
       
     3 
       
     4     <target name="sf-find-ATS-worker-root">
       
     5       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
       
     6         <arg value="-pe"/>
       
     7         <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
       
     8         <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
       
     9       </exec>
       
    10       <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
       
    11     </target>
       
    12     
       
    13     <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">        
       
    14         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
       
    15         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
       
    16         <arg value="make_junction.pl"/>
       
    17         <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
       
    18         <arg value="--target=${build.drive}/epoc32"/>
       
    19         <arg value="--force"/>
       
    20       </exec>
       
    21     </target>
       
    22 
       
    23     <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
       
    24         <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">
       
    25         <arg value="-d"/>
       
    26         <arg value="epoc32"/>
       
    27       </exec>
       
    28     </target>  
     3 
    29 
     4 <!-- static and dynamic BC Test target -->
    30 <!-- static and dynamic BC Test target -->
     5     <target name="sf-bc-check">
    31     <target name="sf-bc-check">
     6         <if><isset property="env.PDT_HOME"/>
    32         <if><isset property="env.PDT_HOME"/>
     7         <then>
    33         <then>
   144         <!-- Now ready to send to ATS3 -->
   170         <!-- Now ready to send to ATS3 -->
   145     </target>   
   171     </target>   
   146 
   172 
   147 	<!-- Sending testdrop to ATS3 -->
   173 	<!-- Sending testdrop to ATS3 -->
   148 	
   174 	
   149     <target name="sf-send-testpkg" depends="sf-make-junction">
   175     <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
   150         <mkdir dir="${sf.spec.test.package.droppath}"/>
   176         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   151         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   177         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   152         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   178         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   153             <arg value="ats3_testdrop.pl"/>
   179             <arg value="ats3_testdrop.pl"/>
   154             <arg value="--host=${sf.spec.test.host.name}"/>
   180             <arg value="--host=${sf.spec.test.host.name}"/>
   155             <arg value="--username=${sf.spec.test.host.username}"/>
   181             <arg value="--username=${sf.spec.test.host.username}"/>
   156             <arg value="--password=${sf.spec.test.host.password}"/>
   182             <arg value="--password=${sf.spec.test.host.password}"/>
   157             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   183             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   158             <arg value="--local-drop-path=${sf.spec.test.package.droppath}"/>
   184             <arg value="--local-drop-path=${sf.spec.test.workerroot}\${sf.spec.test.package.droppath}"/>
   159             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   185             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   160         </exec>
   186         </exec>
   161     </target>    
   187     </target>
   162 </project>
   188 </project>