vinix-ports / tests / x11 / modeline-font.sh
19 lines · 19 sloc · 599 bytes · b4fd568c1462476d1a99ec90abaf0121e5eec87a
Raw
1#!/bin/sh
2set -eu
3export PATH=/bin:/usr/bin:/sbin:/usr/sbin
4finish() {
5 status=$?
6 if [ "$status" -ne 0 ]; then echo 'Vinix modeline and bitmap font check failed'; fi
7 /sbin/poweroff -f
8}
9trap finish EXIT
10mkdir -p /tmp
11cvt 640 480 60 >/tmp/modeline
12grep -F 'Modeline "640x480_60.00"' /tmp/modeline
13bdftopcf -t /cursor.bdf >/tmp/cursor.pcf
14read -r expected filename </cursor.sha256
15actual=$(sha256sum "$filename")
16test "${actual%% *}" = "$expected"
17echo "$actual"
18echo 'Packaged cvt calculated a display mode and bdftopcf regenerated the release cursor font.'
19echo 'VPAC FIXTURE GUEST PASS'
20