summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-05-13 01:19:21 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2012-05-13 01:19:21 +0200
commit7cf2ce3a03dc8ec07796acf51c3c1e60a908f405 (patch)
tree7cd26770e9416980ccd766d3c9893e0af1c12835 /Makefile
parentefa8114de758153a8773ca906ef7eaf2ba40c4ae (diff)
downloadluaotfload-7cf2ce3a03dc8ec07796acf51c3c1e60a908f405.tar.gz
Allow make check to input files from test dir
Diffstat (limited to 'Makefile')
-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: