2021-03-21 12:31:25 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2023-05-03 14:48:32 +00:00
|
|
|
srcdir=${MESON_CURRENT_SOURCE_DIR:-./testsuite/headless}
|
2021-03-21 12:31:25 +00:00
|
|
|
|
|
|
|
dbus-run-session sh <<EOF
|
|
|
|
|
2023-05-03 12:49:23 +00:00
|
|
|
#echo DBUS_SESSION_BUS_ADDRESS=\$DBUS_SESSION_BUS_ADDRESS
|
|
|
|
#echo WAYLAND_DISPLAY=gtk-test
|
2021-03-21 12:31:25 +00:00
|
|
|
|
2023-05-03 14:48:32 +00:00
|
|
|
export GTK_A11Y=none
|
|
|
|
export GIO_USE_VFS=local
|
|
|
|
|
|
|
|
mutter --headless --virtual-monitor 1024x768 --no-x11 --wayland-display gtk-test2 >&mutter2.log &
|
2021-03-21 12:31:25 +00:00
|
|
|
pid=\$!
|
|
|
|
|
2023-05-03 14:48:32 +00:00
|
|
|
export WAYLAND_DISPLAY=gtk-test2
|
2021-03-21 12:31:25 +00:00
|
|
|
export GDK_BACKEND=wayland
|
|
|
|
|
2023-05-03 14:48:32 +00:00
|
|
|
python ${srcdir}/headless-input-tests.py
|
2021-03-21 12:31:25 +00:00
|
|
|
status=\$?
|
|
|
|
|
|
|
|
kill \$pid
|
|
|
|
|
|
|
|
exit \$status
|
|
|
|
|
|
|
|
EOF
|