common/build.test.xml
author Simon Howkins <simonh@symbian.org>
Tue, 19 Oct 2010 11:11:40 +0100
changeset 1309 2ea5b5b66973
parent 1301 dfefb892e7f8
permissions -rw-r--r--
Adjusted release tagging, so that it clones from the package source, not dst, and hence it's much less likely that the tagging operation will create multiple heads on the TAGS branch.
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
468
eb9ba249e164 Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
MattD <mattd@symbian.org>
parents: 441
diff changeset
     4
    <target name="sf-test-smoketest" depends="sf-prebuild,sf-build-smoketestpkg,sf-send-testpkg,sf-zip-logs,sf-publish" />
eb9ba249e164 Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
MattD <mattd@symbian.org>
parents: 441
diff changeset
     5
    <target name="sf-test-bc-check" depends="sf-prebuild,sf-bc-check,sf-zip-logs,sf-publish" />
eb9ba249e164 Added test targets 'sf-test-smoketest' and 'sf-test-bc-check' for the test team. They populate the drive, run the tests and zip the output. Minor fix was needed in the post build for zipping: '${build.drive}/output/logs/releaseables' must exist
MattD <mattd@symbian.org>
parents: 441
diff changeset
     6
1301
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
     7
    <target name="sf-find-ATS-worker-root" unless="sf.spec.test.workerroot">
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
     8
      <property file="${sf.common.config.dir}/tools/ats/devices/${env.COMPUTERNAME}/EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" prefix="sf.test.searching.for.temp.dir"/>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
     9
      <fail message="Unable to read TEMPDIR from ${sf.common.config.dir}/tools/ats/devices/${env.COMPUTERNAME}/EMULATOR_GENERIC_${env.COMPUTERNAME}.properties to set ATS worker root">
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    10
        <condition>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    11
          <not>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    12
            <isset property="sf.test.searching.for.temp.dir.TEMPDIR"/>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    13
          </not>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    14
        </condition>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    15
      </fail>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    16
      <property name="sf.spec.test.workerroot" value="${sf.test.searching.for.temp.dir.TEMPDIR}"/>
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    17
      <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    18
    </target>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    19
    
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    20
    <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">        
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    21
        <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    22
        <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
    23
        <arg value="make_junction.pl"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    24
        <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    25
        <arg value="--target=${build.drive}/epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    26
        <arg value="--force"/>
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>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    29
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    30
    <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
1301
dfefb892e7f8 Simplified code for reading ATS worker root. Plus clearer error message if it cannot be read.
Simon Howkins <simonh@symbian.org>
parents: 1246
diff changeset
    31
      <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">
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    32
        <arg value="-d"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    33
        <arg value="epoc32"/>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    34
      </exec>
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
    35
    </target>  
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    36
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    37
<!-- 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
    38
    <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
    39
        <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
    40
        <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    41
            <!-- create BC dir -->
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    42
            <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
    43
            <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
    44
            <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
    45
            <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
    46
            <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
    47
            <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
    48
            <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
    49
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    50
            <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
    51
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    52
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    53
                <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
    54
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    55
            <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
    56
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    57
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    58
                <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
    59
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    60
            <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
    61
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    62
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    63
                <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
    64
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    65
            <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
    66
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    67
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    68
                <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
    69
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    70
            <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
    71
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    72
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    73
                <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
    74
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    75
            <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
    76
                <arg value="/c"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    77
                <arg value="echo"/>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    78
                <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
    79
            </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    80
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    81
            <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
    82
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    83
            <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
    84
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    85
                    <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
    86
                        <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
    87
                        <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
    88
                        <arg value="-la"/>
878
3a6ebfddb7fe Enabled filtering results after Static BC analysis
Maciej Seroka <maciejs@symbian.org>
parents: 873
diff changeset
    89
                        <arg value="-f"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    90
                        <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
    91
                    </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    92
                    <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
    93
                </then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    94
            </if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    95
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    96
            <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
    97
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
    98
                    <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
    99
                        <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
   100
                        <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
   101
                        <arg value="-ha"/>
878
3a6ebfddb7fe Enabled filtering results after Static BC analysis
Maciej Seroka <maciejs@symbian.org>
parents: 873
diff changeset
   102
                        <arg value="-f"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   103
                        <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
   104
                    </exec>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   105
                    <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
   106
                </then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   107
            </if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   108
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   109
            <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
   110
                <then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   111
                    <for param="file">
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   112
						<path>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   113
							<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
   114
						</path>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   115
						<sequential>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   116
							<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
   117
                            <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
   118
					        <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
   119
                            <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
   120
                              <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
   121
                              <arg value="--test-drop-name=${env.COMPUTERNAME}-bctest-${build.id}_${program}"/> 
