How to make automated tests for clients of D-Bus system service?
hadess at hadess.net
Tue Feb 6 10:58:39 UTC 2018
On Tue, 2018-02-06 at 11:57 +0100, Miroslav Kravec wrote:
> I have recently implemented D-Bus system service to perform HW access
> operations under root user, and expose secure interface to regular
> 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:
More information about the dbus