[latex3-commits] [git/LaTeX3-latex3-l3build] master: Store PDFs in PDF-based tests (8b0cc23)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Jun 4 19:34:56 CEST 2020
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/8b0cc23d92cdf9dc65cf41dc13771801a4c744dc
>---------------------------------------------------------------
commit 8b0cc23d92cdf9dc65cf41dc13771801a4c744dc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jun 4 18:34:56 2020 +0100
Store PDFs in PDF-based tests
>---------------------------------------------------------------
8b0cc23d92cdf9dc65cf41dc13771801a4c744dc
CHANGELOG.md | 4 ++++
l3build-check.lua | 2 ++
l3build-variables.lua | 1 +
l3build.dtx | 1 +
4 files changed, 8 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6750949..58a8320 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Added
+- Store 'raw' PDF files when testing using PDFs, to allow further checks
+ with e.g. PDF validators
+
## [2020-03-25]
### Changed
diff --git a/l3build-check.lua b/l3build-check.lua
index 9f83b93..d80bb25 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -57,6 +57,7 @@ local remove = os.remove
function checkinit()
if not options["dirty"] then
cleandir(testdir)
+ cleandir(resultdir)
end
depinstall(checkdeps)
-- Copy dependencies to the test directory itself: this makes the paths
@@ -792,6 +793,7 @@ function runtest(name, engine, hide, ext, pdfmode, breakout)
dvitopdf(name, testdir, engine, hide)
end
if pdfmode then
+ cp(name .. "." .. engine .. pdfext,testdir,resultdir)
rewrite(pdffile,npffile,normalize_pdf)
else
rewrite(logfile,newfile,normalize_log,engine,errlevels)
diff --git a/l3build-variables.lua b/l3build-variables.lua
index 432bfe6..87ce01d 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -53,6 +53,7 @@ texmfdir = texmfdir or maindir .. "/texmf"
builddir = builddir or maindir .. "/build"
distribdir = distribdir or builddir .. "/distrib"
localdir = localdir or builddir .. "/local"
+resultdir = resultdir or builddir .. "/result"
testdir = testdir or builddir .. "/test"
typesetdir = typesetdir or builddir .. "/doc"
unpackdir = unpackdir or builddir .. "/unpacked"
diff --git a/l3build.dtx b/l3build.dtx
index c2fdb1c..d693bcb 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -69,6 +69,7 @@
\luavarset{builddir} {maindir .. "/build"} {Directory for building and testing}
\luavarset{distribdir}{builddir .. "/distrib"}{Directory for generating distribution structure}
\luavarset{localdir} {builddir .. "/local"} {Directory for extracted files in \enquote{sandboxed} \TeX{} runs}
+\luavarset{resultdir} {builddir .. "/result"} {Directory for PDF files when using PDF-based tests}
\luavarset{testdir} {builddir .. "/test"} {Directory for running tests}
\luavarset{typesetdir}{builddir .. "/doc"} {Directory for building documentation}
\luavarset{unpackdir} {builddir .. "/unpacked"}{Directory for unpacking sources}
More information about the latex3-commits
mailing list.