common/build.test.xml
changeset 1087 73af6e555060
parent 1085 461755d25d57
child 1088 31677de59336
equal deleted inserted replaced
1086:7e72cd1ef70a 1087:73af6e555060
   118                               <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
   118                               <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
   119                               <arg value="--src=${sf.spec.test.package.location}/../bctest/${program}"/>
   119                               <arg value="--src=${sf.spec.test.package.location}/../bctest/${program}"/>
   120                               <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-bctest-${build.id}_${program}" />
   120                               <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-bctest-${build.id}_${program}" />
   121                               <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
   121                               <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
   122                             </exec>
   122                             </exec>
   123                             <!-- Now ready to send to ATS3 -->  
   123                             <!-- Now ready to send to ATS -->  
   124 					      <echo message="Sending Test drop :  ${program} ............" />									
   124 					      <echo message="Sending Test drop :  ${program} ............" />									
   125 					<antcall target="sf-send-testpkg" inheritAll="false">
   125 					<antcall target="sf-send-testpkg" inheritAll="false">
   126                         <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-bctest-${build.id}_${program}"/>
   126                         <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-bctest-${build.id}_${program}"/>
   127                     </antcall>					
   127                     </antcall>					
   128 							
   128 							
   136             <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/>
   136             <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/>
   137         </else>
   137         </else>
   138 		</if>	
   138 		</if>	
   139     </target>
   139     </target>
   140     
   140     
   141 	<!-- Preparing smoketest package (zip) for sending to ATS3 -->
   141 	<!-- Preparing smoketest package (zip) for sending to ATS -->
   142 	
   142 	
   143 	<target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
   143 	<target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
   144         <echo message="INFO Building smoketest"/>
   144         <echo message="INFO Building smoketest"/>
   145         <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
   145         <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
   146             <arg value="/c"/>
   146             <arg value="/c"/>
   169           <arg value="--test-target=${sf.spec.test.target}"/>
   169           <arg value="--test-target=${sf.spec.test.target}"/>
   170           <arg value="--image-path=${sf.spec.test.imagepath}"/>
   170           <arg value="--image-path=${sf.spec.test.imagepath}"/>
   171           <arg value="--ats-version=${sf.spec.ats.version}"/>
   171           <arg value="--ats-version=${sf.spec.ats.version}"/>
   172         </exec>
   172         </exec>
   173 
   173 
   174         <!-- Now ready to send to ATS3 -->
   174         <!-- Now ready to send to ATS -->
   175     </target>   
   175     </target>   
   176 
   176 
   177 	<!-- Sending testdrop to ATS3 -->
   177 	<!-- Sending testdrop to ATS -->
   178 	
   178 	
   179     <target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
   179     <target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
   180         <if><equals arg1="${sf.spec.test.target}" arg2="syborg"/>
   180         <if><equals arg1="${sf.spec.test.target}" arg2="syborg"/>
   181           <then>
   181           <then>
   182             <delete file="${sf.spec.test.workerroot}/syborg.dtb" quiet="true"/>
   182             <delete file="${sf.spec.test.workerroot}/syborg.dtb" quiet="true"/>
   184           </then>
   184           </then>
   185         </if>
   185         </if>
   186         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   186         <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
   187         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   187         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
   188         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   188         <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
   189             <arg value="ats3_testdrop.pl"/>
   189             <arg value="ats_testdrop.pl"/>
   190             <arg value="--host=${sf.spec.test.host.name}"/>
   190             <arg value="--host=${sf.spec.test.host.name}"/>
   191             <arg value="--username=${sf.spec.test.host.username}"/>
   191             <arg value="--username=${sf.spec.test.host.username}"/>
   192             <arg value="--password=${sf.spec.test.host.password}"/>
   192             <arg value="--password=${sf.spec.test.host.password}"/>
   193             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   193             <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
   194             <arg value="--local-drop-path=${sf.spec.test.workerroot}\${sf.spec.test.package.droppath}"/>
   194             <arg value="--local-drop-path=${sf.spec.test.workerroot}\${sf.spec.test.package.droppath}"/>
   195             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
   195             <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
       
   196             <arg value="--ats-version=${sf.spec.ats.version}"/>
       
   197             <arg value="--ats-worker-path=${sf.spec.ats_worker.drive}"/>
   196         </exec>
   198         </exec>
   197     </target>
   199     </target>
   198     
   200     
   199     <target name="sf-start-ats">
   201     <target name="sf-start-ats">
   200         <if><available file="${ats.drive}/start.cmd"/>        
   202         <if><available file="${ats.drive}/start.cmd"/>