aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-10-07 13:13:54 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-05-18 13:53:58 -0700
commitaf787874a8e4eab8222382128ccfb5549b31c801 (patch)
tree6f67ec9f0a3f6b48681d7f981e83732266916456 /docs/markdown/snippets
parent0ec94ca0629415d4b555e8ef38a5093a65e0539e (diff)
downloadmeson-af787874a8e4eab8222382128ccfb5549b31c801.zip
meson-af787874a8e4eab8222382128ccfb5549b31c801.tar.gz
meson-af787874a8e4eab8222382128ccfb5549b31c801.tar.bz2
pass exe_wrapper to test scripts through the environment
This adds a new MESON_EXE_WRAPPER environment variable containing the string form of the exe_wrapper, if there is an exe_wrapper defined. Fixes #4427
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/exe_wrapper_for_cross_built_tests.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/exe_wrapper_for_cross_built_tests.md b/docs/markdown/snippets/exe_wrapper_for_cross_built_tests.md
new file mode 100644
index 0000000..ebdd8a7
--- /dev/null
+++ b/docs/markdown/snippets/exe_wrapper_for_cross_built_tests.md
@@ -0,0 +1,9 @@
+## Test scripts are given the exe wrapper if needed
+
+Meson will now set the `MESON_EXE_WRAPPER` as the properly wrapped and joined
+representation. For Unix-like OSes this means python's shelx.join, on Windows
+an implementation that attempts to properly quote windows argument is used.
+This allow wrapper scripts to run test binaries, instead of just skipping.
+
+for example, if the wrapper is `['emulator', '--script']`, it will be passed
+as `MESON_EXE_WRAPPER="emulator --script"`.