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:
parent
a4e31b1efc
commit
adcddcd38e
2
Makefile
2
Makefile
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user