diff options
author | Karl Berry <karl@freefriends.org> | 2009-08-17 16:37:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-08-17 16:37:46 +0000 |
commit | cf34595c934021488b1499900cb9182576ceb582 (patch) | |
tree | c0f8dee20a5fe1f9fcef60fb2a88dedc401b8562 /Build/tests/common.mak | |
parent | 15fb41576282c23c5d6864975a61a9e3436fa7fc (diff) |
move tests to Build
git-svn-id: svn://tug.org/texlive/trunk@14724 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tests/common.mak')
-rw-r--r-- | Build/tests/common.mak | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Build/tests/common.mak b/Build/tests/common.mak new file mode 100644 index 00000000000..d66178e78fb --- /dev/null +++ b/Build/tests/common.mak @@ -0,0 +1,30 @@ +# $Id$ +# Written 2004, Karl Berry. Public domain. + +# maybe we'll need to set paths or something? +#run = + +# we run in subdirectories. +dvicheck = ../checkdvi.pl +pdfcheck = ../checkpdf.pl + +# running context is complicated. +context = texexec --batch --pdf --result=$(test).pdf $(paper) +ctxpaper = --paper=letter\*letter --mode=letter +ctxclean = $(test).tmp $(test).tui $(test).tuo mpgraph.* texexec.* +pdfclean = $(test).pdf checkpdf-*.ppm + +rm = rm -f + +%.dvitype: %.dvi + $(run) dvitype $< >$@ || { rm -f $@; exit 1; } + +# compress the ppm just for the sake of saving depot space/transfer time. +# used pdftoppm 3.00. +# only useful for one-page tests. +%.ppz: %.pdf + pdftoppm -cfg /dev/null $< $* + gzip -1 <$*-000001.ppm >$@ + $(rm) $*-000001.ppm + +.PRECIOUS: %.dvitype |