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
authorMattD <mattd@symbian.org>
Fri, 18 Sep 2009 14:03:50 +0100
changeset 468 eb9ba249e164
parent 467 5d3a9a466963
child 469 d38976213e14
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
common/build.postbuild.xml
common/build.test.xml
--- a/common/build.postbuild.xml	Thu Sep 17 13:46:25 2009 +0100
+++ b/common/build.postbuild.xml	Fri Sep 18 14:03:50 2009 +0100
@@ -480,6 +480,8 @@
                     <exclude name="output/logs/deliverables/**"/>
                     <exclude name="output/logs/releaseables/**"/>
                 </zip>
+                <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run -->
+                <mkdir dir="${build.drive}/output/logs/releaseables"/> 
                 <zip destfile="${temp.log.dir}/build_BOM.zip">
                     <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/>
                     <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/>
--- a/common/build.test.xml	Thu Sep 17 13:46:25 2009 +0100
+++ b/common/build.test.xml	Fri Sep 18 14:03:50 2009 +0100
@@ -1,6 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project name="SF-COMMON-TEST" xmlns:hlm="http://www.nokia.com/helium">
 
+    <target name="sf-test-smoketest" depends="sf-prebuild,sf-build-smoketestpkg,sf-send-testpkg,sf-zip-logs,sf-publish" />
+    <target name="sf-test-bc-check" depends="sf-prebuild,sf-bc-check,sf-zip-logs,sf-publish" />
+
     <target name="sf-find-ATS-worker-root">
       <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
         <arg value="-pe"/>