[latex3-commits] [git/LaTeX3-latex3-latex2e] gh944: cleanup several test files (probably more needed) (b80beaf3)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Nov 7 00:01:06 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh944
Link       : https://github.com/latex3/latex2e/commit/b80beaf366051814030f5b062437a8b2c93b327b

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

commit b80beaf366051814030f5b062437a8b2c93b327b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Nov 7 00:01:06 2022 +0100

    cleanup several test files (probably more needed)


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

b80beaf366051814030f5b062437a8b2c93b327b
 base/testfiles/github-0944.lvt           |  4 ++++
 base/testfiles/github-0944.tlg           |  3 ++-
 base/testfiles/tlb-ealloc-001.luatex.tlg |  4 ++--
 base/testfiles/tlb-ealloc-001.tlg        |  4 ++--
 support/regression-test.tex              | 19 +++++++++++++++++++
 support/test209.tex                      | 13 +++++++++++++
 support/test2e.tex                       | 20 +++++++++++++++++---
 7 files changed, 59 insertions(+), 8 deletions(-)

diff --git a/base/testfiles/github-0944.lvt b/base/testfiles/github-0944.lvt
index 7a8efe68..41f96b1c 100644
--- a/base/testfiles/github-0944.lvt
+++ b/base/testfiles/github-0944.lvt
@@ -12,6 +12,10 @@
 \def\development at branch@name{-release-version-test-}
 \makeatother
 
+% reactivate the release info:
+\DeclareHookRule{enddocument/info}{kernel/testmode}{unrelated}{kernel/release}
+
+
 \listfiles
 
 
diff --git a/base/testfiles/github-0944.tlg b/base/testfiles/github-0944.tlg
index e76d6d97..76832d90 100644
--- a/base/testfiles/github-0944.tlg
+++ b/base/testfiles/github-0944.tlg
@@ -5,6 +5,7 @@ Don't change this file in any respect.
 >     kernel/filelist -> \@dofilelist 
 >     kernel/warnings -> \@enddocument at kernel@warnings 
 >     kernel/release -> \let \show at release@info \wlog \show at release@info { ***********}\the \LaTeXReleaseInfo \show at release@info { ***********}
+>     kernel/testmode -> 
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
@@ -13,7 +14,7 @@ Don't change this file in any respect.
 >     kernel/warnings|kernel/filelist with relation >
 >     kernel/release|kernel/filelist with relation <
 > Execution order (after applying rules):
->     kernel/release, kernel/filelist, kernel/warnings.
+>     kernel/release, kernel/testmode, kernel/filelist, kernel/warnings.
 <recently read> }
 l. ...\ShowHook{enddocument/info}
 LaTeX Warning: Reference `unknown' on page 1 undefined on input line ....
diff --git a/base/testfiles/tlb-ealloc-001.luatex.tlg b/base/testfiles/tlb-ealloc-001.luatex.tlg
index 298b88be..bb2d64c1 100644
--- a/base/testfiles/tlb-ealloc-001.luatex.tlg
+++ b/base/testfiles/tlb-ealloc-001.luatex.tlg
@@ -1,10 +1,10 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 \z=\toks...
-> \z=\toks16.
+> \z=\toks17.
 l. ...\show\z
 \z=\toks...
-> \z=\toks17.
+> \z=\toks18.
 l. ...\show\z
 \z=\toks...
 > \z=\toks255.
diff --git a/base/testfiles/tlb-ealloc-001.tlg b/base/testfiles/tlb-ealloc-001.tlg
index d3fb582f..327f36b0 100644
--- a/base/testfiles/tlb-ealloc-001.tlg
+++ b/base/testfiles/tlb-ealloc-001.tlg
@@ -1,10 +1,10 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 \z=\toks...
-> \z=\toks16.
+> \z=\toks17.
 l. ...\show\z
 \z=\toks...
-> \z=\toks17.
+> \z=\toks18.
 l. ...\show\z
 \z=\toks...
 > \z=\toks255.
diff --git a/support/regression-test.tex b/support/regression-test.tex
index 0a1ef5fe..3d410493 100644
--- a/support/regression-test.tex
+++ b/support/regression-test.tex
@@ -294,5 +294,24 @@
 \fi
 \reset at catcodes
 %%
+
+%%% this needs to be moved to the source of regression-test.tex!
+
+\ifx\AddToHook\undefined
+\else
+
+%
+% We don't want release information showing up in \end{document}
+% because that would change over and over again.
+% We therefore drop that information from the hook (should also
+% happen in the standard regression test when running a LaTeX
+% format). By using a voids relation we can reactivate the code in
+% a test by dropping "the testmode" label.
+%
+\AddToHook{enddocument/info}[kernel/testmode]{}
+\DeclareHookRule{enddocument/info}{kernel/testmode}{voids}{kernel/release}
+
+\fi
+
 %%
 %% End of file `regression-test.tex'.
diff --git a/support/test209.tex b/support/test209.tex
index 79ff3d93..b7648887 100644
--- a/support/test209.tex
+++ b/support/test209.tex
@@ -190,4 +190,17 @@
 \fi
   \RequirePackage{expl3}
 
+
+%
+% We don't want release information showing up in \end{document}
+% because that would change over and over again.
+% We therefore drop that information from the hook (should also
+% happen in the standard regression test when running a LaTeX
+% format). By using a voids relation we can reactivate the code in
+% a test by dropping "the testmode" label.
+%
+\AddToHook{enddocument/info}[kernel/testmode]{}
+\DeclareHookRule{enddocument/info}{kernel/testmode}{voids}{kernel/release}
+
+
 \endinput
diff --git a/support/test2e.tex b/support/test2e.tex
index 402c8e8c..ac7f0cc3 100644
--- a/support/test2e.tex
+++ b/support/test2e.tex
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 1992-2018 by David Carlisle, Frank Mittelbach.  
+% Copyright (C) 1992-2022 by David Carlisle, Frank Mittelbach.  
 % All rights reserved.
 % 
 % This file is part of the validate package.
@@ -23,9 +23,10 @@
 % Version 1.0f, 1994/05/19 drop \errorstopmode from \loggingoutput
 % Version 1.0g, 2015/09/11 luatex support
 % Version 1.0h, 2018/09/27 added \SHOWFILE
+% Version 1.0i, 2022/11/06 prevent release data from showing up
 
-% \def\fileversion{v1.0h}
-% \def\filedate{2018/09/27}
+% \def\fileversion{v1.0i}
+% \def\filedate{2022/11/06}
 
 % This file should not be used as a package or class file, 
 % it should be \input.
@@ -319,4 +320,17 @@ end
 \fi
   \RequirePackage{expl3}
 
+%
+% We don't want release information showing up in \end{document}
+% because that would change over and over again.
+% We therefore drop that information from the hook (should also
+% happen in the standard regression test when running a LaTeX
+% format). By using a voids relation we can reactivate the code in
+% a test by dropping "the testmode" label.
+%
+\AddToHook{enddocument/info}[kernel/testmode]{}
+\DeclareHookRule{enddocument/info}{kernel/testmode}{voids}{kernel/release}
+
+
+
 \endinput





More information about the latex3-commits mailing list.