~pwlars/ubuntu-test-cases/krillin-recovery

« back to all changes in this revision

Viewing changes to jenkins/templates/touch-smoke.xml.jinja2

  • Committer: Andy Doan
  • Date: 2013-10-21 15:15:37 UTC
  • mfrom: (70.3.9 ptr)
  • Revision ID: andy.doan@canonical.com-20131021151537-blgx90slc3jlnamc
This change differentiates autopilot and UTAH written tests (when MEGA=1 is enabled). In the event of an autopilot test, we'll execute them with the new run-autopilot-tests.sh script (which will only deliver xUnit XML results).

This change includes job options to allow a user to selectively choose packages/ppas/tests to run. The gist of this change allows us to support the Lab Test Execution Service we've been planning.

Downsides: The qa-dashboard doesn't yet know how to parse xUnit XML, so for now this can only be used on our staging servers and not by our daily image testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<project>
3
3
  <actions/>
4
4
  <description>
 
5
This job provides a flexible way to execute all the tests in our daily image
 
6
testing process that contribute to the
 
7
&lt;a href=&quot;http://reports.qa.ubuntu.com/smokeng/&quot;&gt;QA Dashboard&lt;/a&gt;.
 
8
The job is parameterized to give flexibility in what gets tested. A couple of
 
9
common ways to run this job are:
 
10
&lt;dl>
 
11
  &lt;dt&gt;Full Test Run&lt;/dt&gt;
 
12
  &lt;dd&gt;TESTS=ALL&lt;/dd&gt;
 
13
  &lt;dd&gt;APPS=ALL&lt;/dd&gt;
 
14
  &lt;dd&gt;PACKAGES=ALL&lt;/dd&gt;
 
15
  &lt;dt&gt;Re-run a Failed Autopilot Test&lt;/dt&gt;
 
16
  &lt;dd&gt;INSTALL_URL=http://jenkins-dev-image-test:8080/job/saucy-touch_ro-mako/9&lt;/dd&gt;
 
17
  &lt;dd&gt;APPS=share_app&lt;/dd&gt;
 
18
  &lt;dt&gt;Run Several Autopilot Tests on Latest Build&lt;/dt&gt;
 
19
  &lt;dd&gt;APPS=share_app music_app&lt;/dd&gt;
 
20
  &lt;dd&gt;PACKAGES=share-app-autopilot&lt;/dd&gt;
 
21
&lt;/dl&gt;
5
22
&lt;pre&gt;
6
23
#NOTE: Automatically created from a script as part of daily smoke testing&#xd;
7
24
  {{branch}}&#xd;
13
30
      <parameterDefinitions>
14
31
        <hudson.model.StringParameterDefinition>
15
32
          <name>INSTALL_URL</name>
16
 
          <description>A URL to the previous job. If provided this job will use the same install options as it used.
 
33
          <description>A URL to the previous job. If provided this job will use the same install options as it used. If the device executing the job happens to have the exact same image, then provisioning can be skipped.
17
34
          </description>
18
35
          <defaultValue></defaultValue>
19
36
        </hudson.model.StringParameterDefinition>
23
40
          </description>
24
41
          <defaultValue></defaultValue>
25
42
        </hudson.model.StringParameterDefinition>
 
43
        <hudson.model.StringParameterDefinition>
 
44
          <name>APPS</name>
 
45
          <description>A space separated list of autopilot tests to run. "ALL" can be used to run all known tests.
 
46
          </description>
 
47
          <defaultValue></defaultValue>
 
48
        </hudson.model.StringParameterDefinition>
 
49
        <hudson.model.StringParameterDefinition>
 
50
          <name>PACKAGES</name>
 
51
          <description>A space separated list of packages to install. "ALL" can be used to install required packages for all known autopilot tests.
 
52
          </description>
 
53
          <defaultValue>ALL</defaultValue>
 
54
        </hudson.model.StringParameterDefinition>
 
55
        <hudson.model.StringParameterDefinition>
 
56
          <name>PPAS</name>
 
57
          <description>A space separated list of PPAs to configure on the device.
 
58
          </description>
 
59
          <defaultValue></defaultValue>
 
60
        </hudson.model.StringParameterDefinition>
26
61
      </parameterDefinitions>
27
62
    </hudson.model.ParametersDefinitionProperty>
28
63
    <com.sonyericsson.rebuild.RebuildSettings>
49
84
export ANDROID_SERIAL={{serial}}
50
85
 
51
86
{{image_opt}}
 
87
 
52
88
if [ -z $INSTALL_URL ] ; then
53
89
  #Wait for images to actually show up on cdimage
54
90
  sleep {{wait}}
55
91
 
56
 
  ${BZRDIR}/scripts/provision.sh -i {{imagetype}} -w
 
92
  if [ &quot;$PACKAGES&quot; = &quot;ALL&quot; ] ; then
 
93
    PACKAGES=&quot;$(${BZRDIR}/jenkins/apconfig.py packages)&quot;
 
94
  fi
 
95
 
 
96
  custom_args=&quot;&quot;
 
97
  set +x
 
98
  for p in $PACKAGES ; do
 
99
    custom_args=&quot;$custom_args -p $p&quot;
 
100
  done
 
101
  for p in $PPAS ; do
 
102
    custom_args=&quot;$custom_args -P $p&quot;
 
103
  done
 
104
  set -x
 
105
  ${BZRDIR}/scripts/provision.sh -i {{imagetype}} $custom_args
57
106
else
58
107
  BASEDIR=${BZRDIR} ${BZRDIR}/scripts/assert-image
59
108
fi
60
109
 
 
110
if [ &quot;$APPS&quot; = &quot;ALL&quot; ] ; then
 
111
  APPS=&quot;$(${BZRDIR}/jenkins/apconfig.py apps)&quot;
 
112
fi
 
113
[ -z "$APPS" ] || APPS=${APPS} ${BZRDIR}/scripts/run-autopilot-tests.sh
 
114
 
61
115
if [ &quot;$TESTS&quot; = &quot;ALL&quot; ] ; then
62
116
  TESTS="{{tests}}"
63
117
fi