]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
gitlab: run unit tests in i686 cross build
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 29 Oct 2020 17:32:28 +0000 (17:32 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Nov 2020 11:13:25 +0000 (11:13 +0000)
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.

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml

index 887bc30242fb71fec2df7b195004ff280419318f..725c76e9ee2551e362c4804f8673d1c18237419b 100644 (file)
@@ -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