[latex3-commits] [git/LaTeX3-latex3-l3build] master: Add "dynamicfiles" support (f4d410c)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 10 18:06:16 CEST 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/f4d410cc132a0b272d1124c863dc5a7f227e01f8

>---------------------------------------------------------------

commit f4d410cc132a0b272d1124c863dc5a7f227e01f8
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 10 17:06:16 2018 +0100

    Add "dynamicfiles" support
    
    This shows up when testing e.g. filecontents
    (See tlb-utf8-filecontents-1 in latex2e/base).


>---------------------------------------------------------------

f4d410cc132a0b272d1124c863dc5a7f227e01f8
 l3build-check.lua     |    4 ++++
 l3build-variables.lua |    1 +
 l3build.dtx           |    1 +
 3 files changed, 6 insertions(+)

diff --git a/l3build-check.lua b/l3build-check.lua
index a51dafd..442bd91 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -690,6 +690,10 @@ function runtest(name, engine, hide, ext, makepdf, breakout)
       break
     end
   end
+  -- Clean out any dynamic files
+  for _,filetype in pairs(dynamicfiles) do
+    rm(testdir,filetype)
+  end
   local errlevels = {}
   for i = 1, checkruns do
     errlevels[i] = run(
diff --git a/l3build-variables.lua b/l3build-variables.lua
index 4dbe066..38be1c7 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -81,6 +81,7 @@ checksuppfiles     = checksuppfiles     or { }
 cleanfiles         = cleanfiles         or {"*.log", "*.pdf", "*.zip"}
 demofiles          = demofiles          or { }
 docfiles           = docfiles           or { }
+dynamicfiles       = dynamicfiles       or { }
 excludefiles       = excludefiles       or {"*~"}
 installfiles       = installfiles       or {"*.sty","*.cls"}
 makeindexfiles     = makeindexfiles     or {"*.ist"}
diff --git a/l3build.dtx b/l3build.dtx
index d972064..3d62668 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -84,6 +84,7 @@
 \luavarset{cleanfiles}        {\{"*.log", "*.pdf", "*.zip"\}}{Files to delete when cleaning}
 \luavarset{demofiles}         {\{\}}{Files which show how to use a module}
 \luavarset{docfiles}          {\{\}}{Files which are part of the documentation but should not be typeset}
+\luavarset{dynamicfiles}      {\{ \}}{Secondary files to cleared before each test is run}
 \luavarset{excludefiles}      {\{"*\string~"\}}{Files to ignore entirely (default for Emacs backup files)}
 \luavarset{installfiles}      {\{"*.sty","*.cls"\}}{Files to install to the \texttt{text} area of the \texttt{texmf} tree}
 \luavarset{makeindexfiles}    {\{"*.ist"\}}{MakeIndex files to be included in a TDS-style zip}





More information about the latex3-commits mailing list