| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This is needed to run "make check" in released tarballs. Fixes distcheck.
https://bugzilla.gnome.org/show_bug.cgi?id=694199
|
|
|
|
| |
It expects a keycode, not a keysym.
|
|
|
|
|
| |
Instead of re-using our current one. This will allow us testing
cases where the session needs to exit.
|
| |
|
|
|
|
|
| |
From an old test for example, otherwise we would silently fail to
start X.org.
|
|
|
|
|
| |
Drop the sleep(3) after gnome-session appears on D-BUS. It should be ready at
that point; if not that would show a bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Run a private X.org instance with the dummy driver for the tests. The dummy
driver supports basic XRandR, but no DPMS, which is good enough at least for
testing most of "power", "keyboard", "multimedia", and others. This is
necessary until Xvfb supports XRandR, which was proposed in
<http://lists.x.org/archives/xorg-devel/2013-January/035114.html>.
This makes the tests insensitive against input events from the real X.org which
happen during the tests, and also allows us to run the tests in headless CI
server environments.
Some distros like Fedora install Xorg as suid root, so copy the binary into our
temporary workdir to drop the suid bit and run it as user.
|
| |
|
|
|
|
| |
It's now autogenerated where it's used.
|
| |
|
|
|
|
|
| |
result.errors and result.failures are lists, not counts, so compare their
lengths instead.
|
|
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
|