diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-18 00:40:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 00:40:52 +0300 |
commit | 628f9107609d883d4094a183194d1fae0171f719 (patch) | |
tree | 1fe87dcd031632e91aa3f0767d080fcc25d70499 /docs/markdown | |
parent | 8d5c33f92f610bc401bc8e60574b787ddeb235eb (diff) | |
parent | 780d301c1c1233a5944b577f0a262e1756f52e04 (diff) | |
download | meson-628f9107609d883d4094a183194d1fae0171f719.zip meson-628f9107609d883d4094a183194d1fae0171f719.tar.gz meson-628f9107609d883d4094a183194d1fae0171f719.tar.bz2 |
Merge pull request #3314 from sarum9in/test_depends
Add test(depends) keyword parameter
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 7 | ||||
-rw-r--r-- | docs/markdown/snippets/test-depends.md | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 74e7ff2..32639b0 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1256,6 +1256,13 @@ Keyword arguments are the following: - `workdir` absolute path that will be used as the working directory for the test +- `depends` specifies that this test depends on the specified + target(s), even though it does not take any of them as a command + line argument. This is meant for cases where test finds those + targets internally, e.g. plugins or globbing. Those targets are built + before test is executed even if they have `build_by_default : false`. + Since 0.46.0 + Defined tests can be run in a backend-agnostic way by calling `meson test` inside the build dir, or by using backend-specific commands, such as `ninja test` or `msbuild RUN_TESTS.vcxproj`. diff --git a/docs/markdown/snippets/test-depends.md b/docs/markdown/snippets/test-depends.md new file mode 100644 index 0000000..2f4b6b0 --- /dev/null +++ b/docs/markdown/snippets/test-depends.md @@ -0,0 +1,5 @@ +## test now supports depends keyword parameter + +Build targets and custom targets can be listed in depends argument of test +function. These targets will be built before test is run even if they have +`build_by_default : false`. |