aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am5
-rw-r--r--tests/service-manager-connect.service.in3
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 744c807..3703259 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -137,6 +137,9 @@ DISTCLEANFILES += service-manager-no-connect-tester
session.conf: session.conf.in Makefile.am
sed -e "s|\@servicedir\@|$(abspath $(builddir))|" $< > $@
+service-manager-connect.service: service-manager-connect.service.in Makefile.am
+ sed -e "s|\@builddir\@|$(abspath $(builddir))|" $< > $@
+
service_manager_connect_SOURCES = \
service-manager-connect.c
@@ -159,7 +162,7 @@ service_manager_connect_service_LDADD = \
$(LIBINDICATOR_LIBS) \
$(top_builddir)/libindicator/.libs/libindicator.a
-service-manager-connect-tester: service-manager-connect service-manager-connect-service session.conf Makefile.am
+service-manager-connect-tester: service-manager-connect service-manager-connect-service session.conf service-manager-connect.service Makefile.am
@echo "#!/bin/sh" > service-manager-connect-tester
@echo dbus-test-runner --dbus-config $(builddir)/session.conf --task ./service-manager-connect >> service-manager-connect-tester
@chmod +x service-manager-connect-tester
diff --git a/tests/service-manager-connect.service.in b/tests/service-manager-connect.service.in
new file mode 100644
index 0000000..7d3da6b
--- /dev/null
+++ b/tests/service-manager-connect.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.ayatana.test
+Exec=@builddir@/service-manager-connect-service