aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2020-05-13 11:54:46 +0200
committerThomas Huth <thuth@redhat.com>2020-06-16 15:00:07 +0200
commit417ecf40bad5b6e753bb9f5cd4dff45cd90c2f28 (patch)
tree91cc2d5d1562600ea508dbc373208712772aaf90
parent951f9b82e24cac87374179cbb13016609ecd6ff0 (diff)
downloadkvm-unit-tests-417ecf40bad5b6e753bb9f5cd4dff45cd90c2f28.tar.gz
Compile the kvm-unit-tests also with Clang
To get some more test coverage, let's check compilation with Clang, too. Message-Id: <20200514192626.9950-12-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--.gitlab-ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 13e1a1f..3af53f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,3 +80,16 @@ build-i386:
cmpxchg8b eventinj port80 setjmp sieve tsc taskswitch umip
| tee results.txt
- if grep -q FAIL results.txt ; then exit 1 ; fi
+
+build-clang:
+ script:
+ - dnf install -y qemu-system-x86 clang
+ - ./configure --arch=x86_64 --cc=clang
+ - make -j2
+ - ACCEL=tcg ./run_tests.sh
+ smptest smptest3 vmexit_cpuid vmexit_mov_from_cr8
+ vmexit_mov_to_cr8 vmexit_inl_pmtimer vmexit_ipi vmexit_ipi_halt
+ vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed
+ eventinj msr port80 setjmp syscall tsc rmap_chain umip intel_iommu
+ | tee results.txt
+ - grep -q PASS results.txt && ! grep -q FAIL results.txt