To run Twisted tests:

  make -C test/twisted check-twisted

To run an individual Twisted test:

  make -C test/twisted check-twisted TWISTED_TESTS=test-basic.py

or:

  cd test/twisted
  sh tools/with-session-bus.sh --config-file=tools/tmp-session-bus.conf \
        -- python test-basic.py

To run with debug information:

  make -C test/twisted check-twisted TWISTED_TESTS=test-basic.py \
        CHECK_TWISTED_VERBOSE=1

or:

  cd test/twisted
  sh tools/with-session-bus.sh --config-file=tools/tmp-session-bus.conf \
        -- python test-basic.py -v


To debug an individual test you can set one of the following env variable:

  * MISSIONCONTROL_TEST_VALGRIND : to run Mission Control inside valgrind. The
    report is added to tools/missioncontrol-testing.log.

  * MISSIONCONTROL_TEST_REFDBG : to run Mission Control inside refdbg. The
    report is written to tools/refdbg.log. You can change
    MISSIONCONTROL_WRAPPER to use an alternative refdbg and change
    REFDBG_OPTIONS to set your own parameters. Example:
        export MISSIONCONTROL_TEST_REFDBG=1
        export MISSIONCONTROL_WRAPPER="/path/to/refdbg"
        export REFDBG_OPTIONS="btnum=16"

  * MISSIONCONTROL_WRAPPER="nemiver" : to run Mission Control inside the
    graphical debugger nemiver.  You'll be able to set up breakpoints; then hit
    the "continue" button to launch Mission Control.

