DBus testsuite

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Feb 4 08:21:30 PST 2015


On 04/02/15 15:25, Jean Parpaillon wrote:
> I am currently working on a pure erlang implementation of DBus.
...
> Is there any DBus testsuite for that purpose ?

Matthew Johnson's "cross test" 
<http://cgit.freedesktop.org/dbus/dbus-test/> is an interop test 
framework. It's designed to pair up client and server implementations. 
It hasn't been touched for 7 years, so it's anyone's guess whether it 
works, is complete, or reflects current best-practices... but it might 
be a good starting point.

dbus-python has implementations of both the client and server ends of 
the cross-test. I think dbus-java probably does too (it's by the same 
author as the cross-test).

 > I've seen a test
> directory in dbus repository, but it is difficult to sort out tests...

Those are more like regression and integration tests for the other 
software in dbus.git: libdbus, the reference C library, and dbus-daemon, 
the reference message bus daemon. You could pick up inspiration from the 
sorts of things they test, but they would not be directly useful for 
testing interop with a third-party implementation.

The tests for GDBus and the deprecated dbus-glib, and most of the tests 
for dbus-python, are similarly more focused on being regression tests 
than being interop tests.

-- 
Simon McVittie
Collabora Ltd. <http://www.collabora.com/>



More information about the dbus mailing list