summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-02-27 08:21:13 +0100
committerEli Schwartz <eschwartz93@gmail.com>2025-02-27 15:25:05 -0500
commitd3c863997513be81c0c52ef209a57360b771d9e1 (patch)
tree65e5dde55954ea3645004d9b597d04d93b10bff7 /man
parent1412abc516e56b7d90f36fc75acb3e4b8c294e30 (diff)
downloadmeson-d3c863997513be81c0c52ef209a57360b771d9e1.tar.gz
mtest: add option to slice tests
Executing tests can take a very long time. As an example, the Git test suite on Windows takes around 4 hours to execute. The Git project has been working around the issue by splitting up CI jobs into multiple slices: one job creates the build artifacts, and then we spawn N test jobs with those artifacts, where each test job executes 1/Nth of the tests. This can be scripted rather easily by using `meson test --list`, selecting every Nth line, but there may be other projects that have a similar need. Wire up a new option "--slice i/n" to `meson test` that does implements this logic. Signed-off-by: Patrick Steinhardt <ps@pks.im>
Diffstat (limited to 'man')
-rw-r--r--man/meson.15
1 files changed, 4 insertions, 1 deletions
diff --git a/man/meson.1 b/man/meson.1
index 01b9abd89..deb320dbc 100644
--- a/man/meson.1
+++ b/man/meson.1
@@ -328,6 +328,9 @@ a multiplier to use for test timeout values (usually something like 100 for Valg
.TP
\fB\-\-setup\fR
use the specified test setup
+.Tp
+\fB\-\-slice SLICE/NUM_SLICES\fR
+Split tests into NUM_SLICES slices and execute slice number SLICE. (Since 1.8.0)
.SH The wrap command
@@ -410,7 +413,7 @@ Manage the packagefiles overlay
.B meson rewrite
modifies the project definition.
-
+
.B meson rewrite [
.I options
.B ] [