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

Last change on this file since 4353 was 4353, checked in by Sam Hocevar, 9 years ago

Improve testsuite.

  • Property svn:executable set to *
File size: 487 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#
8nfails=0
9nfonts=0
10for x in $(make -s echo-fonts -C ../fonts); do
11  case "$x" in
12   *.tlf|*.flf) ;;
13   *) continue ;;
14  esac
15  nfonts=$(($nfonts + 1))
16  if ../src/toilet -d ../fonts -f "$x" Hello World >/dev/null; then
17    :
18  else
19    echo "Error loading font $x"
20    nfails=$(($nfails + 1))
21  fi
22done
23
24echo "$nfonts fonts, $nfails load errors"
25
26if test "$nfails" != "0"; then
27  exit 1
28fi
29
30exit 0
31
Note: See TracBrowser for help on using the repository browser.