aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-01 13:35:30 -0600
committerTed Gould <ted@gould.cx>2009-12-01 13:35:30 -0600
commit1b1a50d5d5075929eb18622eb0e8b6fc7bff9814 (patch)
tree40977c0fc65fb9e0434e32421cd6f39bb73d6cd3 /tests/Makefile.am
parent6e89bf096ce0c261e2fece0cbeb6289ea21e8c5a (diff)
downloadlibayatana-indicator-1b1a50d5d5075929eb18622eb0e8b6fc7bff9814.tar.gz
libayatana-indicator-1b1a50d5d5075929eb18622eb0e8b6fc7bff9814.tar.bz2
libayatana-indicator-1b1a50d5d5075929eb18622eb0e8b6fc7bff9814.zip
Adding a test to ensure that a service gets shutdown by someone unwatching it.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 80c4191..09a227d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,6 +6,7 @@ check_PROGRAMS = \
service-manager-no-connect \
service-manager-connect \
service-manager-connect-service \
+ service-manager-nostart-connect \
service-shutdown-timeout
lib_LTLIBRARIES = \
@@ -200,6 +201,29 @@ TESTS += service-manager-connect-tester
DISTCLEANFILES += service-manager-connect-tester session.conf service-manager-connect.service
#############################
+# Service Manager Shutdown
+#############################
+
+service_manager_nostart_connect_SOURCES = \
+ service-manager-nostart-connect.c
+
+service_manager_nostart_connect_CFLAGS = \
+ -Wall -Werror \
+ $(LIBINDICATOR_CFLAGS) -I$(top_srcdir)
+
+service_manager_nostart_connect_LDADD = \
+ $(LIBINDICATOR_LIBS) \
+ $(top_builddir)/libindicator/.libs/libindicator.a
+
+service-manager-connect-nostart-tester: service-manager-nostart-connect service-manager-connect-service Makefile.am
+ @echo "#!/bin/sh" > $@
+ @echo dbus-test-runner --task ./service-manager-nostart-connect --task ./service-manager-connect-service >> $@
+ @chmod +x $@
+
+TESTS += service-manager-connect-nostart-tester
+DISTCLEANFILES += service-manager-connect-nostart-tester
+
+#############################
# Test stuff
#############################