|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project name="SF-COMMON-BCTEST" xmlns:hlm="http://www.nokia.com/helium"> |
|
3 |
|
4 <!-- static and dynamic BC Test target --> |
|
5 <target name="sf-bc-check"> |
|
6 <if><isset property="env.PDT_HOME"/> |
|
7 <then> |
|
8 <!-- create BC dir --> |
|
9 <mkdir dir="${build.log.dir}/BC"/> |
|
10 <delete file="${build.log.dir}/BC/bc.config" quiet="true"/> |
|
11 <delete file="${build.log.dir}/BC/BBCResults.xsl" quiet="true"/> |
|
12 <delete file="${build.log.dir}/BC/libraries.txt" quiet="true"/> |
|
13 <delete file="${build.log.dir}/BC/libraries_report.xml" quiet="true"/> |
|
14 <delete file="${build.log.dir}/BC/headers.txt" quiet="true"/> |
|
15 <delete file="${build.log.dir}/BC/headers_report.xml" quiet="true"/> |
|
16 |
|
17 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
18 <arg value="/c"/> |
|
19 <arg value="echo"/> |
|
20 <arg value="BASELINE_NAME=${sf.spec.bccheck.baseline.name}"/> |
|
21 </exec> |
|
22 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
23 <arg value="/c"/> |
|
24 <arg value="echo"/> |
|
25 <arg value="BASELINE_SDK_DIR=${sf.spec.bccheck.baseline.skd.dir}"/> |
|
26 </exec> |
|
27 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
28 <arg value="/c"/> |
|
29 <arg value="echo"/> |
|
30 <arg value="BASELINE_SDK_S60_VERSION=${sf.spec.bccheck.baseline.s60.version}"/> |
|
31 </exec> |
|
32 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
33 <arg value="/c"/> |
|
34 <arg value="echo"/> |
|
35 <arg value="CURRENT_NAME=${build.id}"/> |
|
36 </exec> |
|
37 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
38 <arg value="/c"/> |
|
39 <arg value="echo"/> |
|
40 <arg value="CURRENT_SDK_DIR=${build.drive}"/> |
|
41 </exec> |
|
42 <exec executable="cmd" output="${build.log.dir}/BC/bc.config" append="true"> |
|
43 <arg value="/c"/> |
|
44 <arg value="echo"/> |
|
45 <arg value="CURRENT_SDK_S60_VERSION=${sf.spec.bccheck.current.s60.version}"/> |
|
46 </exec> |
|
47 |
|
48 <copy file="${sf.spec.pdt.root}/fts/compatibilityanalyser/reports/BBCResults.xsl" tofile="${build.log.dir}/BC/BBCResults.xsl" failonerror="false" verbose="true"/> |
|
49 |
|
50 <if><istrue value="${sf.spec.bccheck.enable.la}"/> |
|
51 <then> |
|
52 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/libraries.txt"> |
|
53 <arg value="CheckBC.py"/> |
|
54 <arg value="${build.log.dir}/BC/bc.config"/> |
|
55 <arg value="-la"/> |
|
56 <arg value="-f"/> |
|
57 <arg value="${sf.spec.bccheck.reportid}"/> |
|
58 </exec> |
|
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"/> |
|
60 </then> |
|
61 </if> |
|
62 |
|
63 <if><istrue value="${sf.spec.bccheck.enable.ha}"/> |
|
64 <then> |
|
65 <exec executable="python" dir="${sf.spec.pdt.root}/fts/compatibilityanalyser" output="${build.log.dir}/BC/headers.txt"> |
|
66 <arg value="CheckBC.py"/> |
|
67 <arg value="${build.log.dir}/BC/bc.config"/> |
|
68 <arg value="-ha"/> |
|
69 <arg value="-f"/> |
|
70 <arg value="${sf.spec.bccheck.reportid}"/> |
|
71 </exec> |
|
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"/> |
|
73 </then> |
|
74 </if> |
|
75 |
|
76 <if><istrue value="${sf.spec.bccheck.enable.dynamic}"/> |
|
77 <then> |
|
78 <for param="file"> |
|
79 <path> |
|
80 <fileset dir="${sf.spec.test.package.location}/../bctest" includes="*.zip"/> |
|
81 </path> |
|
82 <sequential> |
|
83 <propertyregex override="yes" property="program" input="@{file}" regexp="([^\\/\/]*)$" select="\1"/> |
|
84 <echo message="INFO Updating bctest package with test info"/> |
|
85 <echo message="************ Test drop package name: ${program} " /> |
|
86 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_dynamicbc.log"> |
|
87 <arg value="ats_specialise_test_drop.pl"/> |
|
88 <arg value="--test-drop-name=${env.COMPUTERNAME}-bctest-${build.id}_${program}"/> |
|
89 <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/> |
|
90 <arg value="--src=${sf.spec.test.package.location}/../bctest/${program}"/> |
|
91 <arg value="--dest=${sf.spec.test.package.location}\${env.COMPUTERNAME}-bctest-${build.id}_${program}" /> |
|
92 </exec> |
|
93 <!-- Now ready to send to ATS3 --> |
|
94 <echo message="Sending Test drop : ${program} ............" /> |
|
95 <antcall target="sf-send-testpkg" inheritAll="false"> |
|
96 <param name="sf.spec.test.package.name" value="${env.COMPUTERNAME}-bctest-${build.id}_${program}"/> |
|
97 </antcall> |
|
98 |
|
99 </sequential> |
|
100 |
|
101 </for> |
|
102 </then> |
|
103 </if> |
|
104 </then> |
|
105 <else> |
|
106 <echo message="WARNING: PDT_HOME not set, I dont know where the BC tools are installed so cannot continue"/> |
|
107 </else> |
|
108 </if> |
|
109 </target> |
|
110 |
|
111 <!-- Preparing smoketest package (zip) for sending to ATS3 --> |
|
112 |
|
113 <target name="sf-build-smoketestpkg" depends="sf-getenv-tools"> |
|
114 <delete dir ="${build.drive}/smoketest"/> |
|
115 <delete file ="${build.log.dir}/ATS_${build.id}_smoketest.log"/> |
|
116 |
|
117 <echo message="INFO Copy smoketest source to EPOCROOT"/> |
|
118 |
|
119 <copy todir="${build.drive}/smoketest"> |
|
120 <fileset dir="${sf.common.config.dir}/tools/ats/smoketest"/> |
|
121 </copy> |
|
122 |
|
123 <echo message="INFO Building smoketest"/> |
|
124 <exec executable="cmd" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
125 <arg value="/c"/> |
|
126 <arg value="sbs -b bld.inf -c winscw_udeb.test"/> |
|
127 </exec> |
|
128 |
|
129 <echo message="INFO Creating smoketest testpackage"/> |
|
130 <exec executable="perl" dir="${build.drive}/smoketest/group" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
131 <arg value="smoketest.pl"/> |
|
132 </exec> |
|
133 <copy file="${build.drive}/smoketest/group/smoketest.zip" todir="${sf.spec.test.package.location}"/> |
|
134 |
|
135 <echo message="INFO Updating smoketest package with test info"/> |
|
136 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" append="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log"> |
|
137 <arg value="ats_specialise_test_drop.pl"/> |
|
138 <arg value="--test-drop-name=Smoketest-${build.id}"/> |
|
139 <arg value="--device-name=GENERIC EMULATOR on ${env.COMPUTERNAME}"/> |
|
140 <arg value="--src=${sf.spec.test.package.location}\smoketest.zip"/> |
|
141 <arg value="--dest=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/> |
|
142 <arg value="--build-id=http://${sf.spec.publish.diamonds.server}${diamonds.build.id}"/> |
|
143 </exec> |
|
144 <!-- Now ready to send to ATS3 --> |
|
145 </target> |
|
146 |
|
147 <!-- Sending testdrop to ATS3 --> |
|
148 |
|
149 <target name="sf-send-testpkg" depends="sf-make-junction"> |
|
150 <mkdir dir="${sf.spec.test.package.droppath}"/> |
|
151 <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/> |
|
152 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log"> |
|
153 <arg value="ats3_testdrop.pl"/> |
|
154 <arg value="--host=${sf.spec.test.host.name}"/> |
|
155 <arg value="--username=${sf.spec.test.host.username}"/> |
|
156 <arg value="--password=${sf.spec.test.host.password}"/> |
|
157 <arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/> |
|
158 <arg value="--local-drop-path=${sf.spec.test.package.droppath}"/> |
|
159 <arg value="--host-drop-path=${sf.spec.test.host.droppath}"/> |
|
160 </exec> |
|
161 </target> |
|
162 </project> |