diff options
author | Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> | 2013-01-10 15:44:25 -0500 |
---|---|---|
committer | Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> | 2013-01-10 15:44:25 -0500 |
commit | 39ec64fb84b26592e134cddb465b659d9ad553e3 (patch) | |
tree | 8ea0dc8ab1ebbd4860f117e5a3e085813f5d7f33 /debian/tests | |
parent | cb972ad5ba65378b17682c09915b7c9cb3b3aa9b (diff) | |
parent | 32c7a3f3a74a74543b8c33447261b103bb165f60 (diff) | |
download | ayatana-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')
-rw-r--r-- | debian/tests/control | 3 | ||||
-rw-r--r-- | debian/tests/start-service | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..e24f71b --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: start-service +Depends: python3-aptdaemon.test, accountsservice, consolekit, indicator-session +Restrictions: build-needed 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 + |