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