dbus/test
Simon McVittie 30e7a81302 Tests: allow dbus-glib to be replaced with use of libdbus-internal
We only use dbus-glib for its main loop; within dbus, DBusLoop is
available as an alternative, although it isn't thread-safe and
isn't public API.

For tests that otherwise only use libdbus public API, it's desirable to
be able to avoid DBusLoop, so we can run them against an installed
libdbus as an integration test. However, if we don't have dbus-glib,
we're going to have to use an in-tree main loop, which might as well
be DBusLoop.

The major disadvantage of using dbus-glib is that it isn't safe to
link both dbus-1 and dbus-internal at the same time. This is awkward
for a future test case that wants to use _dbus_getsid() in dbus-daemon.c,
but only on Windows (fd.o #54445). If we use the same API wrapper around
both dbus-glib and DBusLoop, we can compile that test against dbus-glib
or against DBusLoop, depending on the platform.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68852
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
2013-09-03 12:00:51 +01:00
..
data Revert "Enable anonymous authorization for tests" 2013-08-23 11:10:40 +01:00
internals Define DBUS_COMPILATION externally for all tests that use internal stuff 2013-09-03 12:00:44 +01:00
name-test Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
.gitignore Add a test for marshalling and endian-swapping 2011-06-10 18:32:43 +01:00
break-loader.c Avoid using monotonic time in the DBUS_COOKIE_SHA1 authentication method 2012-04-12 11:18:07 -04:00
corrupt.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
dbus-daemon-eavesdrop.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
dbus-daemon.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
dbus-test-runner Add support for installing most of the modular tests 2011-06-10 18:32:35 +01:00
loopback.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
Makefile.am Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
manual-authz.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
marshal.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
relay.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
shell-test.c Define DBUS_COMPILATION externally for all tests that use internal stuff 2013-09-03 12:00:44 +01:00
spawn-test.c Define DBUS_COMPILATION externally for all tests that use internal stuff 2013-09-03 12:00:44 +01:00
syntax.c Accept non-characters when validating Unicode 2013-04-22 15:36:32 +01:00
test-exit.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
test-names.c Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
test-segfault.c Make more signal and locale interface use conditional. 2010-03-22 17:28:55 +01:00
test-service.c Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
test-shell-service.c Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
test-sleep-forever.c fix warning, use Sleep, not _sleep on windows (cherry picked from commit ea36c743ad60a2dd5c6286571d1a475903519809) 2009-11-30 12:00:14 +01:00
test-utils.c Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
test-utils.h Tests: allow dbus-glib to be replaced with use of libdbus-internal 2013-09-03 12:00:51 +01:00
unused-code-gc.py 2005-01-16 Havoc Pennington <hp@redhat.com> 2005-01-17 03:53:40 +00:00