summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/test_args_accepts_external_program.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/test_args_accepts_external_program.md')
-rw-r--r--docs/markdown/snippets/test_args_accepts_external_program.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/test_args_accepts_external_program.md b/docs/markdown/snippets/test_args_accepts_external_program.md
new file mode 100644
index 000000000..d730ad5f3
--- /dev/null
+++ b/docs/markdown/snippets/test_args_accepts_external_program.md
@@ -0,0 +1,10 @@
+## test() and benchmark() functions accept new types
+
+`test` and `benchmark` now accept ExternalPrograms (as returned by
+`find_program`) in the `args` list. This can be useful where the test
+executable is a wrapper which invokes another program given as an
+argument.
+
+```meson
+test('some_test', find_program('sudo'), args : [ find_program('sh'), 'script.sh' ])
+```