From 3d816c9e1f0af6dde3b18169b4abeaae61d4bf83 Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Tue, 15 Oct 2024 14:08:59 +0100 Subject: [PATCH] Add --dev switch --- CHANGELOG.md | 3 +++ l3build-arguments.lua | 5 +++++ l3build.dtx | 1 + l3build.lua | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1355a643..3a45a60b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers. ## [Unreleased] +### Added +- `--dev` switch to run tests using development format + ## [2024-10-08] ### Fixed diff --git a/l3build-arguments.lua b/l3build-arguments.lua index ac34f90f..e1c189db 100644 --- a/l3build-arguments.lua +++ b/l3build-arguments.lua @@ -53,6 +53,11 @@ option_list = desc = "Runs target in debug mode", type = "boolean" }, + dev = + { + desc = "Use the development LaTeX format", + type = "boolean" + }, dirty = { desc = "Skips cleaning up the test area", diff --git a/l3build.dtx b/l3build.dtx index 140c9516..ec286866 100644 --- a/l3build.dtx +++ b/l3build.dtx @@ -371,6 +371,7 @@ % \item |--config| (|-c|) Configuration(s) to use for testing % \item |--date| (|-d|) Date to use when tagging data % \item |--debug| Runs the target in debug mode (not supported by all targets) +% \item |--dev| Runs \LaTeX{} checks using the development format % \item |--dirty| Skips cleaning up of the test area % \item |--dry-run| Runs the \texttt{install} target but does not copy % any files: simply lists those that would be installed diff --git a/l3build.lua b/l3build.lua index 675806dd..7547758f 100644 --- a/l3build.lua +++ b/l3build.lua @@ -131,6 +131,10 @@ if forcedocepoch then typesetopts = typesetopts .. " -utc" end end +-- Allow for LaTeX "dev" release +if options["dev"] and checkformat == "latex" then + checkformat = "latex-dev" +end -- -- Deal with multiple configs for tests