#!/usr/bin/env bash # Drive the LVGL UI through a scripted interaction and collect screenshots. # # ui-shot.sh proves touch reaches the UI in one tap; this is the same rig for # work that needs a SEQUENCE — swipe through the app rows, open a submenu, tap a # tab, bring up the keyboard — with a screendump wherever the script asks for # one. One boot serves the whole script, because booting per step (TCG, no KVM) # costs about a minute and a real interaction is thirty steps. # # It also FAILS on a UI that died mid-script. The framebuffer keeps its last # frame when warden-ui crashes, so screendumps carry on returning a plausible # picture of a program that no longer exists; stage-2 init announces the exit on # the console (see rootfs/sbin/init) and this greps for it after the run. # # FAILS CLOSED on missing prerequisites. # # Usage: ui-drive.sh