From cf34595c934021488b1499900cb9182576ceb582 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 17 Aug 2009 16:37:46 +0000 Subject: move tests to Build git-svn-id: svn://tug.org/texlive/trunk@14724 c570f23f-e606-0410-a88d-b1316a301751 --- Build/tests/common.mak | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Build/tests/common.mak (limited to 'Build/tests/common.mak') 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 -- cgit v1.2.3