diff options
Diffstat (limited to 'Build/source/texk/web2c/ptexdir')
-rw-r--r-- | Build/source/texk/web2c/ptexdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/ptexdir/am/ptex.am | 35 | ||||
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/pdvitype.test | 13 | ||||
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/ppltotf.test | 9 | ||||
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/ptftopl.test | 10 |
5 files changed, 59 insertions, 14 deletions
diff --git a/Build/source/texk/web2c/ptexdir/ChangeLog b/Build/source/texk/web2c/ptexdir/ChangeLog index db627a6cf5a..63d83ecd5cb 100644 --- a/Build/source/texk/web2c/ptexdir/ChangeLog +++ b/Build/source/texk/web2c/ptexdir/ChangeLog @@ -1,3 +1,9 @@ +2010-04-21 Peter Breitenlohner <peb@mppmu.mpg.de> + + * pdvitype.test, ppltotf.test, ptftopl.test (new): Shell scripts + for basic 'make check' tests. + * am/ptex.am: Add these tests. + 2010-04-17 Peter Breitenlohner <peb@mppmu.mpg.de> * ppltotf.ch: Rename PTEX_PLTOTF_HELP => PPLTOTF_HELP. diff --git a/Build/source/texk/web2c/ptexdir/am/ptex.am b/Build/source/texk/web2c/ptexdir/am/ptex.am index 876474fee69..05a20f9f90c 100644 --- a/Build/source/texk/web2c/ptexdir/am/ptex.am +++ b/Build/source/texk/web2c/ptexdir/am/ptex.am @@ -5,11 +5,19 @@ ptex_cppflags = $(PTEXENC_INCLUDES) ptex_ldadd = $(pproglib) $(PTEXENC_LIBS) $(LDADD) +p_tangle = WEBINPUTS=.:$(srcdir)/ptexdir:$(srcdir) $(buildenv) $(TANGLE) -pweb_programs = pbibtex pdvitype ptftopl ppltotf +pweb_programs = pbibtex pdvitype ppltotf ptftopl -p_tangle = WEBINPUTS=.:$(srcdir)/ptexdir:$(srcdir) $(buildenv) $(TANGLE) +# pTeX Tests +# +ptex_tests = \ + ptexdir/pdvitype.test \ + ptexdir/ppltotf.test \ + ptexdir/ptftopl.test \ + ptexdir/ptrip.test +EXTRA_DIST += $(ptex_tests) DISTCLEANFILES += $(pweb_programs:=.c) $(pweb_programs:=.h) \ $(pweb_programs:=.p) $(pweb_programs:=-web2c) $(pweb_programs:=.web) @@ -168,32 +176,31 @@ EXTRA_DIST += \ ptexdir/INSTALL.txt \ ptexdir/README.txt -# pTeX Tests -# -ptex_tests = ptexdir/ptrip.test - -EXTRA_DIST += $(ptex_tests) - if PTEX TESTS += $(ptex_tests) check_PROGRAMS += dvitype pltotf tftopl TRIPTRAP += ptrip.diffs endif PTEX -DISTCLEANFILES += ptrip.diffs +## Test data and results +## +## ptexdir/pdvitype.test +DISTCLEANFILES += tests/xstory.dvityp tests/xpagenum.typ +## ptexdir/ppltotf.test +DISTCLEANFILES += tests/xcmr10.tfm +## ptexdir/ptftopl.test +DISTCLEANFILES += tests/xcmr10.pl +## ptexdir/ptrip.test +EXTRA_DIST += ptexdir/ptrip.diffs .PHONY: ptrip-clean clean-local:: ptrip-clean -# ptrip.test ptrip-clean: rm -f trip.tfm trip.pl trip.tex trip.fmt ptripin.fot ptripin.log rm -f ptrip.fot ptrip.log trip.log trip.dvi trip.typ rm -f ptrip.fot ptrip.log ptrip.dvi ptrip.typ rm -f tripos.tex 8terminal.tex rm -rf tfm - -## Test data -## -EXTRA_DIST += ptexdir/ptrip.diffs +DISTCLEANFILES += ptrip.diffs ## Eventually delete these files ## diff --git a/Build/source/texk/web2c/ptexdir/pdvitype.test b/Build/source/texk/web2c/ptexdir/pdvitype.test new file mode 100755 index 00000000000..9c2c343ccb1 --- /dev/null +++ b/Build/source/texk/web2c/ptexdir/pdvitype.test @@ -0,0 +1,13 @@ +#! /bin/sh + +# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +test -d tests || mkdir -p tests + +TEXMFCNF=$srcdir/../kpathsea \ + ./pdvitype -show-opcodes $srcdir/tests/story >tests/xstory.dvityp || exit 1 + +TEXMFCNF=$srcdir/../kpathsea \ + ./pdvitype --p=\*.\*.2 $srcdir/tests/pagenum.dvi >tests/xpagenum.typ || exit 1 + diff --git a/Build/source/texk/web2c/ptexdir/ppltotf.test b/Build/source/texk/web2c/ptexdir/ppltotf.test new file mode 100755 index 00000000000..5cd672c497c --- /dev/null +++ b/Build/source/texk/web2c/ptexdir/ppltotf.test @@ -0,0 +1,9 @@ +#! /bin/sh + +# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +test -d tests || mkdir -p tests + +./ppltotf -verbose $srcdir/tests/cmr10 tests/xcmr10 || exit 1 + diff --git a/Build/source/texk/web2c/ptexdir/ptftopl.test b/Build/source/texk/web2c/ptexdir/ptftopl.test new file mode 100755 index 00000000000..6c8d06b80ea --- /dev/null +++ b/Build/source/texk/web2c/ptexdir/ptftopl.test @@ -0,0 +1,10 @@ +#! /bin/sh + +# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +test -d tests || mkdir -p tests + +TEXMFCNF=$srcdir/../kpathsea \ + ./ptftopl -verbose $srcdir/tests/cmr10 tests/xcmr10 || exit 1 + |