Checked on the real GPU and niri: hardware decoding, fullscreen, the minimum window, menus at the edges, colours from the video, mpv's console, screensaver inhibit, the portal file dialog and Wayland drag and drop. - Unset mpv's wakeup callback before libmpv2 frees it (segfault on quit). - mpv callbacks post to a small thread instead of locking egui (hang on quit). - Hide the controls while mpv's console is open; don't double typed spaces. - Any pointer move shows the controls. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
1.1 KiB
Shell
Executable file
19 lines
1.1 KiB
Shell
Executable file
#!/bin/bash
|
|
# Hidden smoke run: Quince in a nested niri on Xvfb (tools/nested-session.sh), software GL, a throwaway config,
|
|
# driven by a QUINCE_SCRIPT (see src/script.rs). Nothing shows on the user's screen.
|
|
# SMOKE_VISIBLE=1 runs it on the user's own Wayland display instead (real GPU), still with a throwaway config.
|
|
# tools/smoke.sh <script.txt> <outdir> [files...]
|
|
set -u
|
|
root=$(cd "$(dirname "$0")/.." && pwd)
|
|
script=$(realpath "$1"); out=$2; shift 2
|
|
mkdir -p "$out"; out=$(cd "$out" && pwd)
|
|
bin=${SMOKE_BIN:-$root/target/debug/quince}
|
|
visible=${SMOKE_VISIBLE:-}
|
|
[ -z "$visible" ] && { "$root/tools/nested-session.sh" start "$out/session" "${SMOKE_SIZE:-1280x800}" || exit 1; }
|
|
( [ -z "$visible" ] && { set -a; . "$out/session/env"; set +a; export LIBGL_ALWAYS_SOFTWARE=1; }
|
|
HOME_CFG=$out/home; mkdir -p "$HOME_CFG"
|
|
QUINCE_CONFIG=${QUINCE_CONFIG:-$out/settings.json} QUINCE_SCRIPT=$script QUINCE_SHOTS=$out QUINCE_STATUS=$out/status.json \
|
|
RUST_BACKTRACE=1 timeout "${SMOKE_TIMEOUT:-90}" "$bin" "$@" >"$out/quince.log" 2>&1
|
|
echo "exit $?" >>"$out/quince.log" )
|
|
[ -z "$visible" ] && "$root/tools/nested-session.sh" stop "$out/session"
|
|
tail -3 "$out/quince.log"
|