mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
926b26e9fc
Trying to track down what is going on with our missing monitors.
37 lines
657 B
Bash
Executable File
37 lines
657 B
Bash
Executable File
#! /bin/sh
|
|
|
|
srcdir=${MESON_CURRENT_SOURCE_DIR:-./testsuite/headless}
|
|
|
|
export GTK_A11Y=none
|
|
export GIO_USE_VFS=local
|
|
|
|
dbus-run-session sh <<EOF
|
|
|
|
export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
|
|
|
pipewire &
|
|
pipewire_pid=\$!
|
|
wireplumber &
|
|
wireplumber_pid=\$!
|
|
sleep 1
|
|
|
|
# echo DBUS_SESSION_BUS_ADDRESS=\$DBUS_SESSION_BUS_ADDRESS
|
|
# echo WAYLAND_DISPLAY=gtk-test
|
|
|
|
mutter --headless --no-x11 --wayland-display gtk-test >&mutter.log &
|
|
mutter_pid=\$!
|
|
|
|
export WAYLAND_DISPLAY=gtk-test
|
|
export GDK_BACKEND=wayland
|
|
|
|
python3 ${srcdir}/headless-monitor-tests.py
|
|
status=\$?
|
|
|
|
kill \$mutter_pid
|
|
kill \$wireplumber_pid
|
|
kill \$pipewire_pid
|
|
|
|
exit \$status
|
|
|
|
EOF
|