[PATCH 07/12] tests: build driver modules before virdrivermoduletest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The virdrivermoduletest will attempt to dlopen() each driver module,
so they must be build before the test can run.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/meson.build   | 3 +++
 tests/meson.build | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/meson.build b/src/meson.build
index 17e6feafba..fead0de998 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -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
 
 
diff --git a/tests/meson.build b/tests/meson.build
index 68fe00d0c1..76c05b9fed 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -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
 
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux