summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/test_args_accepts_external_program.md
blob: d730ad5f3be5992fe608f31a72e2ba1a546b6792 (plain)
1
2
3
4
5
6
7
8
9
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' ])
```