Give the tests DBUS_TEST_DAEMON and DBUS_TEST_DATA in their environment
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 11 Mar 2011 12:45:08 +0000 (12:45 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 10 Jun 2011 17:31:51 +0000 (18:31 +0100)
This will allow modular tests to spawn a dbus-daemon with a specified
config file; nothing uses this just yet.

Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570

test/Makefile.am

index 0ec176e..8882851 100644 (file)
@@ -76,6 +76,10 @@ modular_tests = \
        test-loopback \
        test-relay
 
+TESTS_ENVIRONMENT = \
+       DBUS_TEST_DAEMON=@abs_top_builddir@/bus/dbus-daemon$(EXEEXT) \
+       DBUS_TEST_DATA=@abs_top_srcdir@/test/data
+
 test_loopback_SOURCES = loopback.c
 test_loopback_CPPFLAGS = $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS)
 test_loopback_LDFLAGS = @R_DYNAMIC_LDFLAG@