common/build.test.xml
author royt <tathagatar@symbian.org>
Thu, 03 Sep 2009 11:35:26 +0100
changeset 393 8db8dd000e3b
parent 381 ad45f298ad85
child 441 efd6b490c9fa
permissions -rw-r--r--
changed test section
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     2
<project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     3
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     4
    <target name="sf-find-ATS-worker-root">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     5
      <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     6
        <arg value="-pe"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     7
        <arg value="&quot;m/TEMPDIR=(\S+)/;print $1;s/.*\n//g&quot;"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     8
        <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> 
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
     9
      </exec>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    10
      <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> 
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    11
    </target>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    12
    
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    13
    <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">        
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    14
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    15
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    16
        <arg value="make_junction.pl"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    17
        <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    18
        <arg value="--target=${build.drive}/epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    19
        <arg value="--force"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    20
      </exec>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    21
    </target>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    22
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    23
    <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    24
        <exec executable="junction.exe" dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    25
        <arg value="-d"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    26
        <arg value="epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    27
      </exec>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    28
    </target>  
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    29
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    30
<!-- static and dynamic BC Test target -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    31
    <target name="sf-bc-check">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    32
        <if><isset property="env.PDT_HOME"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    33
        <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    34
            <!-- create BC dir -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    35
            <mkdir dir="${build.log.dir}/BC"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    36
            <delete file="${build.log.dir}/BC/bc.config" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    37
            <delete file="${build.log.dir}/BC/BBCResults.xsl" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    38
            <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    39
            <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    40
            <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    41
            <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    42
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    43
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    44
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    45
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    46
                <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    47
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    48
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    49
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    50
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    51
                <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    52
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    53
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    54
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    55
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    56
                <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    57
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    58
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    59
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    60
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    61
                <arg value="CURRENT_NAME=${build.id}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    62
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    63
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    64
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    65
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    66
                <arg value="CURRENT_SDK_DIR=${build.drive}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    67
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    68
            <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    69
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    70
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    71
                <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    72
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    73
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    74
            <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/BBCResults.xsl" tofile="${build.log.dir}/BC/BBCResults.xsl" failonerror="false" verbose="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    75
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    76
            <if><istrue value="${sf.spec.bccheck.enable.la}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    77
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    78
                    <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    79
                        <arg value="CheckBC.py"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    80
                        <arg value="${build.log.dir}/BC/bc.config"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    81
                        <arg value="-la"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    82
                        <arg value="-f"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    83
                        <arg value="${sf.spec.bccheck.reportid}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    84
                    </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    85
                    <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Libraries_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/libraries_report.xml" failonerror="false" verbose="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    86
                </then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    87
            </if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    88
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    89
            <if><istrue value="${sf.spec.bccheck.enable.ha}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    90
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    91
                    <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    92
                        <arg value="CheckBC.py"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    93
                        <arg value="${build.log.dir}/BC/bc.config"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    94
                        <arg value="-ha"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    95
                        <arg value="-f"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    96
                        <arg value="${sf.spec.bccheck.reportid}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    97
                    </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    98
                    <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/Headers_CompatibilityReport_${sf.spec.bccheck.reportid}.xml" tofile="${build.log.dir}/BC/headers_report.xml" failonerror="false" verbose="true"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    99
                </then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   100
            </if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   101
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   102
            <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   103
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   104
                    <for param="file">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   105
						<path>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   106
							<fileset dir="${sf.spec.test.package.location}/../bctest" includes="*.zip"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   107
						</path>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   108
						<sequential>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   109
							<propertyregex override="yes" property="program"  input="@{file}" regexp="([^\\/\/]*)$" select="\1"/>  						
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   110
                            <echo message="INFO Updating bctest package with test info"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   111
					        <echo message="************ Test drop package name:  ${program} " />
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   112
                            <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_dynamicbc.log">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   113
                              <arg value="ats_specialise_test_drop.pl"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   114
                              <arg value="--test-drop-name=${env.COMPUTERNAME}-bctest-${build.id}_${program}"/> 
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   115
                              <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   116
                              <arg value="--src=${sf.spec.test.package.location}/../bctest/${program}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   117
                              <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-bctest-${build.id}_${program}" />						 
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   118
                            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   119
                            <!-- Now ready to send to ATS3 -->  
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   120
					      <echo message="Sending Test drop :  ${program} ............" />									
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   121
					<antcall target="sf-send-testpkg" inheritAll="false">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   122
                        <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-bctest-${build.id}_${program}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   123
                    </antcall>					
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   124
							
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   125
						</sequential>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   126
  
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   127
					</for>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   128
				</then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   129
			</if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   130
		</then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   131
        <else>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   132
            <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   133
        </else>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   134
		</if>	
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   135
    </target>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   136
    
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   137
	<!-- Preparing smoketest package (zip) for sending to ATS3 -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   138
	
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   139
	<target name="sf-build-smoketestpkg" depends="sf-getenv-tools">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   140
        <delete dir  ="${build.drive}/smoketest"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   141
        <delete file ="${build.log.dir}/ATS_${build.id}_smoketest.log"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   142
        
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   143
        <echo message="INFO Copy smoketest source to EPOCROOT"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   144
        
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   145
        <copy todir="${build.drive}/smoketest">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   146
            <fileset dir="${sf.common.config.dir}/tools/ats/smoketest"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   147
        </copy>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   148
        
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   149
        <echo message="INFO Building smoketest"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   150
        <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   151
            <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   152
            <arg value="sbs -b bld.inf -c winscw_udeb.test"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   153
        </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   154
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   155
        <echo message="INFO Creating smoketest testpackage"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   156
        <exec executable="perl" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   157
            <arg value="smoketest.pl"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   158
        </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   159
        <copy file="${build.drive}/smoketest/group/smoketest.zip" todir="${sf.spec.test.package.location}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   160
        
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   161
        <echo message="INFO Updating smoketest package with test info"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   162
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   163
            <arg value="ats_specialise_test_drop.pl"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   164
            <arg value="--test-drop-name=Smoketest-${build.id}"/> 
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   165
            <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   166
            <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   167
            <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>	
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   168
            <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/>			
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   169
        </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   170
        <!-- Now ready to send to ATS3 -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   171
    </target>   
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   172
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   173
	<!-- Sending testdrop to ATS3 -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   174
	
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   175
    <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   176
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   177
        <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   178
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   179
            <arg value="ats3_testdrop.pl"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   180
            <arg value="--host=${sf.spec.test.host.name}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   181
            <arg value="--username=${sf.spec.test.host.username}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   182
            <arg value="--password=${sf.spec.test.host.password}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   183
            <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   184
            <arg value="--local-drop-path=${sf.spec.test.workerroot}\${sf.spec.test.package.droppath}"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   185
            <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   186
        </exec>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   187
    </target>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   188
</project>