[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: adapt regressiontest to new command (f0073e6)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Mar 10 23:57:44 CET 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/f0073e6d80234ba4722382e69fe1db4ec40acb4a

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

commit f0073e6d80234ba4722382e69fe1db4ec40acb4a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Mar 10 23:57:44 2022 +0100

    adapt regressiontest to new command


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

f0073e6d80234ba4722382e69fe1db4ec40acb4a
 l3backend-testphase.dtx                  |  4 +-
 support/pdfmanagement-regressiontest.sty | 81 ++------------------------------
 2 files changed, 5 insertions(+), 80 deletions(-)

diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index 48e8816..53d902a 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -1985,8 +1985,6 @@
   {
     \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')}
 %</drivers>
 %<*dvips>
     \__kernel_backend_literal:e{!~<</DocumentUUID~(DocumentUUID)>>~setpagedevice}
@@ -2023,6 +2021,8 @@
      ]}
 %</luatex>
 %<*drivers>
+    \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
+    \pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
    }
 %</drivers>
 %    \end{macrocode}
diff --git a/support/pdfmanagement-regressiontest.sty b/support/pdfmanagement-regressiontest.sty
index 763610f..22b02b0 100644
--- a/support/pdfmanagement-regressiontest.sty
+++ b/support/pdfmanagement-regressiontest.sty
@@ -1,85 +1,10 @@
-\ProvidesPackage {pdfmanagement-regressiontest}[2021-02-08 regression test code for the pdfmanagement 0.1]
+\ProvidesPackage {pdfmanagement-regressiontest}[2022-02-10 regression test code for the pdfmanagement 0.1]
 
 \ExplSyntaxOn
 \cs_if_exist:NT\STARTMESSAGE
  {
    \endinput
  }
-
-\str_case:Vn \c_sys_backend_str
- {
-   {luatex}
-   {
-     \cs_new_protected:Npn \pdfsetupregressiontest
-      {
-        \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
-        \pdfmanagement_add:nnn{Info}{Producer}{(LuaTeX)}
-        \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
-        \pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
-        \pdfvariable suppressoptionalinfo 7\relax
-        \pdfvariable trailerid
-         {[~
-           <2350CAD05F8A7AF0AA4058486855344F>~
-           <2350CAD05F8A7AF0AA4058486855344F>~
-         ]}
-        \sys_gset_rand_seed:n{1000}
-      }
-   }
-   {pdftex}
-   {
-     \cs_new_protected:Npn \pdfsetupregressiontest
-       {
-         \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
-         \pdfmanagement_add:nnn{Info}{Producer}{(pdfTeX)}
-         \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
-         \pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
-         \pdfsuppressptexinfo7 \relax
-         \pdftrailerid{2350CAD05F8A7AF0AA4058486855344F}
-         \sys_gset_rand_seed:n{1000}
-       }
-   }
-   {dvips}
-   {
-     \cs_new_protected:Npn \pdfsetupregressiontest
-       {
-         \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
-         \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
-         \pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
-         \special{!~<</DocumentUUID~(DocumentUUID)>>~setpagedevice}
-         \special{!~<</InstanceUUID~(InstanceUUID)>>~setpagedevice}
-         \sys_gset_rand_seed:n{1000}
-       }
-   }
-   {dvipdfmx}
-   {
-     \cs_new_protected:Npn \pdfsetupregressiontest
-       {
-         \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
-         \pdfmanagement_add:nnn{Info}{Producer}{(dvipdfmx)}
-         \pdfmanagement_add:nnn{Info}{CreationDate}{(D:20010101205959-00'00')}
-         \special{pdf:trailerid [~
-          <00112233445566778899aabbccddeeff>~
-          <00112233445566778899aabbccddeeff>~
-          ]}
-         \sys_gset_rand_seed:n{1000}
-       }
-   }
-   {xetex}
-   {
-     \cs_new_protected:Npn \pdfsetupregressiontest
-       {
-         \pdfmanagement_add:nnn{Info}{Creator}{(TeX)}
-         \pdfmanagement_add:nnn{Info}{Producer}{(xetex)}
-         \pdfmanagement_add:nnx{Info}{CreationDate}{(D:20010101194934+01'00')}
-         \pdfmanagement_add:nnn{Info}{ModDate}{(D:20010101205959-00'00')}
-         \special{pdf:trailerid [~
-          <00112233445566778899aabbccddeeff>~
-          <00112233445566778899aabbccddeeff>~
-          ]}
-         \sys_gset_rand_seed:n{1000}
-       }
-   }
- }
  \ExplSyntaxOff
 
 %copied and adapted from regression-test.tex:
@@ -331,8 +256,8 @@
   \fi
 \fi
 %%%changed
-\ifcsname pdfsetupregressiontest\endcsname
-   \pdfsetupregressiontest
+\ifcsname pdfmeta_set_regression_data:\endcsname
+   \csname pdfmeta_set_regression_data:\endcsname
 \else
    \ifnum 0%
      \ifx\pdfoutput\@undefined\else\ifnum\pdfoutput>0 1\fi\fi





More information about the latex3-commits mailing list.