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

« back to all changes in this revision

Viewing changes to configure.ac

  • 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

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
PKG_CHECK_MODULES(COMMON, x11 kbproto xi)
145
145
 
146
146
dnl ---------------------------------------------------------------------------
 
147
dnl - XTest
 
148
dnl ---------------------------------------------------------------------------
 
149
 
 
150
PKG_CHECK_MODULES(XTEST, x11 xtst)
 
151
AC_SUBST(XTEST_CFLAGS)
 
152
AC_SUBST(XTEST_LIBS)
 
153
 
 
154
dnl ---------------------------------------------------------------------------
147
155
dnl - background
148
156
dnl ---------------------------------------------------------------------------
149
157
 
517
525
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in
518
526
po/Makefile.in
519
527
man/Makefile
 
528
tests/Makefile
520
529
])
521
530
 
522
531
dnl ---------------------------------------------------------------------------