[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: correct guard, add pdfmeta function for regression (f58f861)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Mar 10 23:24:18 CET 2022
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/f58f861c070287fc50581a09f3fd6ccda6cce968
>---------------------------------------------------------------
commit f58f861c070287fc50581a09f3fd6ccda6cce968
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Mar 10 23:24:18 2022 +0100
correct guard, add pdfmeta function for regression
>---------------------------------------------------------------
f58f861c070287fc50581a09f3fd6ccda6cce968
l3backend-testphase.dtx | 5 +++--
l3pdfmeta.dtx | 17 +++++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index 4624fdc..48e8816 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -1983,6 +1983,7 @@
%<*drivers>
\cs_new_protected:Npn \@@_backend_set_regression_data:
{
+ \sys_gset_rand_seed:n{1000}
\pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
\pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
\pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
@@ -1998,7 +1999,7 @@
<00112233445566778899aabbccddeeff>~
<00112233445566778899aabbccddeeff>~
]}
-%<dvipdfmx>
+%</dvipdfmx>
%<*xdvipdfmx>
\pdfmanagement_add:nnn{Info}{Producer}{(xetex)}
\__kernel_backend_literal:e
@@ -2006,7 +2007,7 @@
<00112233445566778899aabbccddeeff>~
<00112233445566778899aabbccddeeff>~
]}
-%<xdvipdfmx>
+%</xdvipdfmx>
%<*pdftex>
\pdfmanagement_add:nnn{Info}{Producer}{(pdfTeX)}
\tex_pdfsuppressptexinfo:D 7 \scan_stop:
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 9b40a4e..6b13b4e 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -332,6 +332,17 @@
% The pdf/A standards will use |A=sRGB.icc| by default, so this doesn't
% need to be declared explicitly.
%
+% \subsection{Regression tests}
+% When doing regression tests one has to set various metadata to fix values.
+
+% \begin{function}{\pdfmeta_set_regression_data:}
+% \begin{syntax}
+% \cs{pdfmeta_set_regression_data:}
+% \end{syntax}
+% This sets various metadata to values needed by the \LaTeX{}
+% regression tests.
+% It also sets the seed for random functions.
+% \end{function}
%
% \end{documentation}
%
@@ -875,6 +886,12 @@
}
% \end{macrocode}
%
+% \subsection{Regression test}
+% This is simply a copy of the backend function.
+% \begin{macrocode}
+\cs_new_protected:Npn \pdfmeta_set_regression_data:
+ { \__pdf_backend_set_regression_data: }
+% \end{macrocode}
% \begin{macrocode}
%</package>
% \end{macrocode}
More information about the latex3-commits
mailing list.