[latex3-commits] [l3svn] r7117 - Very minimal test that l3benchmark loads in pdfTeX
noreply at latex-project.org
noreply at latex-project.org
Sun Apr 16 03:52:18 CEST 2017
Author: bruno
Date: 2017-04-16 03:52:18 +0200 (Sun, 16 Apr 2017)
New Revision: 7117
Added:
trunk/l3trial/l3benchmark/testfiles/
trunk/l3trial/l3benchmark/testfiles/m3benchmark001.lvt
trunk/l3trial/l3benchmark/testfiles/m3benchmark001.ptex.tlg
trunk/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
trunk/l3trial/l3benchmark/testfiles/m3benchmark001.uptex.tlg
trunk/l3trial/l3benchmark/testfiles/m3benchmark001.xetex.tlg
Modified:
trunk/l3trial/l3benchmark/build.lua
trunk/l3trial/l3benchmark/l3benchmark.dtx
Log:
Very minimal test that l3benchmark loads in pdfTeX
It was using a deprecated command. I didn't want to decide on
whether to put Heiko's pdftexcmds.sty in our test suite so I
simply skipped LuaTeX testing
Modified: trunk/l3trial/l3benchmark/build.lua
===================================================================
--- trunk/l3trial/l3benchmark/build.lua 2017-04-15 21:07:02 UTC (rev 7116)
+++ trunk/l3trial/l3benchmark/build.lua 2017-04-16 01:52:18 UTC (rev 7117)
@@ -11,7 +11,7 @@
maindir = "../.."
-- Non-standard settings
-testfiledir = ""
+checkengines = {"pdftex", "xetex", "ptex", "uptex"}
-- Load the common build code: this is the one place that a path needs to be
-- hard-coded
Modified: trunk/l3trial/l3benchmark/l3benchmark.dtx
===================================================================
--- trunk/l3trial/l3benchmark/l3benchmark.dtx 2017-04-15 21:07:02 UTC (rev 7116)
+++ trunk/l3trial/l3benchmark/l3benchmark.dtx 2017-04-16 01:52:18 UTC (rev 7117)
@@ -147,7 +147,9 @@
% read.
% \begin{macrocode}
\bool_new:N \l_benchmark_time_fail_bool
-\sys_if_engine_xetex:T
+\bool_lazy_or:nnF
+ { \sys_if_engine_pdftex_p: }
+ { \sys_if_engine_luatex_p: }
{
\cs_if_exist:NTF \shellescape
{
@@ -161,9 +163,10 @@
\msg_new:nnnn { benchmark } { no-time }
{ The~l3benchmark~package~failed~to~access~a~clock. }
{
- The~XeTeX~engine~provides~no~way~to~access~the~system~time,~
+ The~XeTeX,~pTeX,~and~upTeX~engines~provide~
+ no~way~to~access~the~system~time,~
hence~making~benchmarking~impossible~without~shell-escape.~
- Please~use~pdfTeX,~LuaTeX,~or~call~XeTeX~with~the~
+ Please~use~pdfTeX,~LuaTeX,~or~call~other~engines~with~the~
--shell-escape~option.
}
\cs_new_protected:Npn \clock_get:N #1
@@ -245,8 +248,8 @@
% \begin{macrocode}
\sys_if_engine_xetex:T
{
- \tl_const:Nx \c_@@_lua_file_tl { \c_job_name_tl . lua }
- \tl_const:Nx \c_@@_time_file_tl { \c_job_name_tl . timestamp }
+ \tl_const:Nx \c_@@_lua_file_tl { \c_sys_jobname_str . lua }
+ \tl_const:Nx \c_@@_time_file_tl { \c_sys_jobname_str . timestamp }
}
% \end{macrocode}
% \end{variable}
Added: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.lvt
===================================================================
--- trunk/l3trial/l3benchmark/testfiles/m3benchmark001.lvt (rev 0)
+++ trunk/l3trial/l3benchmark/testfiles/m3benchmark001.lvt 2017-04-16 01:52:18 UTC (rev 7117)
@@ -0,0 +1,15 @@
+%
+% Copyright (C) 2017 The LaTeX3 Project
+%
+
+\documentclass{minimal}
+\input{regression-test}
+
+% Test the package loads properly. To avoid having to regenerate the
+% file whenever expl3 is changed, preload it.
+
+\RequirePackage{expl3}
+
+\START
+\RequirePackage{l3benchmark}
+\END
Property changes on: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.lvt
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.ptex.tlg
===================================================================
--- trunk/l3trial/l3benchmark/testfiles/m3benchmark001.ptex.tlg (rev 0)
+++ trunk/l3trial/l3benchmark/testfiles/m3benchmark001.ptex.tlg 2017-04-16 01:52:18 UTC (rev 7117)
@@ -0,0 +1,18 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+(l3benchmark.sty
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+! Critical benchmark error: "no-time"
+!
+! The l3benchmark package failed to access a clock.
+!
+! See the benchmark documentation for further information.
+!
+! For immediate help type H <return>.
+!...............................................
+l. ... }
+|'''''''''''''''''''''''''''''''''''''''''''''''
+| Reading the current file 'expl3' will stop.
+|...............................................
+)
Property changes on: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.ptex.tlg
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
===================================================================
--- trunk/l3trial/l3benchmark/testfiles/m3benchmark001.tlg (rev 0)
+++ trunk/l3trial/l3benchmark/testfiles/m3benchmark001.tlg 2017-04-16 01:52:18 UTC (rev 7117)
@@ -0,0 +1,5 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+(l3benchmark.sty
+\l__benchmark_repeat_int=\count148
+)
Property changes on: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.tlg
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.uptex.tlg
===================================================================
--- trunk/l3trial/l3benchmark/testfiles/m3benchmark001.uptex.tlg (rev 0)
+++ trunk/l3trial/l3benchmark/testfiles/m3benchmark001.uptex.tlg 2017-04-16 01:52:18 UTC (rev 7117)
@@ -0,0 +1,18 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+(l3benchmark.sty
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+! Critical benchmark error: "no-time"
+!
+! The l3benchmark package failed to access a clock.
+!
+! See the benchmark documentation for further information.
+!
+! For immediate help type H <return>.
+!...............................................
+l. ... }
+|'''''''''''''''''''''''''''''''''''''''''''''''
+| Reading the current file 'expl3' will stop.
+|...............................................
+)
Property changes on: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.uptex.tlg
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.xetex.tlg
===================================================================
--- trunk/l3trial/l3benchmark/testfiles/m3benchmark001.xetex.tlg (rev 0)
+++ trunk/l3trial/l3benchmark/testfiles/m3benchmark001.xetex.tlg 2017-04-16 01:52:18 UTC (rev 7117)
@@ -0,0 +1,18 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+(l3benchmark.sty
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+! Critical benchmark error: "no-time"
+!
+! The l3benchmark package failed to access a clock.
+!
+! See the benchmark documentation for further information.
+!
+! For immediate help type H <return>.
+!...............................................
+l. ... }
+|'''''''''''''''''''''''''''''''''''''''''''''''
+| Reading the current file 'expl3' will stop.
+|...............................................
+)
Property changes on: trunk/l3trial/l3benchmark/testfiles/m3benchmark001.xetex.tlg
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the latex3-commits
mailing list