diff options
author | Norbert Preining <norbert@preining.info> | 2019-11-02 03:01:48 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-11-02 03:01:48 +0000 |
commit | 3479a92321ed7fe7e2133d3daec2d4f5fd53fbc6 (patch) | |
tree | f81c77e1742124279f68e41484d9e53ad40248ff /macros/latex/contrib/l3build/l3build-check.lua | |
parent | 61b8d58232b999b6cc966aee9152fb86bbb759cd (diff) |
CTAN sync 201911020301
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-check.lua')
-rw-r--r-- | macros/latex/contrib/l3build/l3build-check.lua | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/macros/latex/contrib/l3build/l3build-check.lua b/macros/latex/contrib/l3build/l3build-check.lua index e2cdd655bf..ea550327eb 100644 --- a/macros/latex/contrib/l3build/l3build-check.lua +++ b/macros/latex/contrib/l3build/l3build-check.lua @@ -215,12 +215,14 @@ local function normalize_log(content,engine,errlevels) if match(line, "^> \\box%d+=$") or match(line, "^> \\box%d+=(void)$") then line = gsub(line, "%d+=", "...=") end - -- Remove 'normal' direction information on boxes with (u)pTeX - line = gsub(line, ",? yoko direction,?", "") - line = gsub(line, ",? yoko%(math%) direction,?", "") - -- Remove '\displace 0.0' lines in (u)pTeX - if match(line,"^%.*\\displace 0%.0$") then - return "" + if not match(stdengine,"^e?u?ptex$") then + -- Remove 'normal' direction information on boxes with (u)pTeX + line = gsub(line, ",? yoko direction,?", "") + line = gsub(line, ",? yoko%(math%) direction,?", "") + -- Remove '\displace 0.0' lines in (u)pTeX + if match(line,"^%.*\\displace 0%.0$") then + return "" + end end -- Remove the \special line that in DVI mode keeps PDFs comparable if match(line, "^%.*\\special%{pdf: docinfo << /Creator") then @@ -249,6 +251,9 @@ local function normalize_log(content,engine,errlevels) line = gsub(line, "save cache:", "load cache:") -- A tidy-up to keep LuaTeX and other engines in sync line = gsub(line, utf8_char(127), "^^?") + -- Remove lua data reference ids + line = gsub(line, "<lua data reference [0-9]+>", + "<lua data reference ...>") -- Unicode engines display chars in the upper half of the 8-bit range: -- tidy up to match pdfTeX if an ASCII engine is in use if next(asciiengines) then @@ -749,7 +754,7 @@ function runtest(name, engine, hide, ext, pdfmode, breakout) .. setup(lvtfile) .. (hide and (" > " .. os_null) or "") .. os_concat .. - runtest_tasks(jobname(lvtfile)) + runtest_tasks(jobname(lvtfile),i) ) -- Break the loop if the result is stable if breakout and i < checkruns then @@ -796,7 +801,7 @@ function runtest(name, engine, hide, ext, pdfmode, breakout) end -- A hook to allow additional tasks to run for the tests -runtest_tasks = runtest_tasks or function(name) +runtest_tasks = runtest_tasks or function(name,run) return "" end @@ -958,6 +963,10 @@ end function save(names) checkinit() local engines = options["engine"] or {stdengine} + if names == nil then + print("Arguments are required for the save command") + return 1 + end for _,name in pairs(names) do if testexists(name) then for _,engine in pairs(engines) do @@ -989,7 +998,7 @@ function save(names) .. lveext .. " file of the same name") return 1 else - print('Test "'.. name .. '"not found') + print('Test "' .. name .. '" not found') return 1 end end |