kwin/plugins/qpa
Martin Gräßlin 7fed20f136 [autotest] Welcome to integration testing KWin
This is the beginning of a new testing era for KWin: finally we are
able to test against a running KWin. This works by making use of the
new virtual framebuffer backend for Wayland. It starts a specific
Application subclass which is mostly a fork of ApplicationWayland.

The individual tests are able to influence the socket name and the
size of the virtual screen. This is supposed to be done in
initTestCase. To know when KWin is fully started one can use the
workspaceCreated signal of KWin::Application. KWin is not started in
another process, but the kwin library is used, so the test has pretty
much full introspection to everything going on inside KWin. It can
access the Workspace, WaylandServer, fake input events through
InputRedirection and so on.

Once the test KWin is running it's possible to connect to it using
KWayland::Client library. This allows to introspect the Workspace
to see whether all worked as expected (e.g. correct stacking order,
active window and so on).

This first autotest is mostly meant to illustrate how to setup a
test and how one can use KWayland::Client to interact with the mock
KWin. For more tests it is suggested to move the connections to the
Wayland server in the init() and cleanup() methods.

The change also affects the qpa plugin: the specific check to only
run in binaries called kwin_wayland doesn't hold any more. This can
now be overwritten by an env variable.

Please note that this first test will probably fail in the CI system
as it might not have XWayland which is needed by KWin.
2015-10-02 15:14:41 +02:00
..
CMakeLists.txt [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
abstractplatformcontext.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
abstractplatformcontext.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
backingstore.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
backingstore.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
integration.cpp [wayland] Create event dispatcher in QPA plugin 2015-08-25 14:33:51 +02:00
integration.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
kwin.json [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
main.cpp [autotest] Welcome to integration testing KWin 2015-10-02 15:14:41 +02:00
nativeinterface.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
nativeinterface.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
platformcontextwayland.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
platformcontextwayland.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
screen.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
screen.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
sharingplatformcontext.cpp [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
sharingplatformcontext.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
window.cpp [qpa] Dispatch Wayland server before trying to find a ShellClient 2015-08-25 14:33:51 +02:00
window.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00