~cosmos-door/unity-settings-daemon/lp1514544

  • Committer: Bastien Nocera
  • Author(s): Martin Pitt
  • Date: 2013-01-07 09:41:18 UTC
  • Revision ID: git-v1:005f73673074da4ffdff8945a1ecf5b32c69180e
Add support for plugin tests

Add a GSDTestCase Python class (tests/gsdtestcase.py) which provides
functionality for writing daemon and plugin tests:

 * Launch temporary private session and system D-BUSes to avoid disturbing
   the currently running system and being able to use mock D-BUS services.

 * Run a minimal gnome-session to ensure plugins can check the session idle
   status, register to the session, etc.

 * Configure temporary local XDG directories to avoid disturbing the user's
   real settings and files.

 * Run a mock notification daemon to avoid showing notifications produced
   by test cases, using python-dbusmock.
   (http://pypi.python.org/pypi/python-dbusmock)

 * Provide API to start/stop a mock logind, using python-dbusmock.

 * Provide API to reste the session idle timer, using a small "shiftkey"
   helper program that sends a "left shift key" event through XTest.

If any of the required dependencies (gnome-session, dbusmock, pygobject) is
not present, it exits with an error message and exit code 0, to avoid
breaking tests in minimal build environments.

https://bugzilla.gnome.org/show_bug.cgi?id=685951
Filename Latest Rev Last Changed Committer Comment Size
..
data 1 16 years ago William Jon McCann Initial checkin. Previously lived in gdm module. Diff
gnome-settings-daemon 96 16 years ago Jens Granseuer Based on a patch by: Damien Carberry <damien carbe Diff
man 3160 11 years ago Matthias Clasen Add a man page The main purpose of this man page Diff
plugins 1 16 years ago William Jon McCann Initial checkin. Previously lived in gdm module. Diff
po 1 16 years ago William Jon McCann Initial checkin. Previously lived in gdm module. Diff
tests 3477 11 years ago Bastien Nocera Add support for plugin tests Add a GSDTestCase Py Diff
.gitignore 3477 11 years ago Bastien Nocera Add support for plugin tests Add a GSDTestCase Py 1.2 KB Diff Download File
acinclude.m4 2212 12 years ago Bastien Nocera color: Using pnp.ids parsing from gnome-desktop h 3.6 KB Diff Download File
AUTHORS 1 16 years ago William Jon McCann Initial checkin. Previously lived in gdm module. 72 bytes Diff Download File
File autogen.sh 3370 11 years ago Bastien Nocera build: Init git submodules in autogen.sh As gnome 779 bytes Diff Download File
ChangeLog 816 14 years ago Jens Granseuer add '-k' option to syndaemon call for 'Disable tou 138 KB Diff Download File
configure.ac 3477 11 years ago Bastien Nocera Add support for plugin tests Add a GSDTestCase Py 19.5 KB Diff Download File
COPYING 449 15 years ago Jens Granseuer add GPLv2 copyright notice explicitly so that newe 17.5 KB Diff Download File
COPYING.LIB 913 14 years ago Bastien Nocera [media-keys] Relicense gsd-media-keys-window.[ch] 25.8 KB Diff Download File
gnome-settings-daemon.doap 3282 11 years ago Bastien Nocera Update DOAP file to reflect reality 1.6 KB Diff Download File
MAINTAINERS 1838 13 years ago Bastien Nocera doap: Add myself as maintainer 352 bytes Diff Download File
Makefile.am 3477 11 years ago Bastien Nocera Add support for plugin tests Add a GSDTestCase Py 291 bytes Diff Download File
NEWS 3462 11 years ago Bastien Nocera 3.7.3 89.8 KB Diff Download File
README 1 16 years ago William Jon McCann Initial checkin. Previously lived in gdm module. Empty Diff Download File