tests: vhostuser: add virtiofsd json descriptor

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>
This commit is contained in:
Ján Tomko 2024-07-04 15:54:26 +02:00
parent 6d3955acf1
commit f64e658df0
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
cat <<EOF
{
"type": "fs",
"features": [
"migrate-precopy"
]
}
EOF

View File

@ -0,0 +1,5 @@
{
"description": "virtiofsd vhost-user-fs",
"type": "fs",
"binary": "/usr/libexec/qemu/vhost-user/test-vhost-user-gpu"
}

View 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
};