]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutilsqemu: Helpers for changing host CPU and arch
authorJiri Denemark <jdenemar@redhat.com>
Thu, 4 Aug 2016 11:16:55 +0000 (13:16 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 22 Sep 2016 13:40:08 +0000 (15:40 +0200)
commit127e0b53ec5241f9421be2e89f37a622e7ddcfb6
tree033b8ed548da94aaec89103b93f6aa9e220b173b
parent6bb5f0b2185cf04a51376e5bc5be715d35faa943
testutilsqemu: Helpers for changing host CPU and arch

Changing a host architecture or a CPU is not as easy as assigning a new
value to the appropriate element in virCaps since there is a relation
between the CPU and host architecture (we don't really want to test
anything on an AArch64 host with core2duo CPU). This patch introduces
qemuTestSetHostArch and qemuTestSetHostCPU helpers which will make sure
the host architecture matches the host CPU.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/testutilsqemu.c
tests/testutilsqemu.h