patch for command line arguments in activation

Havoc Pennington hp at redhat.com
Tue Jul 5 22:43:08 PDT 2005


On Tue, 2005-07-05 at 17:26 -0400, John (J5) Palmieri wrote:
> On Tue, 2005-07-05 at 17:15 -0400, Colin Walters wrote:
> > On Tue, 2005-07-05 at 16:33 -0400, John (J5) Palmieri wrote:
> > 
> > > Second, your test case doesn't seemed to be run on make check.  I'm not
> > > sure how this is done so you need to figure it out.  
> > 
> > dbus library unit tests should be added to dbus/dbus-test.c, AIUI.
> 
> It is actually a binary in the test/ directory similar to spawn-test
> (shell-test).  I'm not sure how they get run.

They aren't in make check directly, the test-* are mostly used as
services to activate by other tests. I'm don't think spawn-test runs in
make check, but the spawn code gets tested by the activation framework
tests.

To run something in make check you'd add a TESTS variable to
Makefile.am, see test/glib/Makefile.am
if DBUS_BUILD_TESTS
TESTS=shell-test
else
TESTS=
endif

The test needs to return failure when failing, obviously.

Havoc




More information about the dbus mailing list