1fail() {
2    echo "FAIL"
3    exit 1
4}
5check() {
6    printf "$1: "
7    vt100/vt100 -R "$1" 2>/dev/null | grep -a "$2" >/dev/null || fail
8    echo "OK"
9}
10check test/tst8080.com 'CPU IS OPERATIONAL'
11check test/cputest.com 'CPU TESTS OK'
12check test/8080exer.com 'Tests complete'
13echo All tests OK.
14exit 0
15