]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxmlconftest: Separate fake drivers into a separate file
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Mar 2026 18:42:12 +0000 (19:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Mar 2026 13:23:21 +0000 (14:23 +0100)
commitb01baffbb2bbd38fd3ffd7402d385f64b79bb241
tree71be0d77c7470ed7833e45154c493073f18c2122
parent6d6da1cbac4f0194ca257c8ff8f5038a96791a62
qemuxmlconftest: Separate fake drivers into a separate file

One of the tests that qemuxmlconftest does is generate cmd line
for given domain XML. This process might involve talking to other
drivers (secret/storage/nwfilter/network). To produce predictable
output the test comes with fake implementation of APIs of those
drivers. Well, move that implementation into a separate file so
that it can be reused by other tests (notably, qemuhotplugtest is
going to use it).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
tests/meson.build
tests/qemufakedrivers.c [new file with mode: 0644]
tests/qemufakedrivers.h [new file with mode: 0644]
tests/qemuxmlconftest.c