e1b344070c
kvm-unit-tests requires a multilib compiler for x86_64 as it compiles 32bit boot code. This patch uses the BR2_HOSTARCH_NEEDS_IA32_COMPILER option to enforce this and avoids using TARGET_CROSS for x86_64 targets and uses the host 32bit (and 64bit) capable compiler. Signed-off-by: Cyril Bur <cyrilbur@gmail.com> [Thomas: reword comment in .mk file.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
config BR2_PACKAGE_KVM_UNIT_TESTS
|
|
bool "kvm-unit-tests"
|
|
select BR2_HOSTARCH_NEEDS_IA32_COMPILER if BR2_x86_64=y
|
|
depends on BR2_arm || BR2_i386 || BR2_powerpc64 || \
|
|
BR2_powerpc64le || BR2_x86_64
|
|
help
|
|
kvm-unit-tests is a project as old as KVM. As its name
|
|
suggests, it's purpose is to provide unit tests for KVM. The
|
|
unit tests are tiny guest operating systems that generally
|
|
execute only tens of lines of C and assembler test code in
|
|
order to obtain its PASS/FAIL result. Unit tests provide KVM
|
|
and virt hardware functional testing by targeting the
|
|
features through minimal implementations of their use per
|
|
the hardware specification. The simplicity of unit tests
|
|
make them easy to verify they are correct, easy to maintain,
|
|
and easy to use in timing measurements. Unit tests are also
|
|
often used for quick and dirty bug reproducers. The
|
|
reproducers may then be kept as regression tests. It's
|
|
strongly encouraged that patches implementing new KVM
|
|
features are submitted with accompanying unit tests.
|
|
|
|
http://www.linux-kvm.org/page/KVM-unit-tests
|