Add support for building "modular" tests, which require GLib and dbus-glib
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 22 Feb 2011 11:43:11 +0000 (11:43 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 10 Jun 2011 17:31:31 +0000 (18:31 +0100)
commit90f36efbc33201fd2c8fe8c8cbe09f7460c1930b
treee1208c7bcc15998a93b560810460ad8b113bb5d4
parent77e208ac1da8f5840270207a31170a15b8d562f2
Add support for building "modular" tests, which require GLib and dbus-glib

For the moment, the CMake build system only knows about the existing
"embedded tests"; make it define both symbols, though.

We use GLib because it has GTester (and life's too short to write yet another
JUnit clone), and dbus-glib for the main-loop integration only (see
fd.o #31515 for thoughts on incorporating just those two functions in a
separate library in the dbus tarball).

I'm not using DBusLoop for the main loop because I specifically don't
want to use non-public API or ABI of libdbus in the modular tests. If we make
sure they work against a shared libdbus, we can use them to test the
installed system, with "make installcheck".

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