550
4128d08e7c08 Changed ats_specialise_testdrop and build.test.xml to use the 'HOST' device property to fix the devicem rather than the 'NAME' property
Brendan Donegan brendand@symbian.org
parents: 468
diff changeset
   122
                              <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   123
                              <arg value="--src=${sf.spec.test.package.location}/../bctest/${program}"/>
822
1a356be50bf9 Implemented FileStoreAction for BC tests
Maciej Seroka <maciejs@symbian.org>
parents: 820
diff changeset
   124
                              <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-bctest-${build.id}_${program}" />
1a356be50bf9 Implemented FileStoreAction for BC tests
Maciej Seroka <maciejs@symbian.org>
parents: 820
diff changeset
   125
                              <arg value="--publish=${publish.dir}\ats_reports\${program}"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   126
                            </exec>
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   127
                            <!-- Now ready to send to ATS -->  
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   128
					      <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
   129
					<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
   130
                        <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
   131
                    </antcall>					
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   132
							
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   133
						</sequential>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   134
  
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   135
					</for>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   136
				</then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   137
			</if>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   138
		</then>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   139
        <else>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   140
            <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
   141
        </else>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   142
		</if>	
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   143
    </target>
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   144
    
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   145
	<!-- Preparing smoketest package (zip) for sending to ATS -->
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   146
	
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   147
	<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
   148
        <echo message="INFO Building smoketest"/>
1124
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   149
		
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   150
		<!-- Have to replace qt.conf with the one in the smoketest package -->
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   151
		<copy file="${build.drive}/epoc32/tools/qt/qt.conf" tofile="${build.drive}/epoc32/tools/qt/qt.conf.temp" overwrite="true" />
1126
4af748f40e05 Needed to look in the qt subdirectory of the smoketest for the conf file
brendand@symbian.org
parents: 1124
diff changeset
   152
		<copy file="${build.drive}/smoketest/qt/qt.conf.smoketest" tofile="${build.drive}/epoc32/tools/qt/qt.conf" overwrite="true" />
1124
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   153
		
1098
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   154
         <fmpp sourceFile="${qt.qmake.ant.template}" outputFile="${temp.build.dir}/run-qmake-test.ant.xml">
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   155
            <data expandProperties="yes">
1099
b9c9403415f0 Smoketest source path wrong in build.test.xml
Brendan Donegan <brendand@symbian.org>
parents: 1098
diff changeset
   156
                data: xml(${build.drive}/smoketest/package_definition.xml)
1098
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   157
                ant: antProperties()
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   158
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   159
            </data>
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   160
        </fmpp>
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   161
		<hlm:assertFileExists xmlns:hlm="http://www.nokia.com/helium" file="${temp.build.dir}/run-qmake-test.ant.xml"/>
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   162
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   163
		<!-- Running the qmake steps -->
b698b6eb9e88 Try different approach to qmake
Brendan Donegan <brendand@symbian.org>
parents: 1097
diff changeset
   164
        <ant antfile="${temp.build.dir}/run-qmake-test.ant.xml" dir="${build.drive}/" output="${compile.log.dir}/${build.id}_test.qmake.log"/>
1097
cb4c228f2484 Added call to run-qmake to build.test.xml
Brendan Donegan <brendand@symbian.org>
parents: 1096
diff changeset
   165
		
1122
7cb8523f73e3 Shifted to correct directory for building with package definition
Brendan Donegan <brendand@symbian.org>
parents: 1099
diff changeset
   166
        <exec executable="cmd" dir="${build.drive}/smoketest" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   167
            <arg value="/c"/>
1123
e0554eb36cb5 Use package definition NOT bld.inf
Brendan Donegan <brendand@symbian.org>
parents: 1122
diff changeset
   168
            <arg value="sbs -c winscw_udeb -s package_definition.xml"/>
1097
cb4c228f2484 Added call to run-qmake to build.test.xml
Brendan Donegan <brendand@symbian.org>
parents: 1096
diff changeset
   169
        </exec>
cb4c228f2484 Added call to run-qmake to build.test.xml
Brendan Donegan <brendand@symbian.org>
parents: 1096
diff changeset
   170
		
1122
7cb8523f73e3 Shifted to correct directory for building with package definition
Brendan Donegan <brendand@symbian.org>
parents: 1099
diff changeset
   171
        <exec executable="cmd" dir="${build.drive}/smoketest" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
