aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-29 13:03:39 -0500
committerTed Gould <ted@canonical.com>2009-10-29 13:03:39 -0500
commit22a5b08a9ddb76888f580141617d67a319fbfad9 (patch)
treed8f0b24e2d29cfdffd2ae0b4afdd57a8cffa2fd2 /tests
parenta72fc583b5ae76ee0d4183ae72e4d905c0304bb7 (diff)
downloadlibayatana-indicator-22a5b08a9ddb76888f580141617d67a319fbfad9.tar.gz
libayatana-indicator-22a5b08a9ddb76888f580141617d67a319fbfad9.tar.bz2
libayatana-indicator-22a5b08a9ddb76888f580141617d67a319fbfad9.zip
Woot! A failing test. Look how TDD I am.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bacdce6..485d02e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,6 +10,8 @@ lib_LTLIBRARIES = \
libdummy-indicator-null.la \
libdummy-indicator-simple.la
+DBUS_RUNNER=dbus-test-runner --dbus-config /usr/share/dbus-test-runner/session.conf
+
#############################
# Test Loader
#############################
@@ -94,6 +96,14 @@ service_shutdown_timeout_LDADD = \
$(LIBINDICATOR_LIBS) \
$(top_builddir)/libindicator/.libs/libindicator.a
+service-shutdown-timeout-tester: service-shutdown-timeout Makefile
+ @echo "#!/bin/sh" > service-shutdown-timeout-tester
+ @echo $(DBUS_RUNNER) --task ./service-shutdown-timeout >> service-shutdown-timeout-tester
+ @chmod +x service-shutdown-timeout-tester
+
+TESTS += service-shutdown-timeout-tester
+DISTCLEANFILES += service-shutdown-timeout-tester
+
#############################
# Test stuff
#############################