Add some input tests that are using headless mutter, and python with our in-tree gir files. So far, test that we can roundtrip key events, and move the pointer around.
28 lines
533 B
Bash
Executable File
28 lines
533 B
Bash
Executable File
#! /bin/sh
|
|
|
|
builddir=$(pwd)/build
|
|
|
|
dbus-run-session sh <<EOF
|
|
|
|
# echo DBUS_SESSION_BUS_ADDRESS=\$DBUS_SESSION_BUS_ADDRESS
|
|
# echo WAYLAND_DISPLAY=gtk-test
|
|
|
|
mutter --headless --virtual-monitor 1024x768 --no-x11 --wayland-display gtk-test >&mutter.log &
|
|
pid=\$!
|
|
|
|
export WAYLAND_DISPLAY=gtk-test
|
|
export GDK_BACKEND=wayland
|
|
#export WAYLAND_DEBUG=1
|
|
|
|
export GI_TYPELIB_PATH=$builddir/gtk:/usr/lib64/girepository-1.0
|
|
export LD_PRELOAD=$builddir/gtk/libgtk-4.so
|
|
|
|
python tests/headless-input-tests.py
|
|
status=\$?
|
|
|
|
kill \$pid
|
|
|
|
exit \$status
|
|
|
|
EOF
|