mutter/src/tests/stacking/mixed-windows.metatest
Owen W. Taylor 2f63c39fa6 Add a test framework and stacking tests
Add a basic framework for tests of Mutter handling of client behavior;
mutter-test-runner is a Mutter-based compositor that forks off instances
of mutter-test-client and sends commands to them based on scripts.
The scripts also include assertions.

mutter-test-runner always runs in nested-Wayland mode since the separate
copy of Xwayland is helpful in giving a reliably clean X server to
test against.

Initially the commands and assertions are designed to test the stacking
behavior of Mutter, but the framework should be extensible to test other
parts of client behavior like focus.

The tests are installed according to:

https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests

if --enable-installed-tests is passed to configure. You can run them
uninstalled with:

 cd src && make run-tests

(Not in 'make check' to avoid breaking 'make distcheck' if Mutter can't be
run nested.)

https://bugzilla.gnome.org/show_bug.cgi?id=736505
2014-09-12 13:14:51 -04:00

27 lines
315 B
Plaintext

new_client w wayland
new_client x x11
create w/1
show w/1
create w/2
show w/2
wait
create x/1
show x/1
create x/2
show x/2
wait
assert_stacking w/1 w/2 x/1 x/2
local_activate w/1
assert_stacking w/2 x/1 x/2 w/1
local_activate x/1
assert_stacking w/2 x/2 w/1 x/1
lower x/1
wait
assert_stacking x/1 w/2 x/2 w/1