1097
cb4c228f2484 Added call to run-qmake to build.test.xml
Brendan Donegan <brendand@symbian.org>
parents: 1096
diff changeset
   172
            <arg value="/c"/>
1123
e0554eb36cb5 Use package definition NOT bld.inf
Brendan Donegan <brendand@symbian.org>
parents: 1122
diff changeset
   173
            <arg value="sbs -c winscw_udeb.test -s package_definition.xml"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   174
        </exec>
1124
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   175
		
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   176
		<!-- Be a good boy and put the file back where it was -->
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   177
		<copy file="${build.drive}/epoc32/tools/qt/qt.conf" tofile="${build.drive}/epoc32/tools/qt/qt.conf.smoketest" overwrite="true" />
a6d2a8ac4c74 Replace the qt.conf for the duration of the building of the tests
brendand@symbian.org
parents: 1123
diff changeset
   178
		<copy file="${build.drive}/epoc32/tools/qt/qt.conf.temp" tofile="${build.drive}/epoc32/tools/qt/qt.conf" overwrite="true" />
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   179
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   180
        <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
   181
        <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
   182
            <arg value="smoketest.pl"/>
992
8428cb6e199e Whoops - no closing tag for if in sf-start-ats.
Brendan Donegan <brendand@symbian.org>
parents: 990
diff changeset
   183
			<arg value="--target=${sf.spec.test.target}"/>
1081
e212ddf00ed6 Introduced new Helium property (sf.spec.ats.version) to specify ATS version
Maciej Seroka <maciejs@symbian.org>
parents: 1007
diff changeset
   184
			<arg value="--ats-version=${sf.spec.ats.version}"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   185
        </exec>
607
3c858aa7a023 Keepgoing in the event of testpackage submit error.
Shabe Razvi <shaber@symbian.org>
parents: 550
diff changeset
   186
        <copy file="${build.drive}/smoketest/group/smoketest.zip" todir="${sf.spec.test.package.location}"  failonerror="false"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   187
        
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   188
        <echo message="INFO Updating smoketest package with test info"/>
995
73dce18476a0 Fixed: exec doesn't support the nested "if" element
Maciej Seroka <maciejs@symbian.org>
parents: 994
diff changeset
   189
1085
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   190
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   191
          <arg value="ats_specialise_test_drop.pl"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   192
          <arg value="--test-drop-name=Smoketest-${build.id}"/> 
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   193
          <arg value="--host-name=${env.COMPUTERNAME}.ad-sfpd.intra"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   194
          <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   195
          <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>	
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   196
          <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/>	
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   197
          <arg value="--publish=${publish.dir}\ats_reports"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   198
          <arg value="--bld-drive=${build.drive}"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   199
          <arg value="--test-target=${sf.spec.test.target}"/>
1246
85da5566bcbb Introduced new helium properties (sf.spec.test.image.location and sf.spec.test.image.name)
Maciej Seroka <maciejs@symbian.org>
parents: 1126
diff changeset
   200
          <arg value="--image-path=${sf.spec.test.image.location}\${sf.spec.test.image.name}"/>
1085
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   201
          <arg value="--ats-version=${sf.spec.ats.version}"/>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   202
        </exec>
461755d25d57 Modified ats_specialise_test_drop to handle ats4 test plans
Maciej Seroka <maciejs@symbian.org>
parents: 1081
diff changeset
   203
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   204
        <!-- Now ready to send to ATS -->
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   205
    </target>   
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   206
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   207
	<!-- Sending testdrop to ATS -->
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   208
	
441
efd6b490c9fa ATS target made.
royt <tathagatar@symbian.org>
parents: 393
diff changeset
   209
    <target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction">
994
28143a19361e Introduced new property for passing ROM image path to ats_specialise_test_drop
Maciej Seroka <maciejs@symbian.org>
parents: 992
diff changeset
   210
        <if><equals arg1="${sf.spec.test.target}" arg2="syborg"/>
28143a19361e Introduced new property for passing ROM image path to ats_specialise_test_drop
Maciej Seroka <maciejs@symbian.org>
parents: 992
diff changeset
   211
          <then>
28143a19361e Introduced new property for passing ROM image path to ats_specialise_test_drop
Maciej Seroka <maciejs@symbian.org>
parents: 992
diff changeset
   212
            <delete file="${sf.spec.test.workerroot}/syborg.dtb" quiet="true"/>
1246
85da5566bcbb Introduced new helium properties (sf.spec.test.image.location and sf.spec.test.image.name)
Maciej Seroka <maciejs@symbian.org>
parents: 1126
diff changeset
   213
            <copy file="${sf.spec.test.image.location}/syborg.dtb" todir="${sf.spec.test.workerroot}" failonerror="false"/>
