texlive[67381] Build/source/texk/web2c: [CWEB] Add comprehensive test

commits+ascherer at tug.org commits+ascherer at tug.org
Fri Jun 16 15:05:01 CEST 2023


Revision: 67381
          http://tug.org/svn/texlive?view=revision&revision=67381
Author:   ascherer
Date:     2023-06-16 15:05:01 +0200 (Fri, 16 Jun 2023)
Log Message:
-----------
[CWEB] Add comprehensive test for the CTWILL system.

This seems to have to be incorporated into Makefile.in somehow.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/am/cweb.am
    trunk/Build/source/texk/web2c/cwebdir/ChangeLog

Added Paths:
-----------
    trunk/Build/source/texk/web2c/cwebdir/ctwill.test

Modified: trunk/Build/source/texk/web2c/am/cweb.am
===================================================================
--- trunk/Build/source/texk/web2c/am/cweb.am	2023-06-16 01:56:32 UTC (rev 67380)
+++ trunk/Build/source/texk/web2c/am/cweb.am	2023-06-16 13:05:01 UTC (rev 67381)
@@ -44,16 +44,17 @@
 
 ## 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

Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2023-06-16 01:56:32 UTC (rev 67380)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2023-06-16 13:05:01 UTC (rev 67381)
@@ -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>
 

Added: trunk/Build/source/texk/web2c/cwebdir/ctwill.test
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctwill.test	                        (rev 0)
+++ trunk/Build/source/texk/web2c/cwebdir/ctwill.test	2023-06-16 13:05:01 UTC (rev 67381)
@@ -0,0 +1,53 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2023 Andreas Scherer <tex-live at 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



More information about the tex-live-commits mailing list.