summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 95ffa3c..b8dfee7 100644
--- a/Makefile
+++ b/Makefile
@@ -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: