[latex3-commits] [git/LaTeX3-latex3-latex2e] versioning: another test (34670ef)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Feb 19 22:59:03 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : versioning
Link       : https://github.com/latex3/latex2e/commit/34670ef33cb6887012ec6b61981258a1bc0272ce

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

commit 34670ef33cb6887012ec6b61981258a1bc0272ce
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Feb 19 22:59:03 2018 +0100

    another test


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

34670ef33cb6887012ec6b61981258a1bc0272ce
 .../{tlb-rollback-001.lvt => tlb-rollback-002.lvt} |  103 ++-------------
 base/testfiles/tlb-rollback-002.tlg                |  134 ++++++++++++++++++++
 2 files changed, 142 insertions(+), 95 deletions(-)

diff --git a/base/testfiles/tlb-rollback-001.lvt b/base/testfiles/tlb-rollback-002.lvt
similarity index 50%
copy from base/testfiles/tlb-rollback-001.lvt
copy to base/testfiles/tlb-rollback-002.lvt
index 2263868..4cbb232 100644
--- a/base/testfiles/tlb-rollback-001.lvt
+++ b/base/testfiles/tlb-rollback-002.lvt
@@ -3,6 +3,7 @@
 %
 %  we pretend our package is partly in the future (as we have 2018/02 right now)
 %
+%  in this test we request a latexrelease that doesn't know about versions ...  
 %
 % A few test packages up front:
 %
@@ -56,120 +57,32 @@
 
 \documentclass{article}
 
-\usepackage{alltt}               % a simple package load
-\usepackage{ifthen}[2000/01/01]  % one with mindate
-\usepackage{makeidx}[2050/01/01] % one with strange mindate
 
 \def\ForgetAboutTestpkg{%
   \expandafter\let\csname ver at testpkg.sty\endcsname\relax
 }
 
-%%% TESTS %%%%
-
-% no local rollback
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}
-
-% mindate request (select current version)
-\ForgetAboutTestpkg
-\RequirePackage[dvips]{testpkg}[2018/05/05]
-
-% conflict with latexrelease later on  (select current version)
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[2019-01-01]
-
-% ... in future (warning)
-\ForgetAboutTestpkg
-\RequirePackage[dvips]{testpkg}[2020/05/05]
-
-% earlier than the first release!
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2011/03/01]
-
-% earlier than the second release
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2014-03-01]
-
-% exact
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2018-10-01]
-
-% a few days off
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2018-10-02]
-
-% kind of current
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2019-07-10]
-
-
-% named request old
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=v2]
-
-% name request current
-\ForgetAboutTestpkg
-\usepackage[]{testpkg}[=v3]
-
-% ... does not exit
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=v4]
-
-
-% now again with latexrelease set
-
 \OMIT
-\RequirePackage[2018-12-24]{latexrelease}
+\RequirePackage[2016-01-01]{latexrelease}
 \TIMO
 
+%%% TESTS %%%%
+
 % no local rollback
 \ForgetAboutTestpkg
 \usepackage[dvips]{testpkg}
 
-% mindate request
-\ForgetAboutTestpkg
-\RequirePackage[dvips]{testpkg}[2018/05/05]
-
-% conflict with latexrelease later  on
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[2019-01-01]
-
-% ... in future
+% mindate request (conflict with latexrelease)
 \ForgetAboutTestpkg
-\RequirePackage[dvips]{testpkg}[2020/05/05]
+\RequirePackage[dvips]{testpkg}[2018-05-05]
 
-% earlier than the first release!
+% later rollback for this package
 \ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2011/03/01]
-
-% earlier than the second release
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2014-03-01]
-
-% exact
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2018-10-01]
-
-% a few days off
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2018-10-02]
-
-% kind of current
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=2019-07-10]
-
-
-% named request old
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=v2]
+\RequirePackage[dvips]{testpkg}[=2018-11-05]
 
 % name request current
 \ForgetAboutTestpkg
 \usepackage[]{testpkg}[=v3]
 
-% ... does not exit
-\ForgetAboutTestpkg
-\usepackage[dvips]{testpkg}[=v4]
-
 \END
 
