source: toilet/trunk/test/check-fonts @ 4295

Last change on this file since 4295 was 4295, checked in by sam, 4 years ago

Add a test to check that all fonts can be loaded.

  • Property svn:executable set to *
File size: 525 bytes
Line 
1#!/bin/sh
2
3ret=0
4
5#
6# Check that we have no tabs or trailing spaces in the source code
7#
8failure=0
9(cd ../fonts
10  for x in $(make -s echo-fonts); do
11    case "$x" in
12     *.tlf|*.flf) ;;
13     *) continue ;;
14    esac
15    echo "Checking font $x..."
16    if ../src/toilet -d ../fonts -f "$x" Hello World >/dev/null; then
17      :
18    else
19      echo "Error loading font $x"
20      failure=1
21    fi
22  done)
23if test "$failure" != "0"; then
24  ret=1
25else
26  echo "0 errors in fonts"
27fi
28
29if test "$ret" != "0"; then
30  exit 1
31fi
32
33exit 0
34
Note: See TracBrowser for help on using the repository browser.