Re: How to make automated tests for clients of D-Bus system service?
Bastien Nocera <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2018-02-06 at 11:57 +0100, Miroslav Kravec wrote: > Hello, > > I have recently implemented D-Bus system service to perform HW access > operations under root user, and expose secure interface to regular > users. > > I would like to create automated tests for a client, including > valgrind tests for safe memory access and no memory leak. > > How do I make following testing environment/setup: > > * create "fake" system service with hardcoded, or generated, answers > to method calls, > * run "fake" system service without root access, This should be all you need: https://github.com/martinpitt/python-dbusmock Cheers _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus