diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2023-06-16 13:05:01 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2023-06-16 13:05:01 +0000 |
commit | 32fe3a0af79cbccf844a135743081ca1ff92850e (patch) | |
tree | 2b090154f03cf7df0419a9ba6f2556cd3b8d48fb /Build/source | |
parent | c273d25a15bfc5d43c31eae6b1cbd90147c05b07 (diff) |
[CWEB] Add comprehensive test for the CTWILL system.
This seems to have to be incorporated into Makefile.in somehow.
git-svn-id: svn://tug.org/texlive/trunk@67381 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/web2c/am/cweb.am | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ChangeLog | 1 | ||||
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ctwill.test | 53 |
3 files changed, 58 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/am/cweb.am b/Build/source/texk/web2c/am/cweb.am index 09ca66acbe8..159b1d85628 100644 --- a/Build/source/texk/web2c/am/cweb.am +++ b/Build/source/texk/web2c/am/cweb.am @@ -44,16 +44,17 @@ DISTCLEANFILES += tie.c ## Tests ## -TESTS += ctiedir/ctie.test cwebdir/cweave.test tiedir/tie.test +TESTS += ctiedir/ctie.test cwebdir/ctwill.test cwebdir/cweave.test tiedir/tie.test ctiedir/ctie.log: ctie$(EXEEXT) cwebdir/cweave.log: cweave$(EXEEXT) cwebdir/ctwill.log: ctwill$(EXEEXT) -cwebdir/ctwill-refsort.log: ctwill-refsort$(EXEEXT) -cwebdir/ctwill-twinx.log: ctwill-twinx$(EXEEXT) tiedir/tie.log: tie$(EXEEXT) ## ctiedir/ctie.test DISTCLEANFILES += ctie.outc ctie.outm +## cwebdir/ctwill.test +DISTCLEANFILES += ctwill.w ctwill.tex ctwill.aux ctwill.idx ctwill.scn +DISTCLEANFILES += ctwill.ref ctwill.sref ctwill.dvi ctwill-sorted.tex ## cwebdir/cweave.test DISTCLEANFILES += common.tex common.scn common.idx ## tiedir/tie.test diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog index a54e117956d..62eba2edb21 100644 --- a/Build/source/texk/web2c/cwebdir/ChangeLog +++ b/Build/source/texk/web2c/cwebdir/ChangeLog @@ -1,6 +1,7 @@ 2023-06-16 Andreas Scherer <https://ascherer.github.io> * ctwill-proofsort: Rename from 'proofsort'. + * ctwill.test: Comprehensive test of the CTWILL system. 2023-06-14 Andreas Scherer <https://ascherer.github.io> diff --git a/Build/source/texk/web2c/cwebdir/ctwill.test b/Build/source/texk/web2c/cwebdir/ctwill.test new file mode 100644 index 00000000000..f1accfe452d --- /dev/null +++ b/Build/source/texk/web2c/cwebdir/ctwill.test @@ -0,0 +1,53 @@ +#! /bin/sh -vx +# $Id$ +# Copyright 2023 Andreas Scherer <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +# +# (1) Test the "classic" CTWILL procedure +# +TEXMFCNF=$srcdir/../kpathsea \ + CWEBINPUTS=$srcdir/cwebdir ctie -m ctwill.w \ + cweave.w ctwill-w2c.ch ctwill-mini.ch || exit 1 + +# Prime the pump by running CTWILL twice +TEXMFCNF=$srcdir/../kpathsea \ + CWEBINPUTS=$srcdir/cwebdir ./ctwill ctwill.w || exit 1 + +TEXMFCNF=$srcdir/../kpathsea \ + CWEBINPUTS=$srcdir/cwebdir ./ctwill ctwill.w || exit 1 + +# Run TeX for the first time +TEXMFCNF=$srcdir/../kpathsea \ + TEXINPUTS=$srcdir/cwebdir//: tex ctwill.tex || exit 1 + +# Test CTWILL-REFSORT +TEXMFCNF=$srcdir/../kpathsea \ + ./ctwill-refsort < ctwill.ref > ctwill.sref || exit 1 + +# Run TeX for the second time -- NOT! +#TEXMFCNF=$srcdir/../kpathsea \ + #TEXINPUTS=$srcdir/cwebdir//: tex ctwill.tex || exit 1 + +# +# (2) Test the "proofing" CTWILL procedure +# +TEXMFCNF=$srcdir/../kpathsea \ + CWEBINPUTS=$srcdir/cwebdir ctie -m ctwill.w \ + cweave.w ctwill-w2c.ch ctwill-mini.ch \ + ctwill-hint.ch || exit 1 + +# Running CTWILL once again, but with options +P +lpdf +TEXMFCNF=$srcdir/../kpathsea \ + CWEBINPUTS=$srcdir/cwebdir ./ctwill +P +lpdf ctwill.w || exit 1 + +# Test CTWILL-PROOFSORT +TEXMFCNF=$srcdir/../kpathsea \ + ./ctwill-proofsort ctwill.tex > ctwill-sorted.tex || exit 1 +#mv ctwill-sorted.tex ctwill.tex || exit 1 # -- NOT! + +# Run pdfTeX once -- NOT! +#TEXMFCNF=$srcdir/../kpathsea \ + #TEXINPUTS=$srcdir/cwebdir//: pdftex ctwill.tex || exit 1 + +exit 0 |