Merge lp:~pitti/indicator-session/autopkgtest into lp:indicator-session/14.10

Proposed by Martin Pitt
Status: Merged
Approved by: Charles Kerr
Approved revision: 459
Merged at revision: 457
Proposed branch: lp:~pitti/indicator-session/autopkgtest
Merge into: lp:indicator-session/14.10
Diff against target: 55 lines (+6/-28)
3 files modified
debian/control (+2/-3)
debian/tests/control (+4/-4)
debian/tests/start-service (+0/-21)
To merge this branch: bzr merge lp:~pitti/indicator-session/autopkgtest
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+235599@code.launchpad.net

Commit message

Fix autopkg tests

Description of the change

I noticed that https://jenkins.qa.ubuntu.com/job/utopic-adt-indicator-session/?
recently started to exist and fail. This is because current dpkg-source
automatically adds a "Testsuite: autopkgtest" header if there is a
debian/tests/control, and as that's broken the test fails.

We could of course just remove debian/tests/control (there's nothing valuable
in it), but I thought I'd give it a go. I didn't really find a true "system
level" test, as there is no such thing as "make integrationcheck" (perhaps it
existed long ago). I also tried with indicator-loader and

  dbus-send --print-reply --session --dest=com.canonical.indicator.session /com/canonical/indicator/session org.gtk.Actions.List

but that doesn't seem to work with indicator-loader, just under Unity.

So for now this updated test just calls the built test-service. It doesn't
actually test the installed package, but at least i-s' dependencies.

If you have a better idea how to test the actual package I'm all ears, of
course!

Thanks for considering!

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

I'd like to have charles comment on this some, but he's out today. I'm a bit surprised by the depends on the tests, it seems like we shouldn't need accountsservice or policykit for the test. Otherwise that seems like a good way to test the service to me.

Revision history for this message
Charles Kerr (charlesk) wrote :

The accountsservice dependency looks like a leftover from ~2011 when it was used to provide the user list.

Likewise, the polkit-1 dependency looks like a leftover from ~2009 when it was used to ask whether or not given actions could be performed. (However, see discussion in bug #474392).

Neither of these dependencies is new in this MP -- pitti's test is just a victim of pre-existing cruft and shouldn't block on it IMO.

I've opened a separate cleanup "remove unneeded dependencies" ticket @ bug #1378023

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

Confirmed, I removed these two test dependencies and the test still succeeds. But as this MP is already being landed, I don't want to update this any more. Please let me know if you need to abort the landing for any reason, then I can just push the test dep update. Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-04-02 15:02:59 +0000
3+++ debian/control 2014-09-23 10:05:42 +0000
4@@ -15,9 +15,8 @@
5 # If you aren't a member of ~indicator-applet-developers but need to upload
6 # packaging changes, just go ahead. ~indicator-applet-developers will notice
7 # and sync up the code again.
8-Vcs-Bzr: https://code.launchpad.net/~indicator-applet-developers/indicator-session/trunk.13.04
9-Vcs-Browser: https://bazaar.launchpad.net/~indicator-applet-developers/indicator-session/trunk.13.04/files
10-#XS-Testsuite: autopkgtest
11+Vcs-Bzr: https://code.launchpad.net/~indicator-applet-developers/indicator-session/trunk.14.10
12+Vcs-Browser: https://bazaar.launchpad.net/~indicator-applet-developers/indicator-session/trunk.14.10/files
13
14 Package: indicator-session
15 Architecture: any
16
17=== modified file 'debian/tests/control'
18--- debian/tests/control 2013-01-16 19:03:59 +0000
19+++ debian/tests/control 2014-09-23 10:05:42 +0000
20@@ -1,5 +1,5 @@
21-#Tests: start-service
22-# start-service currently disabled; it needs services running for it to pass
23-# and that currently can't be setup properly in a buildd.
24-Depends: python3-aptdaemon.test, policykit-1, accountsservice, consolekit, indicator-session
25+Test-Command: obj-*/tests/test-service
26+Depends: indicator-session,
27+ policykit-1,
28+ accountsservice
29 Restrictions: build-needed
30
31=== removed file 'debian/tests/start-service'
32--- debian/tests/start-service 2013-01-15 16:33:47 +0000
33+++ debian/tests/start-service 1970-01-01 00:00:00 +0000
34@@ -1,21 +0,0 @@
35-#!/bin/sh
36-
37-set -x
38-set -e
39-
40-if [ ! -d /var/run/dbus ]; then
41- mkdir /var/run/dbus
42-fi
43-
44-dbus-daemon --fork --print-address=4 --config-file /etc/dbus-1/system.conf --print-pid=5 4>/tmp/system-bus-addr 5>/tmp/system-bus-pid
45-dbus-daemon --fork --session --print-address=4 --config-file 4>/tmp/session-bus-addr
46-
47-DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/system-bus-addr`
48-DBUS_SESSION_BUS_ADDRESS=`cat /tmp/session-bus-addr`
49-
50-/usr/lib/policykit-1/polkitd 2>&1 &
51-/usr/sbin/console-kit-daemon &
52-/usr/lib/accountsservice/accounts-daemon &
53-
54-make -C tests integrationcheck
55-

Subscribers

People subscribed via source and target branches