test: Allow for scripts that don't get installed

At the moment there aren't any like this, but it seems reasonable that
we might get some later.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-06-24 13:00:28 +01:00
parent fad7a62c39
commit c8ecf552c8

View file

@ -566,8 +566,9 @@ endif
foreach script: scripts
name = script.get('name')
exec = script.get('exec', script.get('name'))
install = script.get('install', true)
if install_tests
if install_tests and install
install_data(exec,
install_mode: 'rwxr-xr-x',
install_dir: test_exec_dir,