diff options
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,6 +17,7 @@ TESTDIR = tests TESTFILES = $(wildcard $(TESTDIR)/*.tex) TESTFILE_SYS = $(TESTDIR)/systemfonts.tex $(TESTDIR)/fontconfig_conf_reading.tex TESTFILES_TL = $(filter-out $(TESTFILE_SYS), $(TESTFILES)) +TESTINPUTS = '.;..;$$TEXMF/tex/{luatex,plain,generic,}//' # Files grouped by installation location SCRIPTFILES = $(SCRIPT) @@ -83,15 +84,15 @@ install: $(ALL_FILES) $(run-install) check: $(RUNFILES) $(TESTFILES_TL) - @for f in $(TESTFILES_TL); do \ + @cd $(TESTDIR); for f in $(TESTFILES_TL); do \ echo "check: luatex $$f"; \ - luatex --interaction=batchmode --output-directory $(TESTDIR) $$f \ + env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$$f \ > /dev/null || exit $$?; \ done check-all: $(TESTFILE_SYS) check @echo "check: luatex $<" - @luatex --interaction=batchmode --output-directory $(TESTDIR) $< \ + @cd $(TESTDIR); env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$< \ >/dev/null manifest: |