aboutsummaryrefslogtreecommitdiff
path: root/debian/tests/start-service
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-10 15:44:25 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-10 15:44:25 -0500
commit39ec64fb84b26592e134cddb465b659d9ad553e3 (patch)
tree8ea0dc8ab1ebbd4860f117e5a3e085813f5d7f33 /debian/tests/start-service
parentcb972ad5ba65378b17682c09915b7c9cb3b3aa9b (diff)
parent32c7a3f3a74a74543b8c33447261b103bb165f60 (diff)
downloadayatana-indicator-session-39ec64fb84b26592e134cddb465b659d9ad553e3.tar.gz
ayatana-indicator-session-39ec64fb84b26592e134cddb465b659d9ad553e3.tar.bz2
ayatana-indicator-session-39ec64fb84b26592e134cddb465b659d9ad553e3.zip
- Add XS-Testsuite: autopkgtest.
* debian/tests: - Add start-service test; verify that the indicator can be started from DBUS. - Add debian/tests/control. * Move TestCanStartService into a separate make target "localcheck"; so that the other tests can successfully run, and this one be used as an integration check.
Diffstat (limited to 'debian/tests/start-service')
-rw-r--r--debian/tests/start-service12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/tests/start-service b/debian/tests/start-service
new file mode 100644
index 0000000..1aeef94
--- /dev/null
+++ b/debian/tests/start-service
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+dbus-daemon --fork --print-address=4 --config-file /usr/share/aptdaemon/tests/dbus.conf --print-pid=5 4>/tmp/bus-addr 5>/tmp/pid-bus
+
+DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/bus-addr`
+
+/usr/sbin/console-kit-daemon &
+
+/usr/lib/accountsservice/accounts-daemon &
+
+tests/test-service
+