]> xenbits.xensource.com Git - libvirt.git/commit
Implement infrastracture for mocking up QEMU capabilities cache
authorPavel Fedin <p.fedin@samsung.com>
Wed, 9 Sep 2015 14:03:14 +0000 (17:03 +0300)
committerJán Tomko <jtomko@redhat.com>
Tue, 22 Sep 2015 11:56:59 +0000 (13:56 +0200)
commitf7dd3357494cf74f64dc65e4e8af5bba7d7d3266
treed6ce565c08dce798ded661c3a76f4abc2ed06117
parent5b7bf2087783a4156521d30c41f06e5a81870678
Implement infrastracture for mocking up QEMU capabilities cache

The main purpose of this patch is to introduce test mode to
virQEMUCapsCacheLookup(). This is done by adding a global variable, which
effectively overrides binary name. This variable is supposed to be set by
test suite.

The second addition is qemuTestCapsCacheInsert() function which allows the
test suite to actually populate the cache.

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capspriv.h [new file with mode: 0644]
tests/testutilsqemu.c
tests/testutilsqemu.h