[latex3-commits] [git/l3build] config: Remove -t|--testfiledir (ab3db1c)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Dec 7 08:43:31 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : config
Link       : https://github.com/latex3/l3build/commit/ab3db1c04bac4a841653d01ba996154e86b0b695

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

commit ab3db1c04bac4a841653d01ba996154e86b0b695
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Dec 7 07:40:42 2017 +0000

    Remove -t|--testfiledir


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

ab3db1c04bac4a841653d01ba996154e86b0b695
 l3build.dtx |   29 -----------------------------
 l3build.lua |   19 -------------------
 2 files changed, 48 deletions(-)

diff --git a/l3build.dtx b/l3build.dtx
index d5adf1a..1ac32d1 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -615,35 +615,6 @@
 %
 % \luavartypeset
 %
-% \subsection{Multiple sets of tests}
-%
-% In most cases, a single set of tests will be appropriate for the module, with
-% a common set of configuration settings applying. However, there are situations
-% where you may need entirely independent sets of tests which have different
-% setting values, for example using different formats or where the entire set
-% will be engine-dependent. To support this, \pkg{l3build} offers the |--testfiledir|
-% (|-t|) command line option. When this is given with a directory argument it
-% overrides the \var{testfiledir} variable. Moreover, before the tests are run,
-% \pkg{l3build} will read |config.lua| within the directory (if available). This
-% should comprise a list of settings which apply to the tests in place of those in
-% the main build script.
-%
-% For example, for the core \LaTeXe{} tests the main test files are contained
-% in a directory |testfiles| and have \var{checksearch} set \var{false}. To test
-% font loading for \XeTeX{} and \LuaTeX{} there are a second set of tests in
-% |testfiles-TU| which use the short |config.lua| file shown in
-% Figure~\ref{fig:testfiledir}. These additional tests are then run using
-% |texlua build.lua check --testfiledir=testfiles-TU|.
-% \begin{figure}
-%   \begin{lstlisting}[frame=single,language={[5.2]Lua},gobble = 6]
-%     -- Special config for these tests
-%     checksearch  = true
-%     checkengines = {"xetex","luatex"}
-%   \end{lstlisting}
-% \caption{The build script for the \pkg{xparse} module.}
-% \label{fig:testfiledir}
-% \end{figure}
-%
 % \subsection{Dependencies}
 %
 % If you have multiple packages that are developed separately but still interact in some way, it's often desirable to integrate them when performing regression tests.
diff --git a/l3build.lua b/l3build.lua
index ba47427..faa2dcb 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -291,12 +291,6 @@ local option_list =
         short = "r",
         type  = "boolean"
       },
-    testfiledir =
-      {
-        desc  = "Selects the specified testfile location",
-        short = "t",
-        type  = "table"
-      },
     version =
       {
         desc  = "Sets the version to insert into sources",
@@ -2487,18 +2481,5 @@ end
 -- Allow main function to be disabled 'higher up'
 main = main or stdmain
 
--- Pick up and read any per-run testfiledir
-if options["testfiledir"] then
-  if #options["testfiledir"] == 1 then
-    testfiledir = options["testfiledir"][1]
-    if fileexists(testfiledir .. "/config.lua") then
-      dofile(testfiledir .. "/config.lua")
-    end
-  else
-    print("Cannot use more than one testfile dir at a time!")
-    return 1
-  end
-end
-
 -- Call the main function
 main(options["target"], options["files"])





More information about the latex3-commits mailing list