diff --git a/base/testfiles/tlb-rollback-002.tlg b/base/testfiles/tlb-rollback-002.tlg
new file mode 100644
index 0000000..7c6623d
--- /dev/null
+++ b/base/testfiles/tlb-rollback-002.tlg
@@ -0,0 +1,134 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+--- File loaded request (\usepackage or ...)
+    1: article
+    2: 
+    3: 
+    4: cls
+(article.cls
+(size10.clo
+)
+\c at part=\count...
+\c at section=\count...
+\c at subsection=\count...
+\c at subsubsection=\count...
+\c at paragraph=\count...
+\c at subparagraph=\count...
+\c at figure=\count...
+\c at table=\count...
+\abovecaptionskip=\skip...
+\belowcaptionskip=\skip...
+\bibindent=\dimen...
+)
+--- File loaded request (\usepackage or ...)
+    1: testpkg
+    2: dvips
+    3: 
+    4: sty
+(testpkg.sty
+---\DeclareOldRelease:
+    1: v1
+    2: 2014-01-01
+    3: testpkg-2014-01-01
+New candidate: testpkg-2014-01-01
+---\DeclareOldRelease:
+    1: v2
+    2: 2018-10-01
+    3: testpkg-2018-10-01
+Result: use testpkg-2014-01-01
+Rollback for package 'testpkg' requested -> date 2016-01-01.
+         Best approximation is the release introduced on 2014-01-01.
+(testpkg-2014-01-01.sty
+Package: testpkg 2014-01-01 v1.2 test package
+ -> option dvips executed
+This is testpkg 2014-01-01!
+))
+--- File loaded request (\usepackage or ...)
+    1: testpkg
+    2: dvips
+    3: 2018-05-05
+    4: sty
+! LaTeX Error: Suspicious rollback/min-date date given.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\RequirePackage[dvips]{testpkg}[2018-05-05]
+There is a minimal date of 2018-05-05 specified for package 'testpkg'.
+But this is in conflict with a rollback request to 2016-01-01, so something
+is wrong here. Continue and I ignore the minimal date request.
+(testpkg.sty
+---\DeclareOldRelease:
+    1: v1
+    2: 2014-01-01
+    3: testpkg-2014-01-01
+New candidate: testpkg-2014-01-01
+---\DeclareOldRelease:
+    1: v2
+    2: 2018-10-01
+    3: testpkg-2018-10-01
+Result: use testpkg-2014-01-01
+Rollback for package 'testpkg' requested -> date 2016-01-01.
+         Best approximation is the release introduced on 2014-01-01.
+(testpkg-2014-01-01.sty
+Package: testpkg 2014-01-01 v1.2 test package
+ -> option dvips executed
+This is testpkg 2014-01-01!
+))
+LaTeX Warning: You have requested, on input line ..., version
+               `2018-05-05' of package testpkg,
+               but only version
+               `2014-01-01 v1.2 test package'
+               is available.
+--- File loaded request (\usepackage or ...)
+    1: testpkg
+    2: dvips
+    3: =2018-11-05
+    4: sty
+(testpkg.sty
+---\DeclareOldRelease:
+    1: v1
+    2: 2014-01-01
+    3: testpkg-2014-01-01
+New candidate: testpkg-2014-01-01
+---\DeclareOldRelease:
+    1: v2
+    2: 2018-10-01
+    3: testpkg-2018-10-01
+New candidate: testpkg-2018-10-01
+---DeclareCurrentRelease
+ 1: v3
+ 2: 2019-07-01
+Result: use testpkg-2018-10-01
+Rollback for package 'testpkg' requested -> date 2018-11-05.
+         Best approximation is the release introduced on 2018-10-01.
+(testpkg-2018-10-01.sty
+Package: testpkg 2018-10-01 v2.5 test package
+ -> option dvips executed
+This is testpkg 2018-10-01!
+))
+--- File loaded request (\usepackage or ...)
+    1: testpkg
+    2: 
+    3: =v3
+    4: sty
+(testpkg.sty
+---\DeclareOldRelease:
+    1: v1
+    2: 2014-01-01
+    3: testpkg-2014-01-01
+Label doesn't match
+---\DeclareOldRelease:
+    1: v2
+    2: 2018-10-01
+    3: testpkg-2018-10-01
+Label doesn't match
+---DeclareCurrentRelease
+ 1: v3
+ 2: 2019-07-01
+Result: use current version
+Rollback for package 'testpkg' requested -> version 'v3'.
+         This corresponds to the release introduced on 2019-07-01.
+Package: testpkg 2019-07-21 v3.5 test package
+ -> option dvips executed
+This is the current testpkg! 
+)





More information about the latex3-commits mailing list