summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated FSF's addressDaniel Mustieles2014-01-311-2/+1
|
* tests: Fix implementation of CanSuspend/CanHibernateBastien Nocera2013-09-171-6/+2
| | | | Those aren't properties, they're methods!!!
* power: Use a real mutter in our testsBastien Nocera2013-09-171-36/+13
| | | | | Instead of a fake one that doesn't implement the necessary idle time APIs.
* power: restore the ability of running the test suiteGiovanni Campagna2013-08-191-0/+41
| | | | | | | | | We need to provide a mock mutter in the test environment. Also, we need to make sure a few objects exist right away, as the mock environment starts dbus calls before we're really initialized. https://bugzilla.gnome.org/show_bug.cgi?id=705507
* tests: Add support for CanHibernate/CanSuspendBastien Nocera2013-08-061-0/+6
|
* tests: Simplify Xorg checkBastien Nocera2013-07-051-3/+4
|
* build: Ship tests/xorg-dummy.confMartin Pitt2013-05-211-0/+1
| | | | | | This is needed to run "make check" in released tarballs. Fixes distcheck. https://bugzilla.gnome.org/show_bug.cgi?id=694199
* tests: Correct use of XTestFakeKeyEvent()Bastien Nocera2013-01-261-2/+4
| | | | It expects a keycode, not a keysym.
* tests: Create a new gnome-session for each testBastien Nocera2013-01-251-32/+0
| | | | | Instead of re-using our current one. This will allow us testing cases where the session needs to exit.
* tests: Add dbus-monitor loggingBastien Nocera2013-01-241-0/+24
|
* tests: Check whether an Xorg instance is already runningBastien Nocera2013-01-241-2/+8
| | | | | From an old test for example, otherwise we would silently fail to start X.org.
* GSDTestCase: Drop 3s waiting for gnome-sessionMartin Pitt2013-01-241-3/+0
| | | | | 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.
* tests: Run under X.org with dummy driverMartin Pitt2013-01-222-0/+57
| | | | | | | | | | | | | | | 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.
* GSDTestCase: Kill mock notification daemon on teardownMartin Pitt2013-01-221-0/+2
|
* tests: Remove hard-coded enumBastien Nocera2013-01-211-8/+0
| | | | It's now autogenerated where it's used.
* power tests: Check idle/suspend inhibitionMartin Pitt2013-01-141-0/+7
|
* GSDTestCase: Fix failure detection for log outputMartin Pitt2013-01-111-2/+2
| | | | | result.errors and result.failures are lists, not counts, so compare their lengths instead.
* Add support for plugin testsMartin Pitt2013-01-075-0/+265
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