buildframework/helium/tests/minibuilds/qt/build.xml
changeset 217 0f5e3a7fb6af
parent 179 d8ac696cc51f
child 587 85df38eb4012
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
    38     <property name="major.version" value="0" />
    38     <property name="major.version" value="0" />
    39     <property name="minor.version" value="0" />
    39     <property name="minor.version" value="0" />
    40     <property name="publish.root.dir" location="${build.drive}/release" />
    40     <property name="publish.root.dir" location="${build.drive}/release" />
    41 
    41 
    42     <!-- For Grace upload-->
    42     <!-- For Grace upload-->
    43     <property name="release.grace.service" value="Test_Helium" />
    43     <property name="hydra.service" value="Helium" />
    44     <property name="release.grace.product" value="minibuild_qt" />
    44     <property name="hydra.product" value="minibuild_qt" />
    45     <property name="release.label" value="${major.version}.${minor.version}" />
    45     <property name="release.label" value="${major.version}.${minor.version}" />
    46 
    46 
    47     <!-- build configuration -->
    47     <!-- build configuration -->
    48     <property name="sysdef.configurations.list" value="build_tools,build" />
    48     <property name="sysdef.configurations.list" value="build_tools,build" />
    49     <path id="system.definition.files">
    49     <path id="system.definition.files">
   209     </target>
   209     </target>
   210 
   210 
   211     <target name="mini-build-check">
   211     <target name="mini-build-check">
   212         <!-- Checking that the qmake command line have been generated correctly -->
   212         <!-- Checking that the qmake command line have been generated correctly -->
   213         <if>
   213         <if>
   214             <or>
   214             <equals arg1="${build.system}" arg2="ec-helium" />
   215                 <equals arg1="${build.system}" arg2="ec-helium" />
       
   216                 <equals arg1="${build.system}" arg2="sbs-ec" />
       
   217             </or>
       
   218             <then>
   215             <then>
   219                 <au:assertFileExists file="${temp.build.dir}/run-qmake-build.mk" />
   216                 <au:assertFileExists file="${temp.build.dir}/run-qmake-build.mk" />
   220                 <loadfile property="qmake.build.makefile" srcFile="${temp.build.dir}/run-qmake-build.mk"/>
   217                 <loadfile property="qmake.build.makefile" srcFile="${temp.build.dir}/run-qmake-build.mk"/>
   221                 <au:assertTrue>
   218                 <au:assertTrue>
   222                     <and>
   219                     <and>
   223                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r src.pro" />
   220                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r src.pro" />
   224                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r examples.pro" />
   221                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r examples.pro" />
   225                     </and>
   222                     </and>
   226                 </au:assertTrue>
   223                 </au:assertTrue>
   227             </then>
   224             </then>
   228             <else>
   225         </if>
   229                 <xpathtest xmlfile="${temp.build.dir}/run-qmake-build.ant.xml">  
   226         <if>
       
   227             <equals arg1="${build.system}" arg2="sbs-ec" />
       
   228             <then>
       
   229                 <au:assertFileExists file="${temp.build.dir}/run-qmake-build.mk" />
       
   230                 <loadfile property="qmake.build.makefile" srcFile="${temp.build.dir}/run-qmake-build.mk"/>
       
   231                 <au:assertTrue>
       
   232                     <and>
       
   233                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r  -spec symbian-sbsv2 src.pro" />
       
   234                         <contains string="${qmake.build.makefile}" substring="qmake -listgen -r  -spec symbian-sbsv2 examples.pro" />
       
   235                     </and>
       
   236                 </au:assertTrue>
       
   237             </then>
       
   238         </if>
       
   239         <if>
       
   240             <equals arg1="${build.system}" arg2="sbs" />
       
   241             <then>
       
   242                 <xpathtest xmlfile="${temp.build.dir}/run-qmake-build.ant.xml">
   230                     <namespace uri="" prefix=""/>
   243                     <namespace uri="" prefix=""/>
   231                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@value='-listgen']"/>
   244                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@value='-listgen']"/>
   232                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r']"/>
   245                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r']"/>
   233                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r -listgen']"/>
   246                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r -listgen']"/>
       
   247                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r -listgen']"/>
       
   248                     <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-spec symbian-sbsv2']"/>
   234                 </xpathtest>
   249                 </xpathtest>
   235             </else>
   250             </then>
   236         </if>
   251         </if>
   237         
   252         <if>
       
   253             <equals arg1="${build.system}" arg2="ebs" />
       
   254             <then>
       
   255                     <xpathtest xmlfile="${temp.build.dir}/run-qmake-build.ant.xml">
       
   256                         <namespace uri="" prefix=""/>
       
   257                         <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@value='-listgen']"/>
       
   258                         <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r']"/>
       
   259                         <xpath expression="/project/target[@name='all']/parallel/sequential/if/then/exec/arg[@line='-r -listgen']"/>
       
   260                     </xpathtest>
       
   261             </then>
       
   262         </if>
   238         <!-- Check if prep has set some prop correctly... -->
   263         <!-- Check if prep has set some prop correctly... -->
   239         <echo>'${arm.compiler.version}'</echo>
   264         <echo>'${arm.compiler.version}'</echo>
   240         <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" />
   265         <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" />
   241 
   266 
   242         <!-- Check if compile-main step did what expected... -->
   267         <!-- Check if compile-main step did what expected... -->