]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Don't build virgdbusmock on Windows
authorAndrea Bolognani <abologna@redhat.com>
Thu, 30 Mar 2023 14:07:33 +0000 (16:07 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 4 Apr 2023 08:52:16 +0000 (10:52 +0200)
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@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/meson.build

index 8958e68a692e081733a634b721fb44d4990530aa..c26c2719ace89c623e205797a1b9ce0ee586a045 100644 (file)
@@ -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