Set font dir when checking the dist package

Make sure the binary built from the distribution package uses a local
font directory to run tests.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka 2011-01-25 21:23:36 -02:00
parent a4e31b1efc
commit adcddcd38e
2 changed files with 5 additions and 1 deletions

@ -96,7 +96,7 @@ dist:
tar cvf - $(DIST) | gzip -9c > $(DIST).tar.gz
rm -Rf $(DIST)
tar xf $(DIST).tar.gz
(cd $(DIST); make all check vercheck)
(cd $(DIST); make all check vercheck DEFAULTFONTDIR=fonts)
@rm -Rf $(DIST)
@echo
@ls -l $(DIST).tar.gz

@ -33,6 +33,10 @@ $CMD -f small "Test results" | tee -a $LOGFILE
file="$TESTDIR/input.txt"
cmd="cat $file|$CMD"
echo -n "Default font dir: "; $CMD -I2
echo -n "Default font: "; $CMD -I3
echo
run_test 001 "showfigfonts output" "./showfigfonts"
run_test 002 "text rendering in all fonts" \
"for i in fonts/*.flf; do $cmd -f \$i; done"