mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: build driver modules before virdrivermoduletest
The virdrivermoduletest will attempt to dlopen() each driver module, so they must be build before the test can run. Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a76ffee365
commit
08bfb18736
@ -578,6 +578,8 @@ endif
|
||||
|
||||
# build libvirt shared modules
|
||||
|
||||
virt_module_deps = []
|
||||
|
||||
foreach module : virt_modules
|
||||
mod = shared_module(
|
||||
module['name'],
|
||||
@ -607,6 +609,7 @@ foreach module : virt_modules
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
set_variable('@0@_module'.format(module['name'].underscorify()), mod)
|
||||
virt_module_deps += mod
|
||||
endforeach
|
||||
|
||||
|
||||
|
@ -375,7 +375,7 @@ if conf.has('WITH_LIBVIRTD')
|
||||
tests += [
|
||||
{ 'name': 'eventtest', 'deps': [ thread_dep ] },
|
||||
{ 'name': 'virdriverconnvalidatetest' },
|
||||
{ 'name': 'virdrivermoduletest' },
|
||||
{ 'name': 'virdrivermoduletest', 'depends': virt_module_deps },
|
||||
]
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user