[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Add (basic) test for (u)pTeX format building (c477aa45)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Dec 6 20:39:41 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/c477aa458f08a32197556b31041b63f8dfcfce12

>---------------------------------------------------------------

commit c477aa458f08a32197556b31041b63f8dfcfce12
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Dec 6 19:38:28 2022 +0000

    Add (basic) test for (u)pTeX format building


>---------------------------------------------------------------

c477aa458f08a32197556b31041b63f8dfcfce12
 .github/tl_packages                                |  3 +++
 base/build.lua                                     |  3 ++-
 base/config-ptex.lua                               |  6 +++++
 .../ptex-001.eptex.tlg}                            | 21 ++++++++++-----
 .../ltpara-003.lvt => testfiles-ptex/ptex-001.lvt} | 30 +++++-----------------
 .../ptex-001.tlg}                                  | 21 ++++++++++-----
 6 files changed, 47 insertions(+), 37 deletions(-)

diff --git a/.github/tl_packages b/.github/tl_packages
index 6010e399..4f54c8af 100644
--- a/.github/tl_packages
+++ b/.github/tl_packages
@@ -24,6 +24,9 @@ lh
 tex-gyre
 hypdoc
 fancyhdr
+# (u)pTeX
+platex
+uplatex
 #
 # special testing for firstaid
 bidi
diff --git a/base/build.lua b/base/build.lua
index 23fb8123..06d9f93b 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -151,7 +151,8 @@ indexstyle = "source2e.ist"
 
 -- Allow for TU and other test configurations
 checkconfigs = {"build","config-1run","config-TU","config-legacy","config-lthooks",
-                "config-lthooks2","config-ltcmd","config-doc","config-ltmarks"}
+                "config-lthooks2","config-ltcmd","config-doc","config-ltmarks",
+                "config-ptex"}
 
 update_tag = update_tag_base
 
diff --git a/base/config-ptex.lua b/base/config-ptex.lua
new file mode 100644
index 00000000..744751ab
--- /dev/null
+++ b/base/config-ptex.lua
@@ -0,0 +1,6 @@
+-- Tests for pTeX; tree enabled
+
+checkengines = {"eptex", "euptex"}
+
+checksearch  = true
+testfiledir  = "./testfiles-ptex"
diff --git a/base/testfiles/tlb-utf8-bom.tlg b/base/testfiles-ptex/ptex-001.eptex.tlg
similarity index 66%
copy from base/testfiles/tlb-utf8-bom.tlg
copy to base/testfiles-ptex/ptex-001.eptex.tlg
index 865f028b..d6ff7f08 100644
--- a/base/testfiles/tlb-utf8-bom.tlg
+++ b/base/testfiles-ptex/ptex-001.eptex.tlg
@@ -1,8 +1,8 @@
-This is a generated file for the LaTeX2e validation system.
+This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-(tlb-utf8-bom.lvt)
 Completed box being shipped out [1]
 \vbox(633.0+0.0)x407.0
+.\hbox(0.0+0.0)x0.0
 .\glue 16.0
 .\vbox(617.0+0.0)x345.0, shifted 62.0
 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil
@@ -14,12 +14,20 @@ Completed box being shipped out [1]
 ..\vbox(550.0+0.0)x345.0, glue set 539.94232fil
 ...\write-{}
 ...\glue(\topskip) 3.05556
-...\hbox(6.94444+0.0)x345.0, glue set 311.63887fil
+...\hbox(6.94444+0.0)x345.0, glue set 279.97214fil
 ....\hbox(0.0+0.0)x15.0
-....\OT1/cmr/m/n/10 h
+....\OT1/cmr/m/n/10 H
 ....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 o
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 w
+....\kern-0.27779
+....\OT1/cmr/m/n/10 o
 ....\OT1/cmr/m/n/10 r
-....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 d
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
@@ -32,4 +40,5 @@ Completed box being shipped out [1]
 ....\glue 0.0 plus 1.0fil
 ....\OT1/cmr/m/n/10 1
 ....\glue 0.0 plus 1.0fil
-(tlb-utf8-bom.aux)
+.\kern 0.0
+(ptex-001.aux)
diff --git a/base/testfiles-lthooks2/ltpara-003.lvt b/base/testfiles-ptex/ptex-001.lvt
similarity index 54%
copy from base/testfiles-lthooks2/ltpara-003.lvt
copy to base/testfiles-ptex/ptex-001.lvt
index 3a77f1cb..62c80342 100644
--- a/base/testfiles-lthooks2/ltpara-003.lvt
+++ b/base/testfiles-ptex/ptex-001.lvt
@@ -1,28 +1,10 @@
-\documentclass{article}
-
+%
+% Testfile for (u)pTeX
+%
 \input{regression-test}
-
-\usepackage{ltpara}
-
-
-\showoutput
-
+\documentclass{article}
 \begin{document}
-
+\showoutput
 \START
-
-Test1
-\[ A \]
-END1
-
-Test2
-\[ B \]
-
-END2
-
-\[ C \]
-
-END3
-
+Hello world
 \end{document}
-
diff --git a/base/testfiles/tlb-utf8-bom.tlg b/base/testfiles-ptex/ptex-001.tlg
similarity index 66%
copy from base/testfiles/tlb-utf8-bom.tlg
copy to base/testfiles-ptex/ptex-001.tlg
index 865f028b..d6ff7f08 100644
--- a/base/testfiles/tlb-utf8-bom.tlg
+++ b/base/testfiles-ptex/ptex-001.tlg
@@ -1,8 +1,8 @@
-This is a generated file for the LaTeX2e validation system.
+This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-(tlb-utf8-bom.lvt)
 Completed box being shipped out [1]
 \vbox(633.0+0.0)x407.0
+.\hbox(0.0+0.0)x0.0
 .\glue 16.0
 .\vbox(617.0+0.0)x345.0, shifted 62.0
 ..\vbox(12.0+0.0)x345.0, glue set 12.0fil
@@ -14,12 +14,20 @@ Completed box being shipped out [1]
 ..\vbox(550.0+0.0)x345.0, glue set 539.94232fil
 ...\write-{}
 ...\glue(\topskip) 3.05556
-...\hbox(6.94444+0.0)x345.0, glue set 311.63887fil
+...\hbox(6.94444+0.0)x345.0, glue set 279.97214fil
 ....\hbox(0.0+0.0)x15.0
-....\OT1/cmr/m/n/10 h
+....\OT1/cmr/m/n/10 H
 ....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 o
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 w
+....\kern-0.27779
+....\OT1/cmr/m/n/10 o
 ....\OT1/cmr/m/n/10 r
-....\OT1/cmr/m/n/10 e
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 d
 ....\penalty 10000
 ....\glue(\parfillskip) 0.0 plus 1.0fil
 ....\glue(\rightskip) 0.0
@@ -32,4 +40,5 @@ Completed box being shipped out [1]
 ....\glue 0.0 plus 1.0fil
 ....\OT1/cmr/m/n/10 1
 ....\glue 0.0 plus 1.0fil
-(tlb-utf8-bom.aux)
+.\kern 0.0
+(ptex-001.aux)





More information about the latex3-commits mailing list.