aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-02 11:21:20 -0600
committerTed Gould <ted@canonical.com>2009-11-02 11:21:20 -0600
commitdc5fbef86dc82fbc1d768dba489fe4ba0b09adfc (patch)
tree13acd8538b050c5b38b4fed184a4fc697d94b684 /tests
parent9a15eec1f5fc9609b877a411564abbf600a22ee5 (diff)
downloadlibayatana-indicator-dc5fbef86dc82fbc1d768dba489fe4ba0b09adfc.tar.gz
libayatana-indicator-dc5fbef86dc82fbc1d768dba489fe4ba0b09adfc.tar.bz2
libayatana-indicator-dc5fbef86dc82fbc1d768dba489fe4ba0b09adfc.zip
Building a service file.
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