- Timestamp:
- Feb 9, 2010, 1:50:15 AM (10 years ago)
- Location:
- toilet/trunk/test
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
toilet/trunk/test/Makefile.am
r4350 r4353 1 1 2 EXTRA_DIST = check- buildcheck-fonts2 EXTRA_DIST = check-source check-fonts 3 3 4 TESTS = check- buildcheck-fonts4 TESTS = check-source check-fonts 5 5 -
toilet/trunk/test/check-fonts
r4295 r4353 6 6 # Check that we have no tabs or trailing spaces in the source code 7 7 # 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 8 nfails=0 9 nfonts=0 10 for 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 22 done 28 23 29 if test "$ret" != "0"; then 24 echo "$nfonts fonts, $nfails load errors" 25 26 if test "$nfails" != "0"; then 30 27 exit 1 31 28 fi
Note: See TracChangeset
for help on using the changeset viewer.