common/build.test.xml
changeset 1198 ba089d97d513
parent 1189 94d03733c245
child 1199 6b2338d37024
equal deleted inserted replaced
1197:c3bd99c8b96d 1198:ba089d97d513
     2 <project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium">
     2 <project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium">
     3 
     3 
     4     <target name="sf-test-smoketest" depends="sf-prebuild,sf-build-smoketestpkg,sf-send-testpkg,sf-zip-logs,sf-publish" />
     4     <target name="sf-test-smoketest" depends="sf-prebuild,sf-build-smoketestpkg,sf-send-testpkg,sf-zip-logs,sf-publish" />
     5     <target name="sf-test-bc-check" depends="sf-prebuild,sf-bc-check,sf-zip-logs,sf-publish" />
     5     <target name="sf-test-bc-check" depends="sf-prebuild,sf-bc-check,sf-zip-logs,sf-publish" />
     6 
     6 
       
     7 	<!-- Calculate the location where the ATS Worker is installed, so that it can be launched -->
     7     <target name="sf-find-ATS-worker-root">
     8     <target name="sf-find-ATS-worker-root">
     8       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
     9       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
     9         <arg value="-pe"/>
    10         <arg value="-pe"/>
    10         <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
    11         <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
    11         <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
    12         <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
    12       </exec>
    13       </exec>
    13       <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
    14       <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
    14     </target>
    15     </target>
    15     
    16     
       
    17 	<!-- Map the location of the epoc32 to the fixed location used by the ATS Worker/Agent -->
    16     <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">        
    18     <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">        
    17         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
    19         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
    18         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
    20         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
    19         <arg value="make_junction.pl"/>
    21         <arg value="make_junction.pl"/>
    20         <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
    22         <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
   102                 </then>
   104                 </then>
   103             </if>
   105             </if>
   104 
   106 
   105             <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/>
   107             <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/>
   106                 <then>
   108                 <then>
       
   109 					<!-- Submit each test drop in the ats3_testdrop_arrivals/bctest directory of the ATS server to the server for execution --> 
   107                     <for param="file">
   110                     <for param="file">
   108 						<path>
   111 						<path>
   109 							<fileset dir="${sf.spec.test.package.location}/../bctest" includes="*.zip"/>
   112 							<fileset dir="${sf.spec.test.package.location}/../bctest" includes="*.zip"/>
   110 						</path>
   113 						</path>
   111 						<sequential>
   114 						<sequential>
   191           <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>	
   194           <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>	
   192           <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/>	
   195           <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/>	
   193           <arg value="--publish=${publish.dir}\ats_reports"/>
   196           <arg value="--publish=${publish.dir}\ats_reports"/>
   194           <arg value="--bld-drive=${build.drive}"/>
   197           <arg value="--bld-drive=${build.drive}"/>
   195           <arg value="--test-target=${sf.spec.test.target}"/>
   198           <arg value="--test-target=${sf.spec.test.target}"/>
   196           <arg value="--image-path=${sf.spec.test.imagepath}"/>
   199           <arg value="--image-path=${sf.spec.test.image}"/>
   197           <arg value="--ats-version=${sf.spec.ats.version}"/>
   200           <arg value="--ats-version=${sf.spec.ats.version}"/>
   198         </exec>
   201         </exec>
   199 
   202 
   200         <!-- Now ready to send to ATS -->
   203         <!-- Now ready to send to ATS -->
   201     </target>   
   204     </target>  
       
   205 
       
   206 	<!-- Prepare hardware for execution -->
       
   207 	<target name="sf-prepare-hw">
       
   208 	    <if><equals arg1="${sf.spec.test.target}" arg2="syborg"/>
       
   209         <then>
       
   210             <delete file="${sf.spec.test.workerroot}/syborg.dtb" quiet="true"/>
       
   211             <copy file="${sf.spec.baseline.location}/ROMs/syborg/syborg.dtb" todir="${sf.spec.test.workerroot}" failonerror="false"/>
       
   212 			
       
   213 		    <!-- Perhaps copy a NV Memory IMG from somewhere -->
       
   214         </then>
       
   215         </if>
       
   216 	</target>
   202 
   217 
   203 	<!-- Sending testdrop to ATS -->
   218 	<!-- Sending testdrop to ATS -->
   204 	
   219 	
   205     <target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
   220     <target name="sf-send-testpkg" depends="sf-prepare-hw,sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
   206         <if><equals arg1="${sf.spec.test.target}" arg2="syborg"/>
       
   207           <then>
       
   208             <delete file="${sf.spec.test.workerroot}/syborg.dtb" quiet="true"/>
       
   209             <copy file="${build.drive}/epoc32/rom/syborg/syborg.dtb" todir="${sf.spec.test.workerroot}" failonerror="false"/>
       
   210           </then>
       
   211         </if>
       
   212         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   221         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   213         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   222         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   214         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   223         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   215             <arg value="ats_testdrop.pl"/>
   224             <arg value="ats_testdrop.pl"/>
   216             <arg value="--host=${sf.spec.test.host.name}"/>
   225             <arg value="--host=${sf.spec.test.host.name}"/>