[latex3-commits] [git/l3build] master: Remove -t|--testfiledir (d2d88bf)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Dec 12 10:05:33 CET 2017


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

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

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

    Remove -t|--testfiledir


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

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

diff --git a/l3build.dtx b/l3build.dtx
index b4e9fc9..a9dc905 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -617,35 +617,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 92c0022..5edd9f3 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -294,12 +294,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",
@@ -2528,18 +2522,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