author | Simon Howkins <simonh@symbian.org> |
Wed, 30 Sep 2009 17:48:55 +0100 | |
changeset 547 | 19f9d5fc6406 |
parent 468 | eb9ba249e164 |
child 550 | 4128d08e7c08 |
permissions | -rw-r--r-- |
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 | 2 |
<project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium"> |
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 |
|
393 | 7 |
<target name="sf-find-ATS-worker-root"> |
8 |
<exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot"> |
|
9 |
<arg value="-pe"/> |
|
10 |
<arg value=""m/TEMPDIR=(\S+)/;print $1;s/.*\n//g""/> |
|
11 |
<arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" /> |
|
12 |
</exec> |
|
13 |
<echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/> |
|
14 |
</target> |
|
15 |
||
16 |
<target name ="sf-make-junction" depends="sf-find-ATS-worker-root"> |
|
17 |
<mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/> |
|
18 |
<exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log"> |
|
19 |
<arg value="make_junction.pl"/> |
|
20 |
<arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/> |
|
21 |
<arg value="--target=${build.drive}/epoc32"/> |
|
22 |
<arg value="--force"/> |
|
23 |
</exec> |
|
24 |
</target> |
|
25 |
||
26 |
<target name ="sf-delete-junction" depends="sf-find-ATS-worker-root"> |
|
27 |
<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"> |
|
28 |
<arg value="-d"/> |
|
29 |
<arg value="epoc32"/> |
|
30 |
</exec> |
|
31 |
</target> |
|
381
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
32 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
33 |
<!-- 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
|
34 |
<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
|
35 |
<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
|
36 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
37 |
<!-- create BC dir --> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
38 |
<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
|
39 |
<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
|
40 |
<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
|
41 |
<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
|
42 |
<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
|
43 |
<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
|
44 |
<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
|
45 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
46 |
<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
|
47 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
48 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
49 |
<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
|
50 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
51 |
<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
|
52 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
53 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
54 |
<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
|
55 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
56 |
<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
|
57 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
58 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
59 |
<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
|
60 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
61 |
<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
|
62 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
63 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
64 |
<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
|
65 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
66 |
<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
|
67 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
68 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
69 |
<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
|
70 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
71 |
<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
|
72 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
73 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
74 |
<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
|
75 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
76 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
77 |
<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
|
78 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
79 |
<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
|
80 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
81 |
<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
|
82 |
<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
|
83 |
<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
|
84 |
<arg value="-la"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
85 |
<arg value="-f"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
86 |
<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
|
87 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
88 |
<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
|
89 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
90 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
91 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
92 |
<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
|
93 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
94 |
<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
|
95 |
<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
|
96 |
<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
|
97 |
<arg value="-ha"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
98 |
<arg value="-f"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
99 |
<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
|
100 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
101 |
<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
|
102 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
103 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
104 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
105 |
<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
|
106 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
107 |
<for param="file"> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
108 |
<path> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
109 |
<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
|
110 |
</path> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
111 |
<sequential> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
112 |
<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
|
113 |
<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
|
114 |
<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
|
115 |
<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
|
116 |
<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
|
117 |
<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
|
118 |
<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
|
119 |
<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
|
120 |
<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
|
121 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
122 |
<!-- 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
|
123 |
<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
|
124 |
<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
|
125 |
<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
|
126 |
</antcall> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
127 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
128 |
</sequential> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
129 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
130 |
</for> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
131 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
132 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
133 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
134 |
<else> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
135 |
<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
|
136 |
</else> |
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 |
</target> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
139 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
140 |
<!-- 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
|
141 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
142 |
<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
|
143 |
<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
|
144 |
<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
|
145 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
146 |
<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
|
147 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
148 |
<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
|
149 |
<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
|
150 |
</copy> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
151 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
152 |
<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
|
153 |
<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
|
154 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
155 |
<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
|
156 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
157 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
158 |
<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
|
159 |
<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
|
160 |
<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
|
161 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
162 |
<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
|
163 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
164 |
<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
|
165 |
<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
|
166 |
<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
|
167 |
<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
|
168 |
<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
|
169 |
<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
|
170 |
<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
|
171 |
<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
|
172 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
173 |
<!-- 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
|
174 |
</target> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
175 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
176 |
<!-- 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
|
177 |
|
441 | 178 |
<target name="sf-send-testpkg" depends="sf-start-ats,sf-find-ATS-worker-root,sf-make-junction"> |
393 | 179 |
<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
|
180 |
<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
|
181 |
<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
|
182 |
<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
|
183 |
<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
|
184 |
<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
|
185 |
<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
|
186 |
<arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/> |
393 | 187 |
<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
|
188 |
<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
|
189 |
</exec> |
393 | 190 |
</target> |
441 | 191 |
<target name="sf-start-ats"> |
192 |
<exec executable="${ats.drive}/start.cmd" dir="${ats.drive}" failonerror="false" spawn="true" vmlauncher="false" /> |
|
193 |
<echo message="Waiting for 10 seconds to start the ATS Worker......."/> |
|
194 |
<sleep seconds="10"/> |
|
195 |
</target> |
|
381
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
196 |
</project> |