mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
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 <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
0dc278dd02
commit
a76ffee365
@ -720,17 +720,23 @@ if conf.has('WITH_LIBVIRTD')
|
|||||||
)
|
)
|
||||||
|
|
||||||
test_scripts += [
|
test_scripts += [
|
||||||
'virsh-auth',
|
{ 'name': 'virsh-auth', 'depends': [ virsh_prog ] }
|
||||||
]
|
]
|
||||||
|
|
||||||
if conf.has('WITH_SECDRIVER_APPARMOR')
|
if conf.has('WITH_SECDRIVER_APPARMOR')
|
||||||
test_scripts += 'virt-aa-helper-test'
|
test_scripts += { 'name': 'virt-aa-helper-test' }
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach name : test_scripts
|
foreach data : test_scripts
|
||||||
script = find_program(name)
|
script = find_program(data['name'])
|
||||||
test(name, script, env: tests_env, suite: 'script')
|
test(data['name'],
|
||||||
|
script,
|
||||||
|
env: tests_env,
|
||||||
|
depends: [
|
||||||
|
data.get('depends', []),
|
||||||
|
],
|
||||||
|
suite: 'script')
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
testenv = runutf8
|
testenv = runutf8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user