]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
storage-daemon: Add missing build dependency to the vhost-user-blk-test
authorThomas Huth <thuth@redhat.com>
Wed, 11 Aug 2021 09:47:05 +0000 (11:47 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 11 Aug 2021 11:39:50 +0000 (13:39 +0200)
vhost-user-blk-test needs the qemu-storage-daemon, otherwise it
currently hangs. So make sure that we build the daemon before running
the tests.

Message-Id: <20210811094705.131314-1-thuth@redhat.com>
Tested-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
storage-daemon/meson.build
tests/qtest/meson.build

index 68852f3d257a6ff4dbf2f953be2699fb6f793490..49c9d2eac91fb6af56c16db8a790cb69ee268fab 100644 (file)
@@ -6,8 +6,8 @@ subdir('qapi')
 
 if have_tools
   qsd_ss = qsd_ss.apply(config_host, strict: false)
-  executable('qemu-storage-daemon',
-             qsd_ss.sources(),
-             dependencies: qsd_ss.dependencies(),
-             install: true)
+  qsd = executable('qemu-storage-daemon',
+                   qsd_ss.sources(),
+                   dependencies: qsd_ss.dependencies(),
+                   install: true)
 endif
index e22a0792c587d7c324fa8c5c7fb781c0fdb852e3..2bc3efd49f94ec081fa0b40ebd9b6de1f5b394eb 100644 (file)
@@ -276,8 +276,11 @@ foreach dir : target_dirs
   endif
   qtest_env.set('G_TEST_DBUS_DAEMON', meson.source_root() / 'tests/dbus-vmstate-daemon.sh')
   qtest_env.set('QTEST_QEMU_BINARY', './qemu-system-' + target_base)
-  qtest_env.set('QTEST_QEMU_STORAGE_DAEMON_BINARY', './storage-daemon/qemu-storage-daemon')
-  
+  if have_tools and have_vhost_user_blk_server
+    qtest_env.set('QTEST_QEMU_STORAGE_DAEMON_BINARY', './storage-daemon/qemu-storage-daemon')
+    test_deps += [qsd]
+  endif
+
   foreach test : target_qtests
     # Executables are shared across targets, declare them only the first time we
     # encounter them