Merge lp:~osomon/camera-app/staging-autopkgtest into lp:camera-app/staging

Proposed by Olivier Tilloy
Status: Needs review
Proposed branch: lp:~osomon/camera-app/staging-autopkgtest
Merge into: lp:camera-app/staging
Diff against target: 83 lines (+62/-0)
3 files modified
debian/control (+1/-0)
debian/tests/control (+21/-0)
debian/tests/touch-session-autopilot (+40/-0)
To merge this branch: bzr merge lp:~osomon/camera-app/staging-autopkgtest
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
PS Jenkins bot continuous-integration Pending
Ubuntu Phablet Team Pending
Review via email: mp+298571@code.launchpad.net

Commit message

Add autopkgtest to run autopilot tests.

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:708
https://jenkins.canonical.com/system-apps/job/lp-camera-app-staging-ci/1/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build/774
    UNSTABLE: https://jenkins.canonical.com/system-apps/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=default/133
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/774
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=vivid+overlay/718
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=xenial+overlay/718
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-1-sourcepkg/release=yakkety/718
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/710
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/710/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-3-clickpkg/18

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-camera-app-staging-ci/1/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Florian Boucault (fboucault) wrote :
Revision history for this message
Florian Boucault (fboucault) wrote :
Revision history for this message
Florian Boucault (fboucault) wrote :

Emphasis, aka italics, with *asterisks* or _underscores_.

Strong emphasis, aka bold, with **asterisks** or __underscores__.

Combined emphasis with **asterisks and _underscores_**.

Strikethrough uses two tildes. ~~Scratch this.~~

Revision history for this message
Florian Boucault (fboucault) wrote :

1. First ordered list item
2. Another item
⋅⋅* Unordered sub-list.
1. Actual numbers don't matter, just that it's a number
⋅⋅1. Ordered sub-list
4. And another item.

⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅
⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅
⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

* Unordered list can use asterisks
- Or minuses
+ Or pluses

Revision history for this message
Florian Boucault (fboucault) wrote :

