From 36898810305246554a1e0e8a046879cb7c9e6db3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 28 Aug 2021 20:36:53 +0000 Subject: l3build (28aug21) git-svn-id: svn://tug.org/texlive/trunk@60344 c570f23f-e606-0410-a88d-b1316a301751 --- .../texlive/linked_scripts/l3build/l3build.lua | 33 +++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'Build') diff --git a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua index 82994397648..51b7a493e31 100644 --- a/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua +++ b/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua @@ -25,7 +25,7 @@ for those people who are interested. --]] -- Version information -release_date = "2021-05-06" +release_date = "2021-08-28" -- File operations are aided by the LuaFileSystem module local lfs = require("lfs") @@ -43,6 +43,8 @@ local print = print local select = select local tonumber = tonumber local exit = os.exit +local open = io.open +local stdout = io.stdout -- l3build setup and functions kpse.set_program_name("kpsewhich") @@ -160,6 +162,35 @@ if options["target"] == "check" then end print("") end + if options["show-saves"] then + local savecmds, recheckcmds = "", "" + for _,config in ipairs(failed) do + local testdir = testdir + if config ~= "build" then + testdir = testdir .. "-" .. config + end + local f = open(testdir .. "/.savecommands") + if not f then + print("Error: Cannot find save commands for configuration " .. + config) + exit(2) + end + for line in f:lines() do + if line == "" then break end + savecmds = savecmds .. " " .. line .. "\n" + end + for line in f:lines() do + recheckcmds = recheckcmds .. " " .. line .. "\n" + end + f:close() + end + print"To regenerate the test files, run\n" + print(savecmds) + if recheckcmds ~= "" then + print"To detect engine specific differences, run after that\n" + print(recheckcmds) + end + end exit(1) else -- Avoid running the 'main' set of tests twice -- cgit v1.2.3