Files
buffybox/test/test-uses-fb-backend-if-drm-selected-via-config-but-unavailable.sh
2024-07-26 16:40:49 +00:00

31 lines
451 B
Bash
Executable File

#!/bin/bash
log=tmp.log
conf=tmp.conf
source "$(dirname "${BASH_SOURCE[0]}")/helpers.sh"
function clean_up() {
rm -f "$log" "$conf"
}
trap clean_up EXIT
info "Writing config"
cat << EOF > "$conf"
[general]
backend=drm
EOF
info "Running unl0kr"
run_unl0kr_async "$log" "$conf"
info "Verifying output"
if ! grep "Using framebuffer backend" "$log"; then
error "Expected framebuffer backend to be selected"
cat "$log"
exit 1
fi
ok