pgo: full-headless-cage: new headless variant

Appears to work, but cage spams a lot of

 00:00:08.026 [types/wlr_output.c:720] Basic output test failed for HEADLESS-1
 00:00:08.036 [types/wlr_output.c:720] Basic output test failed for HEADLESS-1
This commit is contained in:
Daniel Eklöf 2021-09-04 11:04:54 +02:00
parent 3a34b94f2e
commit 801bce335b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 19 additions and 2 deletions

15
pgo/full-headless-cage.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
set -eu
srcdir=$(realpath "${1}")
blddir=$(realpath "${2}")
runtime_dir=$(mktemp -d)
trap "rm -rf '${runtime_dir}'" EXIT INT HUP TERM
# Run Sway. full-headless-sway-inner.sh ends with a swaymsg exit
XDG_RUNTIME_DIR="${runtime_dir}" WLR_BACKENDS=headless cage "${srcdir}"/pgo/full-inner.sh "${srcdir}" "${blddir}"
# Cages exit code doesnt reflect our scripts exit code
[ -f "${blddir}"/pgo-ok ] || exit 1