mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
2f63c39fa6
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
23 lines
424 B
Plaintext
23 lines
424 B
Plaintext
new_client 1 wayland
|
|
create 1/1
|
|
show 1/1
|
|
create 1/2
|
|
show 1/2
|
|
wait
|
|
assert_stacking 1/1 1/2
|
|
|
|
# Currently Wayland clients have no wait to bring themselves to the user's
|
|
# attention; gtk_window_present() is a no-op with the X11 backend of GTK+
|
|
|
|
# activate 1/1
|
|
# wait
|
|
# assert_stacking 1/2 1/1
|
|
# activate 1/2
|
|
# wait
|
|
# assert_stacking 1/1 1/2
|
|
|
|
local_activate 1/1
|
|
assert_stacking 1/2 1/1
|
|
local_activate 1/2
|
|
assert_stacking 1/1 1/2
|