]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: validate an XML config with USB vendor/product set master
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 26 Jun 2025 08:45:36 +0000 (09:45 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Oct 2025 11:33:48 +0000 (12:33 +0100)
commitf61b083f3ddd0f2a934d3871086e1c9b080e4995
treea055310e2d46c59d2d969db56de9db3e5775287a
parentfefde6175884ff65241ddb3afae2d903df37e20e
tests: validate an XML config with USB vendor/product set

The USB vendor/product is usually translated into a device/bus at
startup using the hostdev logic. We don't run the latter in the
unit test suite, but we can fake it by hardcoding a translation.
This demonstrates that we format the command line with the normal
device/bus properties, even when vendor/product is set.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemuxmlconfdata/hostdev-usb-vendor-product.x86_64-latest.args [new file with mode: 0644]
tests/qemuxmlconfdata/hostdev-usb-vendor-product.x86_64-latest.xml [new file with mode: 0644]
tests/qemuxmlconfdata/hostdev-usb-vendor-product.xml [new file with mode: 0644]
tests/qemuxmlconftest.c