[libvirt PATCH 1/2] gitlab: run unit tests in i686 cross build

Daniel P. Berrangé berrange at redhat.com
Fri Oct 30 15:28:09 UTC 2020


In most cross builds we can't run tests since we can't assume QEMU user
mode emulators are loaded. i686 is special though because x86_64 can run
i686 natively, so we should run unit tests there.

The key benefit is that this gives us 32-bit unit test coverage in CI.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 887bc30242..725c76e9ee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -115,6 +115,7 @@ stages:
   script:
     - meson build --werror $MESON_OPTS || (cat build/meson-logs/meson-log.txt && exit 1)
     - ninja -C build
+    - if test "$CROSS" = "i686" ; then ninja -C build test ; fi
 
 
 # Native container build jobs
-- 
2.28.0




More information about the libvir-list mailing list