aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-14 14:36:28 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-01-14 14:36:28 -0500
commit5e037404801fcf1f852a6a3ce08f4b8db598b762 (patch)
tree632d33294859987b8078bdc712cc6b2cac52dd04
parent39ec64fb84b26592e134cddb465b659d9ad553e3 (diff)
downloadayatana-indicator-session-5e037404801fcf1f852a6a3ce08f4b8db598b762.tar.gz
ayatana-indicator-session-5e037404801fcf1f852a6a3ce08f4b8db598b762.tar.bz2
ayatana-indicator-session-5e037404801fcf1f852a6a3ce08f4b8db598b762.zip
Rename localcheck to integrationcheck; update autopkgtest test.
-rw-r--r--Makefile.am2
-rw-r--r--debian/tests/start-service16
-rw-r--r--tests/Makefile.am8
3 files changed, 16 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index a406d44..8fb5d77 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,6 +40,4 @@ dist-hook:
echo Failed to generate AUTHORS: not a branch >&2; \
fi
-localcheck:
-
include $(top_srcdir)/Makefile.am.coverage
diff --git a/debian/tests/start-service b/debian/tests/start-service
index 1aeef94..7227cb2 100644
--- a/debian/tests/start-service
+++ b/debian/tests/start-service
@@ -1,12 +1,20 @@
#!/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
+set -x
+set -e
-DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/bus-addr`
+if [ ! -d /var/run/dbus ]; then
+ mkdir /var/run/dbus
+fi
-/usr/sbin/console-kit-daemon &
+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
+dbus-daemon --fork --session --print-address=4 --config-file 4>/tmp/session-bus-addr
+
+DBUS_SYSTEM_BUS_ADDRESS=`cat /tmp/system-bus-addr`
+DBUS_SESSION_BUS_ADDRESS=`cat /tmp/session-bus-addr`
+/usr/sbin/console-kit-daemon &
/usr/lib/accountsservice/accounts-daemon &
-tests/test-service
+make -C tests integrationcheck
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9f9f961..c117c95 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,8 +3,8 @@ CLEANFILES =
BUILT_SOURCES =
check_PROGRAMS =
-localcheckdir = .
-localcheck_PROGRAMS =
+integrationcheckdir = .
+integrationcheck_PROGRAMS =
###
###
@@ -32,10 +32,10 @@ gschemas.compiled: Makefile
$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .
-localcheck:
+integrationcheck:
./test-service
-localcheck_PROGRAMS += test-service
+integrationcheck_PROGRAMS += test-service
test_service_SOURCES = test-service.cc
test_service_LDADD = \
$(TEST_SERVICE_LIBS) \