mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +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 += [
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user