[latex3-commits] [git/LaTeX3-latex3-l3build] master: Use a dedicated directory for each test config (a09bdde)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Sep 22 10:15:54 CEST 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/a09bdde0d2e631f061122d6b1b8927a04ffb09b1
>---------------------------------------------------------------
commit a09bdde0d2e631f061122d6b1b8927a04ffb09b1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Sep 22 09:15:54 2018 +0100
Use a dedicated directory for each test config
This means we hold on to all .diff files.
>---------------------------------------------------------------
a09bdde0d2e631f061122d6b1b8927a04ffb09b1
CHANGELOG.md | 1 +
l3build.lua | 12 ++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d142758..b3ee91a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
## Changed
- Entries in `scriptfiles` are excluded from `installfiles`
+- Use a per-config directory for running tests
## [2018-09-21]
diff --git a/l3build.lua b/l3build.lua
index d97fecd..de6d0a9 100755
--- a/l3build.lua
+++ b/l3build.lua
@@ -137,9 +137,16 @@ if options["target"] == "check" then
end
end
if next(failed) then
- print(" Failed tests for configs:")
for _,config in ipairs(failed) do
- print(" - " .. config)
+ print("Failed tests for configuration " .. config .. ":")
+ print("\n Check failed with difference files")
+ if failed ~= "build" then
+ local testdir = testdir .. "-" .. failed
+ end
+ for _,i in ipairs(filelist(testdir,"*" .. os_diffext)) do
+ print(" - " .. testdir .. "/" .. i)
+ end
+ print("")
end
exit(1)
else
@@ -154,6 +161,7 @@ if #checkconfigs == 1 and
local config = "./" .. checkconfigs[1] .. ".lua"
if fileexists(config) then
dofile(config)
+ testdir = testdir .. "-" .. checkconfigs[1]
else
print("Error: Cannot find configuration " .. checkconfigs[1])
exit(1)
More information about the latex3-commits
mailing list