[I'm an inline-style link](https://www.google.com)

[I'm an inline-style link with title](https://www.google.com "Google's Homepage")

[I'm a reference-style link][Arbitrary case-insensitive reference text]

[I'm a relative reference to a repository file](../blob/master/LICENSE)

[You can use numbers for reference-style link definitions][1]

Revision history for this message
Florian Boucault (fboucault) wrote :







Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 https://jenkins.canonical.com/system-apps/job/lp-camera-app-staging-ci/1/

Automated tests:
    FAILED: https://jenkins.canonical.com/system-apps/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=default/133

Building all packages: SUCCESS

Debian packages:
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/710/artifact/output/*zip*/output.zip
    ✔ amd64 with vivid+overlay https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/710/artifact/output/*zip*/output.zip

Click packages:
    ✔ https://jenkins.canonical.com/system-apps/job/build-3-clickpkg/18

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-camera-app-staging-ci/1/rebuild

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
    ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu version 517 http://bit.ly/2bxmMKa

Building all packages: SUCCESS

Debian packages:
    ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
    ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
    ✔ amd64 yakkety http://bit.ly/2bxm9k1
    ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
    ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
    ✔ armhf yakkety http://bit.ly/2bxm9k1
    ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
    ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
    ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
    ✔ http://bit.ly/2bcvYZC

Trigger a rebuild (don't forget to login): http://bit.ly/2beu9pb

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
    ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa

Debian packages:
    ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
    ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
    ✔ amd64 yakkety http://bit.ly/2bxm9k1
    ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
    ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
    ✔ armhf yakkety http://bit.ly/2bxm9k1
    ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
    ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
    ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
    ✔ http://bit.ly/2bcvYZC

Trigger a rebuild (don't forget to login): http://bit.ly/2beu9pb

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
    ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa

Debian packages:
    ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
    ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
    ✔ amd64 yakkety http://bit.ly/2bxm9k1
    ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
    ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
    ✔ armhf yakkety http://bit.ly/2bxm9k1
    ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
    ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
    ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
    ✔ http://bit.ly/2bcvYZC

To trigger a rebuild (don't forget to login): http://bit.ly/2beu9pb

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
    ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa

Debian packages:
    ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
    ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
    ✔ amd64 yakkety http://bit.ly/2bxm9k1
    ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
    ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
    ✔ armhf yakkety http://bit.ly/2bxm9k1
    ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
    ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
    ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
    ✔ http://bit.ly/2bcvYZC

To trigger a rebuild (don't forget to login): http://bit.ly/2beu9pb

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
    ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa

Debian packages:
    ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
    ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
    ✔ amd64 yakkety http://bit.ly/2bxm9k1
    ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
    ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
    ✔ armhf yakkety http://bit.ly/2bxm9k1
    ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
    ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
    ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
    ✔ http://bit.ly/2bcvYZC

To trigger a rebuild: http://bit.ly/2beu9pb (don't forget to login)

Revision history for this message
Florian Boucault (fboucault) wrote :

Automated build of revision 708 http://bit.ly/2bMAkDs

Automated tests:
  ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa

Debian packages:
  ✔ amd64 vivid+overlay http://bit.ly/2bxm9k1
  ✔ amd64 xenial+overlay http://bit.ly/2bxm9k1
  ✔ amd64 yakkety http://bit.ly/2bxm9k1
  ✔ armhf vivid+overlay http://bit.ly/2bxm9k1
  ✔ armhf xenial+overlay http://bit.ly/2bxm9k1
  ✔ armhf yakkety http://bit.ly/2bxm9k1
  ✔ i386 vivid+overlay http://bit.ly/2bxm9k1
  ✔ i386 xenial+overlay http://bit.ly/2bxm9k1
  ✔ i386 yakkety http://bit.ly/2bxm9k1

Click packages:
  ✔ http://bit.ly/2bcvYZC

To trigger a rebuild: http://bit.ly/2beu9pb (don't forget to login)

Revision history for this message
Florian Boucault (fboucault) wrote :

FAILED: Automated build of revision 708 http://bit.ly/2bMAkDs

  ✔ krillin-04 vivid+overlay ubuntu-touch/rc-proposed/ubuntu 517 http://bit.ly/2bxmMKa
  ✔ Debian package amd64 vivid+overlay http://bit.ly/2bxm9k1
  ✔ Debian package amd64 xenial+overlay http://bit.ly/2bxm9k1
  ✔ Debian package amd64 yakkety http://bit.ly/2bxm9k1
  ✔ Debian package armhf vivid+overlay http://bit.ly/2bxm9k1
  ✔ Debian package armhf xenial+overlay http://bit.ly/2bxm9k1
  ✔ Debian package armhf yakkety http://bit.ly/2bxm9k1
  ✔ Debian package i386 vivid+overlay http://bit.ly/2bxm9k1
  ✔ Debian package i386 xenial+overlay http://bit.ly/2bxm9k1
  ✔ Debian package i386 yakkety http://bit.ly/2bxm9k1
  ✔ Click package http://bit.ly/2bcvYZC

To trigger a rebuild: http://bit.ly/2beu9pb (don't forget to login)

Unmerged revisions

708. By Olivier Tilloy

Add autopkgtest to run autopilot tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2016-04-12 08:30:04 +0000
+++ debian/control 2016-06-28 19:55:47 +0000
@@ -31,6 +31,7 @@
31# If you aren't a member of ~phablet-team but need to upload packaging changes,31# If you aren't a member of ~phablet-team but need to upload packaging changes,
32# just go ahead. ~phablet-team will notice and sync up the code again.32# just go ahead. ~phablet-team will notice and sync up the code again.
33Vcs-Bzr: https://code.launchpad.net/~phablet-team/camera-app/trunk33Vcs-Bzr: https://code.launchpad.net/~phablet-team/camera-app/trunk
34XS-Testsuite: autopkgtest
3435
35Package: camera-app36Package: camera-app
36Architecture: any37Architecture: any
3738
=== added directory 'debian/tests'
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2016-06-28 19:55:47 +0000
@@ -0,0 +1,21 @@
1# Copyright 2015-2016 Canonical
2#
3# This program is free software: you can redistribute it and/or modify it
4# under the terms of the GNU General Public License version 3, as published
5# by the Free Software Foundation.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program. If not, see <http://www.gnu.org/licenses/>.
14
15# autopkgtest is a test dependency so we don't need to copy
16# ubuntu-touch-session to the testbed but can use it from autopkgtest instead
17
18Test-Command: /bin/sh -ex debian/tests/touch-session-autopilot camera_app
19Restrictions: allow-stderr
20Classes: ubuntu-touch
21Depends: camera-app-autopilot, autopkgtest, python3-evdev, procps, sudo
022
=== added file 'debian/tests/touch-session-autopilot'
--- debian/tests/touch-session-autopilot 1970-01-01 00:00:00 +0000
+++ debian/tests/touch-session-autopilot 2016-06-28 19:55:47 +0000
@@ -0,0 +1,40 @@
1#!/bin/sh
2
3# Copyright 2015-2016 Canonical
4#
5# This program is free software: you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 3, as published
7# by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17# This runs the $1 autopilot suite ensuring that the testbed is configured
18# properly
19
20SUITE=$1
21
22set -e
23
24if ! pgrep -f unity-system-compositor ; then
25 # We're not using Mir, setup enough of an X stack
26
27 # FIXME: We won't need an X stack once Mir provides mirvfb or any other
28 # mean to test consistently on all platforms -- vila 2015-04-22
29 sudo -A ADT_NORMAL_USER=${USER} sh -e /usr/share/autopkgtest/setup-commands/ubuntu-touch-session
30 # Import the environment produced above in the current shell
31 set -a
32 . /etc/environment
33elif pgrep -f unity8 ; then
34 # Work around https://launchpad.net/bugs/1574706
35 initctl --session restart unity8
36 sleep 20
37 gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter
38fi
39
40autopilot3 run --verbose --format xml --output "${ADT_ARTIFACTS}/${SUITE}.xml" ${SUITE}

Subscribers

People subscribed via source and target branches