From: Daniel P. Berrangé Date: Tue, 7 May 2024 12:16:26 +0000 (+0100) Subject: tests: build 'virsh' before running virsh-auth test X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a76ffee3657a449b7be06b9e89b33bd2246cc8e8;p=libvirt.git tests: build 'virsh' before running virsh-auth test The 'virsh-auth' test needs to be able to invoke the 'virsh' binary Reviewed-by: Peter Krempa Signed-off-by: Daniel P. Berrangé --- diff --git a/tests/meson.build b/tests/meson.build index 73b87be2a0..f466c4ed2d 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -720,17 +720,23 @@ if conf.has('WITH_LIBVIRTD') ) test_scripts += [ - 'virsh-auth', + { 'name': 'virsh-auth', 'depends': [ virsh_prog ] } ] if conf.has('WITH_SECDRIVER_APPARMOR') - test_scripts += 'virt-aa-helper-test' + test_scripts += { 'name': 'virt-aa-helper-test' } endif endif -foreach name : test_scripts - script = find_program(name) - test(name, script, env: tests_env, suite: 'script') +foreach data : test_scripts + script = find_program(data['name']) + test(data['name'], + script, + env: tests_env, + depends: [ + data.get('depends', []), + ], + suite: 'script') endforeach testenv = runutf8