buildframework/helium/tools/compile/qt/antunit/test_qt.ant.xml
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
    87             <contains string="${run.qmake.out}" substring="helloworld.pro" />
    87             <contains string="${run.qmake.out}" substring="helloworld.pro" />
    88         </au:assertTrue>
    88         </au:assertTrue>
    89         <au:assertTrue message="The output file must contain helloworldapi.pro">
    89         <au:assertTrue message="The output file must contain helloworldapi.pro">
    90             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
    90             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
    91         </au:assertTrue>
    91         </au:assertTrue>
    92         <au:assertTrue message="The output file must contain $${build.drive}/\sf\app\HelloWorldCons\group">
    92         <au:assertTrue message="The output file must contain $${build.drive}/sf/app/HelloWorldCons/group">
    93             <contains string="${run.qmake.out}" substring="$${build.drive}/\sf\app\HelloWorldCons\group" />
    93             <contains string="${run.qmake.out}" substring="$${build.drive}/sf/app/HelloWorldCons/group" />
    94         </au:assertTrue>
    94         </au:assertTrue>
    95         <au:assertTrue message="The output file must contain $${build.drive}/\sf\mw\HelloWorldAPI\group">
    95         <au:assertTrue message="The output file must contain $${build.drive}/sf/mw/HelloWorldAPI/group">
    96             <contains string="${run.qmake.out}" substring="$${build.drive}/\sf\mw\HelloWorldAPI\group" />
    96             <contains string="${run.qmake.out}" substring="$${build.drive}/sf/mw/HelloWorldAPI/group" />
    97         </au:assertTrue>
    97         </au:assertTrue>
    98     </target>
    98     </target>
    99     
    99     
   100     <target name="test-sysdef151-namespaced-qt-mk">
   100     <target name="test-sysdef151-namespaced-qt-mk">
       
   101         <propertyregex property="build.drive.slash" input="${build.drive}" regexp="\\" replace="/" />
       
   102         <property name="build.drive.slash" value="${build.drive}" />
   101         <property name="sysdef.configuration" value="demo" />
   103         <property name="sysdef.configuration" value="demo" />
   102         <fmpp sourceFile="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl"
   104         <fmpp sourceFile="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl"
   103            outputFile="${qt.temp.dir}/run-qmake151.mk">
   105            outputFile="${qt.temp.dir}/run-qmake151.mk">
   104             <data expandProperties="yes">
   106             <data expandProperties="yes">
   105                 data: xml(${helium.dir}/tests/data/test-qt-sysdef151.xml)
   107                 data: xml(${helium.dir}/tests/data/test-qt-sysdef151.xml)
   115             <contains string="${run.qmake.out}" substring="helloworld.pro" />
   117             <contains string="${run.qmake.out}" substring="helloworld.pro" />
   116         </au:assertTrue>
   118         </au:assertTrue>
   117         <au:assertTrue message="The output file must contain helloworldapi.pro">
   119         <au:assertTrue message="The output file must contain helloworldapi.pro">
   118             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
   120             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
   119         </au:assertTrue>
   121         </au:assertTrue>
   120         <au:assertTrue message="The output file must contain -@cd /\sf\mw\HelloWorldAPI\group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro">
   122         <au:assertTrue message="The output file must contain -@cd ${build.drive.slash}/sf/mw/HelloWorldAPI/group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro">
   121             <contains string="${run.qmake.out}" substring="-@cd /\sf\mw\HelloWorldAPI\group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro" />
   123             <contains string="${run.qmake.out}" substring="-@cd ${build.drive.slash}/sf/mw/HelloWorldAPI/group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro" />
   122         </au:assertTrue>
   124         </au:assertTrue>
   123         <au:assertTrue message="The output file must contain -@cd /\sf\app\HelloWorldCons\group &amp;&amp; qmake -listgen -r helloworld.pro">
   125         <au:assertTrue message="The output file must contain -@cd ${build.drive.slash}/sf/app/HelloWorldCons/group &amp;&amp; qmake -listgen -r helloworld.pro">
   124             <contains string="${run.qmake.out}" substring="-@cd /\sf\app\HelloWorldCons\group &amp;&amp; qmake -listgen -r helloworld.pro" />
   126             <contains string="${run.qmake.out}" substring="-@cd ${build.drive.slash}/sf/app/HelloWorldCons/group &amp;&amp; qmake -listgen -r helloworld.pro" />
   125         </au:assertTrue>
   127         </au:assertTrue>
   126     </target>
   128     </target>
   127 
   129 
   128     <target name="test-sysdef3-namespaced-qt-mk">
   130     <target name="test-sysdef3-namespaced-qt-mk">
       
   131         <propertyregex property="build.drive.slash" input="${build.drive}" regexp="\\" replace="/" global="true" />
       
   132         <property name="build.drive.slash" value="${build.drive}" />
   129         <property name="sysdef.configuration" value="demo" />
   133         <property name="sysdef.configuration" value="demo" />
   130         <fmpp sourceFile="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl"
   134         <fmpp sourceFile="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl"
   131            outputFile="${qt.temp.dir}/run-qmake3.mk">
   135            outputFile="${qt.temp.dir}/run-qmake3.mk">
   132             <data expandProperties="yes">
   136             <data expandProperties="yes">
   133                 data: xml(${helium.dir}/tests/data/test-qt-sysdef3.xml)
   137                 data: xml(${helium.dir}/tests/data/test-qt-sysdef3.xml)
   134                 ant: antProperties()
   138                 ant: antProperties()
   135             </data>
   139             </data>
   136         </fmpp>
   140         </fmpp>
   137         <au:assertFileExists file="${qt.temp.dir}/run-qmake3.mk" />
   141         <au:assertFileExists file="${qt.temp.dir}/run-qmake3.mk" />
   138         <loadfile property="run.qmake.out" srcfile="${qt.temp.dir}/run-qmake151.mk" />
   142         <loadfile property="run.qmake.out" srcfile="${qt.temp.dir}/run-qmake3.mk" />
   139         <au:assertTrue message="The output file must contain the -nomoc argument.">
   143         <au:assertTrue message="The output file must contain the -nomoc argument.">
   140             <contains string="${run.qmake.out}" substring="-nomoc" />
   144             <contains string="${run.qmake.out}" substring="-nomoc" />
   141         </au:assertTrue>
   145         </au:assertTrue>
   142         <au:assertTrue message="The output file must contain helloworld.pro">
   146         <au:assertTrue message="The output file must contain helloworld.pro">
   143             <contains string="${run.qmake.out}" substring="helloworld.pro" />
   147             <contains string="${run.qmake.out}" substring="helloworld.pro" />
   144         </au:assertTrue>
   148         </au:assertTrue>
   145         <au:assertTrue message="The output file must contain helloworldapi.pro">
   149         <au:assertTrue message="The output file must contain helloworldapi.pro">
   146             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
   150             <contains string="${run.qmake.out}" substring="helloworldapi.pro" />
   147         </au:assertTrue>
   151         </au:assertTrue>
   148         <au:assertTrue message="The output file must contain -@cd /\sf\mw\HelloWorldAPI\group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro">
   152         <au:assertTrue message="The output file must contain -@cd ${build.drive.slash}/sf/mw/helloworldapi/group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro">
   149             <contains string="${run.qmake.out}" substring="-@cd /\sf\mw\HelloWorldAPI\group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro" />
   153             <contains string="${run.qmake.out}" substring="-@cd ${build.drive.slash}/sf/mw/helloworldapi/group &amp;&amp; qmake -listgen -nomoc helloworldapi.pro" />
   150         </au:assertTrue>
   154         </au:assertTrue>
   151         <au:assertTrue message="The output file must contain -@cd /\sf\app\HelloWorldCons\group &amp;&amp; qmake -listgen -r helloworld.pro">
   155         <au:assertTrue message="The output file must contain -@cd ${build.drive.slash}/sf/app/helloworldcons/group &amp;&amp; qmake -listgen -r helloworld.pro">
   152             <contains string="${run.qmake.out}" substring="-@cd /\sf\app\HelloWorldCons\group &amp;&amp; qmake -listgen -r helloworld.pro" />
   156             <contains string="${run.qmake.out}" substring="-@cd ${build.drive.slash}/sf/app/helloworldcons/group &amp;&amp; qmake -listgen -r helloworld.pro" />
   153         </au:assertTrue>
   157         </au:assertTrue>
   154     </target>
   158     </target>
   155 </project>
   159 </project>