Commit 949c22ba authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Do not run tests on ARMv7 when no KVM is available - TCG is going to fail anyway

parent ef92e3d1
......@@ -20,9 +20,10 @@ all:
$(MAKE) -C libguestfs-1.42.0
# As of November 2020 QEMU 5.1.0 does not have functioning TCG implementation of Skylake CPU - attempt to run libguestfs tests in TCG mode bound to fail on Skylake system.
# As of April 2021 QEMU 5.1.0 does not have functioning TCG implementation of Cortex-A7 CPU running on ARMv7 - attempt to run libguestfs tests in TCG mode bound to fail on ARMv7 system.
# Let's skip testing (with heavy heart) hoping that whatever bugs lurking around will become apparent during builds for other types of CPUs.
# This condition should be removed in the future when QEMU TCG will catch up with real world Skylake CPU.
if [[ `lscpu | grep -c "^Model name:.*Skylake"` = 0 ]] ; then \
# This condition should be removed/modified in the future when QEMU TCG will catch up with real world Skylake CPU and/or Cortex-A7.
if [[ `lscpu | grep -c "^Model name:.*Skylake"` = 0 ]] && ! [[ ! -c /dev/kvm && `uname -m` = 'armv7l' ]] ; then \
chown -Rv nobody libguestfs-1.42.0 ; \
su nobody -s /bin/bash -c "PATH=$$PATH SKIP_QEMU_FORCE_TCG_SH=1 make -C libguestfs-1.42.0 check" ; \
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment