toilet/test/check-fonts

32 lines
487 B
Text
Raw Normal View History

#!/bin/sh
ret=0
#
# Check that we have no tabs or trailing spaces in the source code
#
2010-02-09 01:50:15 +01:00
nfails=0
nfonts=0
for x in $(make -s echo-fonts -C ../fonts); do
case "$x" in
*.tlf|*.flf) ;;
*) continue ;;
esac
nfonts=$(($nfonts + 1))
if ../src/toilet -d ../fonts -f "$x" Hello World >/dev/null; then
:
else
echo "Error loading font $x"
nfails=$(($nfails + 1))
fi
done
echo "$nfonts fonts, $nfails load errors"
2010-02-09 01:50:15 +01:00
if test "$nfails" != "0"; then
exit 1
fi
exit 0