aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-12-15 21:21:50 +0000
committerGitHub <noreply@github.com>2020-12-15 21:21:50 +0000
commitd32d0d6b53dc84e35f6b26fbcfaf23a37ab6b002 (patch)
tree437d20b8b08459dcb14289bf185ef2a2c003ecc1 /docs
parentc9685ac5612eb040961efe5dc60a91fc5aa686b4 (diff)
parent79e2c52a15e896e46ff3cfa3ec16fbf3f132ee01 (diff)
downloadmeson-d32d0d6b53dc84e35f6b26fbcfaf23a37ab6b002.zip
meson-d32d0d6b53dc84e35f6b26fbcfaf23a37ab6b002.tar.gz
meson-d32d0d6b53dc84e35f6b26fbcfaf23a37ab6b002.tar.bz2
Merge pull request #7902 from bonzini/mtest-build-depends-only
mtest: only build what is needed for the tests
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/meson_test_depends.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/snippets/meson_test_depends.md b/docs/markdown/snippets/meson_test_depends.md
new file mode 100644
index 0000000..09d78f1
--- /dev/null
+++ b/docs/markdown/snippets/meson_test_depends.md
@@ -0,0 +1,17 @@
+## `meson test` only rebuilds test dependencies
+
+Until now, `meson test` rebuilt the whole project independent of the
+requested tests and their dependencies. With this release, `meson test`
+will only rebuild what is needed for the tests or suites that will be run.
+This feature can be used, for example, to speed up bisecting regressions
+using commands like the following:
+
+ git bisect start <broken commit> <working commit>
+ git bisect run meson test <failing test name>
+
+This would find the broken commit automatically while at each step
+rebuilding only those pieces of code needed to run the test.
+
+However, this change could cause failures if dependencies are not
+specified correctly in `meson.build`.
+