#! /bin/bash # Known-answer tests for Bedstead. rom.ps is meant to reproduce the # SAA505x character ROM images, so its output should be invariant in # the absence of bugs. The hashes here are not derived from real ROM # images, but from Git commit 239363800f6beaf74d8cafe275d11cb8a8501abb, # which is believed to be correct. set -euo pipefail for i in 0 1 2 3 4 5 6 7; do gs -I/usr/share/fonts/opentype/bedstead \ -P -q -dSAFER -sDEVICE=bit -o "${AUTOPKGTEST_TMP}/saa505${i}.rom" \ -- rom.ps "SAA505${i}" done cd -- "${AUTOPKGTEST_TMP}" [ -n "${AUTOPKGTEST_ARTIFACTS-}" ] && cp -- *.rom "${AUTOPKGTEST_ARTIFACTS}" sha256sum -c <