diff options
Diffstat (limited to 'Master/support/tests/common.mak')
-rw-r--r-- | Master/support/tests/common.mak | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/support/tests/common.mak b/Master/support/tests/common.mak new file mode 100644 index 00000000000..c6baed45419 --- /dev/null +++ b/Master/support/tests/common.mak @@ -0,0 +1,30 @@ +# $Id: //depot/Master/support/tests/common.mak#3 $ $Date: 2004/08/03 $ $Author: karl $ +# 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 |