994
28143a19361e Introduced new property for passing ROM image path to ats_specialise_test_drop
Maciej Seroka <maciejs@symbian.org>
parents: 992
diff changeset
   214
          </then>
28143a19361e Introduced new property for passing ROM image path to ats_specialise_test_drop
Maciej Seroka <maciejs@symbian.org>
parents: 992
diff changeset
   215
        </if>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   216
        <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
   217
        <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
   218
        <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   219
            <arg value="ats_testdrop.pl"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   220
            <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
   221
            <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
   222
            <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
   223
            <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
   224
            <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
   225
            <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
1087
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   226
            <arg value="--ats-version=${sf.spec.ats.version}"/>
73af6e555060 Replaced ats3_testdrop with ats_testdrop to handle sending test drops to ATS4 server
Maciej Seroka <maciejs@symbian.org>
parents: 1085
diff changeset
   227
            <arg value="--ats-worker-path=${sf.spec.ats_worker.drive}"/>
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   228
        </exec>
393
8db8dd000e3b changed test section
royt <tathagatar@symbian.org>
parents: 381
diff changeset
   229
    </target>
987
a820ca8ac7a7 Run start.cmd only if it exists
Brendan Donegan <brendand@symbian.org>
parents: 974
diff changeset
   230
    
1007
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   231
    <target name="sf-start-ats">
1088
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   232
        <if><equals arg1="${sf.spec.ats.version}" arg2="ats3"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   233
            <then>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   234
                <if><available file="${ats.drive}/start.cmd"/>  
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   235
                    <then>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   236
                        <forget>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   237
                            <exec executable="cmd" dir="${ats.drive}" failonerror="true">
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   238
                                <arg value="/c"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   239
                                <arg value="start"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   240
                                <arg value='"ATS3 STAF"'/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   241
                                <arg value="/D"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   242
                                <arg value="."/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   243
                                <arg value="/MAX"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   244
                                <arg value="run.cmd"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   245
                            </exec>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   246
                        </forget>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   247
                        <echo message="Waiting for 10 seconds for the ATS Worker to start......."/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   248
                        <sleep seconds="10"/>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   249
                    </then>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   250
                </if>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   251
            </then>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   252
        </if>
31677de59336 Added automatic start-up of the ATS4 Agent(s) and Engine components.
Maciej Seroka <maciejs@symbian.org>
parents: 1087
diff changeset
   253
        <if><equals arg1="${sf.spec.ats.version}" arg2="ats4"/>
1007
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   254
            <then>
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   255
                <forget>
1096
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   256
                    <exec executable="cmd" dir="${ats.drive}" failonerror="true">
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   257
                        <arg value="/c"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   258
                        <arg value="start"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   259
                        <arg value='"ATS4 Agent"'/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   260
                        <arg value="/D"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   261
                        <arg value="."/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   262
                        <arg value="/MAX"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   263
                        <arg value="startAgent.cmd"/>
1007
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   264
                    </exec>
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   265
                </forget>
1093
eb727f77b934 Modified ATS4 Engine startup command
Maciej Seroka <maciejs@symbian.org>
parents: 1092
diff changeset
   266
                <echo message="Waiting for 10 seconds for the ATS4 Agent(s) to start......."/>
eb727f77b934 Modified ATS4 Engine startup command
Maciej Seroka <maciejs@symbian.org>
parents: 1092
diff changeset
   267
                <sleep seconds="10"/>
1096
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   268
                <forget>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   269
                    <exec executable="cmd" dir="${ats.drive}" failonerror="true">
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   270
                        <arg value="/c"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   271
                        <arg value="start"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   272
                        <arg value='"ATS4 Engine"'/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   273
                        <arg value="/D"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   274
                        <arg value="."/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   275
                        <arg value="/MAX"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   276
                        <arg value="startEngine.cmd"/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   277
                    </exec>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   278
                </forget>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   279
                <echo message="Waiting for 10 seconds for the ATS4 Engine to start......."/>
7e7420e7272c Added auto-startup of ATS4 Engine
Maciej Seroka <maciejs@symbian.org>
parents: 1095
diff changeset
   280
                <sleep seconds="10"/>
1007
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   281
            </then>
8c24dee61a8f Fixed launching of ATS3, for all servers.
Simon Howkins <simonh@symbian.org>
parents: 1006
diff changeset
   282
        </if>
441
efd6b490c9fa ATS target made.
royt <tathagatar@symbian.org>
parents: 393
diff changeset
   283
    </target> 
381
ad45f298ad85 Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff changeset
   284
</project>