[libvirt PATCH 2/3] tests: Don't build virgdbusmock on Windows

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

 



All of the tests that use this mock (networkxml2firewalltest,
virsystemdtest, virpolkittest) are either no-ops on Windows, or
are not compiled at all on the target.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 tests/meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 6be806f4ae..fa3d5380d4 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -82,7 +82,6 @@ mock_libs = [
   { 'name': 'virdnsmasqmock' },
   { 'name': 'virfilecachemock' },
   { 'name': 'virfirewallmock' },
-  { 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] },
   { 'name': 'virhostcpumock' },
   { 'name': 'virhostdevmock' },
   { 'name': 'virnetdaemonmock' },
@@ -104,6 +103,12 @@ if host_machine.system() == 'linux'
   ]
 endif
 
+if host_machine.system() != 'windows'
+  mock_libs += [
+    { 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] },
+  ]
+endif
+
 
 # build libraries used by tests
 
-- 
2.39.2




[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