diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2012-05-13 01:32:46 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2012-05-13 01:32:46 +0200 |
commit | 99d49de9cb629d5c1170b0b4ae2ae57acfbfecfb (patch) | |
tree | 725f2934d26eacd470fff1e414654fd901a80fb8 /Makefile | |
parent | 42be9d0c24a418e1509b9c2286f036ba4cafd4bb (diff) | |
download | luaotfload-99d49de9cb629d5c1170b0b4ae2ae57acfbfecfb.tar.gz |
Run make check in a clean env as possible
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,7 +17,7 @@ TESTDIR = tests TESTFILES = $(wildcard $(TESTDIR)/*.tex) TESTFILES_SYS = $(TESTDIR)/systemfonts.tex $(TESTDIR)/fontconfig_conf_reading.tex TESTFILES_TL = $(filter-out $(TESTFILES_SYS), $(TESTFILES)) -TESTINPUTS = '.;..;$$TEXMF/tex/{luatex,plain,generic,}//' +TESTENV = env TEXINPUTS='.;..;$$TEXMF/tex/{luatex,plain,generic,}//' TEXMFVAR='../var' # Files grouped by installation location SCRIPTFILES = $(SCRIPT) @@ -84,16 +84,17 @@ install: $(ALL_FILES) $(run-install) check: $(RUNFILES) $(TESTFILES_TL) + @rm -rf var @cd $(TESTDIR); for f in $(TESTFILES_TL); do \ echo "check: luatex $$f"; \ - env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$$f \ + $(TESTENV) luatex --interaction=batchmode ../$$f \ > /dev/null || exit $$?; \ done check-all: $(TESTFILES_SYS) check @cd $(TESTDIR); for f in $(TESTFILES_SYS); do \ echo "check: luatex $$f"; \ - env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$$f \ + $(TESTENV) luatex --interaction=batchmode ../$$f \ > /dev/null || exit $$?; \ done |