sf-package/build.xml
changeset 1208 86025b85795b
parent 1179 9d79e98a47e4
child 1251 0fc9e31020ea
equal deleted inserted replaced
1206:4518bca1baf0 1208:86025b85795b
    70           <param name="sbs.inputs.list" value="sf.build"/>
    70           <param name="sbs.inputs.list" value="sf.build"/>
    71           <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    71           <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    72       </antcall>    
    72       </antcall>    
    73       </sequential>
    73       </sequential>
    74     </for>
    74     </for>
    75     
    75     <!-- build test code -->	
       
    76     <if><istrue value="${sf.spec.package.test.enable}"/>
       
    77         <then>
       
    78             <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig">
       
    79               <sequential>
       
    80       
       
    81               <hlm:sbsinput id="sf.build">
       
    82                 <sbsOptions>
       
    83                     <arg line="-c @{item.sbs.splitconfig}.test"/>
       
    84                     <arg line="-k" />
       
    85                     <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
       
    86                     <arg line="-t ${sf.spec.sbs.retry.limit}"/>
       
    87                     <arg line="${sf.spec.sbs.options}"/>
       
    88                     <arg name="--filters" value="&quot;${sf.spec.sbs.filter.list}&quot;"/>
       
    89                     <arg name="--logfile" value="${build.log.dir}/${build.id}_@{item.sbs.splitconfig}_compile.log" />
       
    90                     <arg name="--makefile" value="${compile.log.dir}/${build.id}_@{item.sbs.splitconfig}_Makefile" />
       
    91                 </sbsOptions>
       
    92               </hlm:sbsinput>
       
    93       
       
    94               <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/>
       
    95               <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    96                   <param name="build.system" value="${sf.spec.build.system}" />
       
    97                   <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    98                   <param name="sbs.inputs.list" value="sf.build"/>
       
    99                   <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   100               </antcall>    
       
   101               </sequential>
       
   102            </for>
       
   103          </then>
       
   104     </if>
    76     
   105     
    77     <!-- CHECK -->
   106     <!-- CHECK -->
    78     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
   107     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
    79       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   108       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
    80       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   109       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
    81     </exec>
   110     </exec>
    82     
   111    
    83   </target>
   112   </target>
    84         
   113         
    85         
   114         
    86   <target name="sf-package-compile-hlm-5">
   115   <target name="sf-package-compile-hlm-5">
    87 
   116 
   125       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   154       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   126       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   155       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   127     </exec>
   156     </exec>
   128     
   157     
   129   </target>
   158   </target>
       
   159         
       
   160         
       
   161   <target name="sf-test-package">
       
   162 
       
   163     <echo message="INFO Preparing package"/>
       
   164     <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" output="${build.log.dir}/ATS_${build.id}_prep_package.log">
       
   165         <arg value="hlm_prep_package.pl"/>
       
   166         <arg value="--csv-file=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
       
   167         <arg value="--bld-drive=${build.drive}"/>
       
   168     </exec>
       
   169   
       
   170     <echo message="INFO Building package test drop(s)"/>
       
   171 <!--    <runtarget target="ats-test"/> --> <!-- Supported from Helium 9.0.5 onwards -->
       
   172     <echo message="INFO Skipped - Helium 9.0.5+ required"/>
       
   173 	
       
   174     <for param="file">
       
   175         <path>
       
   176             <fileset dir="${build.drive}/output/ats" includes="*.zip"/>
       
   177         </path>
       
   178         <sequential>
       
   179             <propertyregex override="yes" property="program"  input="@{file}" regexp="([^\\/\/]*)$" select="\1"/>  						
       
   180             <echo message="INFO Updating package test drop with test info"/>
       
   181             <echo message="************ Test drop name:  ${program} " />
       
   182             <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_packagetest.log">
       
   183                 <arg value="ats_specialise_test_drop.pl"/>
       
   184                 <arg value="--test-drop-name=${env.COMPUTERNAME}-packagetest-${build.id}_${program}"/> 
       
   185                 <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
       
   186                 <arg value="--src=${build.drive}/output/ats/${program}"/>
       
   187                 <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-packagetest-${build.id}_${program}" />
       
   188                 <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
       
   189                 <arg value="--ats-version=ats4"/> <!-- Hard-coded ats-version as Test Drop Generator for WINSCW supports only ATS4 -->
       
   190             </exec>
       
   191             <!-- Now ready to send to ATS -->  
       
   192             <echo message="Sending test drop :  ${program} ............" />
       
   193             <antcall target="sf-send-testpkg" inheritAll="false">
       
   194                 <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-packagetest-${build.id}_${program}"/>
       
   195             </antcall>
       
   196         </sequential>
       
   197     </for>
       
   198 
       
   199   </target>
       
   200 
       
   201   <target name="ats-emulator-zip"/> <!-- This is to override exisiting Helium target called from ats-test -->
   130   
   202   
   131 </project>
   203 </project>
   132 
   204