aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-04 07:53:19 -0600
committerTed Gould <ted@canonical.com>2009-11-04 07:53:19 -0600
commit2d5018b1c62f0deb203ef1b1f12634d89aba2b7b (patch)
treeb8f87b133ed44df986079a690c39b19b8a849359 /tests
parentbe7d032e77b2c1140da0d5acee697150cb1a9a2b (diff)
parent8ef7ed56c860d1d36bfd77a9e60bc1e38e4f7d48 (diff)
downloadlibayatana-appindicator-2d5018b1c62f0deb203ef1b1f12634d89aba2b7b.tar.gz
libayatana-appindicator-2d5018b1c62f0deb203ef1b1f12634d89aba2b7b.tar.bz2
libayatana-appindicator-2d5018b1c62f0deb203ef1b1f12634d89aba2b7b.zip
A small fix to make things run under dbus-test-runner so that we start a dbus test session.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f6a0525..33fe0ba 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -64,12 +64,17 @@ test_libcustomindicator_dbus_server_LDADD = \
XML_REPORT = libcustomindicator-check-results.xml
HTML_REPORT = libcustomindicator-check-results.html
-libcustomindicator-tests: test-libcustomindicator
- @echo "#!/bin/sh" > libcustomindicator-tests
- @echo gtester -k --verbose -o=$(XML_REPORT) ./test-libcustomindicator >> libcustomindicator-tests
- @chmod +x libcustomindicator-tests
+libcustomindicator-tests: libcustomindicator-tests-gtester Makefile.am
+ @echo "#!/bin/sh" > $@
+ @echo $(DBUS_RUNNER) --task ./libcustomindicator-tests-gtester >> $@
+ @chmod +x $@
-TESTS += libcustomindicator-tests
+libcustomindicator-tests-gtester: test-libcustomindicator Makefile.am
+ @echo "#!/bin/sh" > $@
+ @echo gtester -k --verbose -o=$(XML_REPORT) ./test-libcustomindicator >> $@
+ @chmod +x $@
+
+TESTS += libcustomindicator-tests libcustomindicator-tests-gtester
DISTCLEANFILES += $(XML_REPORT) $(HTML_REPORT)