Merge lp:~cyphermox/indicator-session/fix-tests into lp:indicator-session/13.04

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 385
Merged at revision: 381
Proposed branch: lp:~cyphermox/indicator-session/fix-tests
Merge into: lp:indicator-session/13.04
Diff against target: 103 lines (+44/-2)
5 files modified
debian/changelog (+10/-0)
debian/control (+1/-0)
debian/tests/control (+5/-0)
debian/tests/start-service (+21/-0)
tests/Makefile.am (+7/-2)
To merge this branch: bzr merge lp:~cyphermox/indicator-session/fix-tests
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Didier Roche-Tolomelli Approve
Review via email: mp+142951@code.launchpad.net

Description of the change

Fix test -- disable TestCanStartService for the build; instead make it available via "make localcheck"; and move it to be run in an autopkgtest.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
384. By Mathieu Trudel-Lapierre

debian/control: temporarily comment out the XS-Testsuite entry to disable
autopkgtest until the tests really work properly.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
385. By Mathieu Trudel-Lapierre

Add comment in debian/tests/control for the reason why tests are disabled.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

awesomeness! thanks :)

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-12-05 06:55:21 +0000
3+++ debian/changelog 2013-01-16 19:06:22 +0000
4@@ -14,6 +14,11 @@
5 - Remove libpackagekit-glib2-dev and libpolkit-gobject-1-dev
6 from Build-Depends. (LP: #1085100)
7 - Remove packagekit from Recommends
8+ - Add XS-Testsuite: autopkgtest.
9+ * debian/tests:
10+ - Add start-service test; verify that the indicator can be started from
11+ DBUS.
12+ - Add debian/tests/control.
13 * Automatic snapshot from revision 373 (bootstrap):
14 - Check to make sure that create_display_proxy() succeeded before using the
15 proxy pointer that gets returned. (LP: #1078119)
16@@ -21,6 +26,11 @@
17 - Hide 'start screen saver' action, if it's locked down. (LP: #1066825)
18 - Use the same icons in the greeter as in the user session (LP: #1049244)
19 - Test upower_proxy for NULL before using it. (LP: #1061844)
20+ * Move TestCanStartService into a separate make target "localcheck"; so that
21+ the other tests can successfully run, and this one be used as an
22+ integration check.
23+ * debian/control: temporarily comment out the XS-Testsuite entry to disable
24+ autopkgtest until the tests really work properly.
25
26 [ Sebastien Bacher ]
27 * debian/control:
28
29=== modified file 'debian/control'
30--- debian/control 2012-11-30 16:24:17 +0000
31+++ debian/control 2013-01-16 19:06:22 +0000
32@@ -23,6 +23,7 @@
33 # and sync up the code again.
34 Vcs-Bzr: https://code.launchpad.net/~indicator-applet-developers/indicator-session/trunk.13.04
35 Vcs-Browser: https://bazaar.launchpad.net/~indicator-applet-developers/indicator-session/trunk.13.04/files
36+#XS-Testsuite: autopkgtest
37
38 Package: indicator-session
39 Architecture: any
40
41=== added directory 'debian/tests'
42=== added file 'debian/tests/control'
43--- debian/tests/control 1970-01-01 00:00:00 +0000
44+++ debian/tests/control 2013-01-16 19:06:22 +0000
45@@ -0,0 +1,5 @@
46+#Tests: start-service
47+# start-service currently disabled; it needs services running for it to pass
48+# and that currently can't be setup properly in a buildd.
49+Depends: python3-aptdaemon.test, policykit-1, accountsservice, consolekit, indicator-session
50+Restrictions: build-needed
51
52=== added file 'debian/tests/start-service'
53--- debian/tests/start-service 1970-01-01 00:00:00 +0000
54+++ debian/tests/start-service 2013-01-16 19:06:22 +0000
55@@ -0,0 +1,21 @@
56+#!/bin/sh
57+
58+set -x
59+set -e
60+
61+if [ ! -d /var/run/dbus ]; then
62+ mkdir /var/run/dbus
63+fi
64+
65+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
66+dbus-daemon --fork --session --print-address=4 --config-file 4>/tmp/session-bus-addr
67+
68+DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/system-bus-addr`
69+DBUS_SESSION_BUS_ADDRESS=`cat /tmp/session-bus-addr`
70+
71+/usr/lib/policykit-1/polkitd 2>&1 &
72+/usr/sbin/console-kit-daemon &
73+/usr/lib/accountsservice/accounts-daemon &
74+
75+make -C tests integrationcheck
76+
77
78=== modified file 'tests/Makefile.am'
79--- tests/Makefile.am 2012-11-09 03:10:09 +0000
80+++ tests/Makefile.am 2013-01-16 19:06:22 +0000
81@@ -3,6 +3,9 @@
82 BUILT_SOURCES =
83 check_PROGRAMS =
84
85+integrationcheckdir = .
86+integrationcheck_PROGRAMS =
87+
88 ###
89 ###
90 ###
91@@ -29,8 +32,10 @@
92 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .
93
94
95-TESTS += test-service
96-check_PROGRAMS += test-service
97+integrationcheck:
98+ ./test-service
99+
100+integrationcheck_PROGRAMS += test-service
101 test_service_SOURCES = test-service.cc
102 test_service_LDADD = \
103 $(TEST_SERVICE_LIBS) \

Subscribers

People subscribed via source and target branches