diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2012-05-13 01:19:21 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2012-05-13 01:19:21 +0200 |
commit | 7cf2ce3a03dc8ec07796acf51c3c1e60a908f405 (patch) | |
tree | 7cd26770e9416980ccd766d3c9893e0af1c12835 | |
parent | efa8114de758153a8773ca906ef7eaf2ba40c4ae (diff) | |
download | luaotfload-7cf2ce3a03dc8ec07796acf51c3c1e60a908f405.tar.gz |
Allow make check to input files from test dir
-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: |