Changeset 4353


Ignore:
Timestamp:
Feb 9, 2010, 1:50:15 AM (7 years ago)
Author:
sam
Message:

Improve testsuite.

Location:
toilet/trunk/test
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/test/Makefile.am

    r4350 r4353  
    11
    2 EXTRA_DIST = check-build check-fonts
     2EXTRA_DIST = check-source check-fonts
    33
    4 TESTS = check-build check-fonts
     4TESTS = check-source check-fonts
    55
  • toilet/trunk/test/check-fonts

    r4295 r4353  
    66# Check that we have no tabs or trailing spaces in the source code
    77#
    8 failure=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)
    23 if test "$failure" != "0"; then
    24   ret=1
    25 else
    26   echo "0 errors in fonts"
    27 fi
     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
    2823
    29 if test "$ret" != "0"; then
     24echo "$nfonts fonts, $nfails load errors"
     25
     26if test "$nfails" != "0"; then
    3027  exit 1
    3128fi
Note: See TracChangeset for help on using the changeset viewer.