author | Simon Howkins <simonh@symbian.org> |
Wed, 02 Sep 2009 11:43:32 +0100 | |
changeset 388 | 2ab990de5a23 |
parent 381 | ad45f298ad85 |
child 393 | 8db8dd000e3b |
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"?> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
2 |
<project name="SF-COMMON-BCTEST" xmlns:hlm="http://www.nokia.com/helium"> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
3 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
4 |
<!-- 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
|
5 |
<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
|
6 |
<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
|
7 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
8 |
<!-- create BC dir --> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
9 |
<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
|
10 |
<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
|
11 |
<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
|
12 |
<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
|
13 |
<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
|
14 |
<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
|
15 |
<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
|
16 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
17 |
<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
|
18 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
19 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
20 |
<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
|
21 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
22 |
<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
|
23 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
24 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
25 |
<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
|
26 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
27 |
<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
|
28 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
29 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
30 |
<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
|
31 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
32 |
<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
|
33 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
34 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
35 |
<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
|
36 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
37 |
<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
|
38 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
39 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
40 |
<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
|
41 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
42 |
<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
|
43 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
44 |
<arg value="echo"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
45 |
<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
|
46 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
47 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
48 |
<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
|
49 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
50 |
<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
|
51 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
52 |
<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
|
53 |
<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
|
54 |
<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
|
55 |
<arg value="-la"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
56 |
<arg value="-f"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
57 |
<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
|
58 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
59 |
<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
|
60 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
61 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
62 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
63 |
<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
|
64 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
65 |
<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
|
66 |
<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
|
67 |
<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
|
68 |
<arg value="-ha"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
69 |
<arg value="-f"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
70 |
<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
|
71 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
72 |
<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
|
73 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
74 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
75 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
76 |
<if><istrue value="${sf.spec.bccheck.enable.dynamic}"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
77 |
<then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
78 |
<for param="file"> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
79 |
<path> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
80 |
<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
|
81 |
</path> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
82 |
<sequential> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
83 |
<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
|
84 |
<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
|
85 |
<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
|
86 |
<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
|
87 |
<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
|
88 |
<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
|
89 |
<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
|
90 |
<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
|
91 |
<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
|
92 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
93 |
<!-- 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
|
94 |
<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
|
95 |
<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
|
96 |
<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
|
97 |
</antcall> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
98 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
99 |
</sequential> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
100 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
101 |
</for> |
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 |
</then> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
105 |
<else> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
106 |
<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
|
107 |
</else> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
108 |
</if> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
109 |
</target> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
110 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
111 |
<!-- 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
|
112 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
113 |
<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
|
114 |
<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
|
115 |
<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
|
116 |
|
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 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
|
118 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
119 |
<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
|
120 |
<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
|
121 |
</copy> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
122 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
123 |
<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
|
124 |
<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
|
125 |
<arg value="/c"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
126 |
<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
|
127 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
128 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
129 |
<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
|
130 |
<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
|
131 |
<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
|
132 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
133 |
<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
|
134 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
135 |
<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
|
136 |
<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
|
137 |
<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
|
138 |
<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
|
139 |
<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
|
140 |
<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
|
141 |
<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
|
142 |
<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
|
143 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
144 |
<!-- 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
|
145 |
</target> |
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 |
<!-- 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
|
148 |
|
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
149 |
<target name="sf-send-testpkg" depends="sf-make-junction"> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
150 |
<mkdir dir="${sf.spec.test.package.droppath}"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
151 |
<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
|
152 |
<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
|
153 |
<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
|
154 |
<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
|
155 |
<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
|
156 |
<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
|
157 |
<arg value="--local-test-pkg=${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
|
158 |
<arg value="--local-drop-path=${sf.spec.test.package.droppath}"/> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
159 |
<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
|
160 |
</exec> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
161 |
</target> |
ad45f298ad85
Test targets seperated from "build.postbuild.xml" and put into "build.test.xml"
royt <tathagatar@symbian.org>
parents:
diff
changeset
|
162 |
</project> |