]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: vhostuser: add virtiofsd json descriptor
authorJán Tomko <jtomko@redhat.com>
Thu, 4 Jul 2024 13:54:26 +0000 (15:54 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 10 Jul 2024 10:32:23 +0000 (12:32 +0200)
Add the capabilities from the latest virtiofsd main branch and adjust
the order in the priority test accordingly.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-virtiofsd [new file with mode: 0755]
tests/qemuvhostuserdata/usr/share/qemu/vhost-user/50-qemu-virtiofsd.json [new file with mode: 0644]
tests/qemuvhostusertest.c

diff --git a/tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-virtiofsd b/tests/qemuvhostuserdata/usr/libexec/qemu/vhost-user/test-virtiofsd
new file mode 100755 (executable)
index 0000000..90b3818
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cat <<EOF
+{
+  "type": "fs",
+  "features": [
+    "migrate-precopy"
+  ]
+}
+EOF
diff --git a/tests/qemuvhostuserdata/usr/share/qemu/vhost-user/50-qemu-virtiofsd.json b/tests/qemuvhostuserdata/usr/share/qemu/vhost-user/50-qemu-virtiofsd.json
new file mode 100644 (file)
index 0000000..b908bc6
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "description": "virtiofsd vhost-user-fs",
+  "type": "fs",
+  "binary": "/usr/libexec/qemu/vhost-user/test-vhost-user-gpu"
+}
index 4bbad94f74688aff0a7bed64d1344cff77ef25b7..1f8553fc2d54b8578f5de49f2b1bf07637fe9fc5 100644 (file)
@@ -60,6 +60,7 @@ testVUPrecedence(const void *opaque G_GNUC_UNUSED)
     const char *expected[] = {
         PREFIX "/share/qemu/vhost-user/30-gpu.json",
         SYSCONFDIR "/qemu/vhost-user/40-gpu.json",
+        PREFIX "/share/qemu/vhost-user/50-qemu-virtiofsd.json",
         PREFIX "/share/qemu/vhost-user/60-gpu.json",
         NULL
     };