]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputest: Skip tests requiring JSON_MODELS if QEMU is disabled
authorJiri Denemark <jdenemar@redhat.com>
Wed, 1 Nov 2017 17:35:57 +0000 (18:35 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 2 Nov 2017 09:49:13 +0000 (10:49 +0100)
commit49c945a6f5c885394507f88086cc2f9461df7c27
treedfd2c11e04f43415614eb81606b81621ebf85074
parent1bf893406637e852daeaafec6617d3ee3716de25
cputest: Skip tests requiring JSON_MODELS if QEMU is disabled

Some tests require JSON_MODELS to be parsed into qemuCaps and applied
when computing CPU models and such test cannot succeed if QEMU driver is
disabled. Let's mark the tests with JSON_MODELS_REQUIRED and skip the
appropriate parts if building without QEMU.

On the other hand, CPU tests with JSON_MODELS should succeed even if
model definitions from QEMU are not parsed and applied. Let's explicitly
test this by repeating the tests without JSON_MODELS set.

This fixes the build with QEMU driver disabled, e.g., on some
architectures on RHEL/CentOS.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/cputest.c