[kvm-unit-tests PATCH v2 08/10] travis.yml: Add CI for macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Build the tests on macOS and test TCG. HVF doesn't work in travis.

sieve tests pass but they might timeout in travis, they were left out
because of that.

Suggested-by: Thomas Huth <thuth@xxxxxxxxxx>
Signed-off-by: Roman Bolshakov <r.bolshakov@xxxxxxxxx>
---
 .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index f0cfc82..7bd0205 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -108,6 +108,48 @@ matrix:
       - TESTS="sieve"
       - ACCEL="tcg,firmware=s390x/run"
 
+    - os: osx
+      osx_image: xcode11.6
+      addons:
+        homebrew:
+          packages:
+            - bash
+            - coreutils
+            - gnu-getopt
+            - qemu
+            - x86_64-elf-gcc
+      env:
+      - CONFIG="--cross-prefix=x86_64-elf-
+                --getopt=/usr/local/opt/gnu-getopt/bin/getopt"
+      - BUILD_DIR="build"
+      - TESTS="ioapic-split 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"
+      - ACCEL="tcg"
+
+    - os: osx
+      osx_image: xcode11.6
+      addons:
+        homebrew:
+          packages:
+            - bash
+            - coreutils
+            - gnu-getopt
+            - qemu
+            - i686-elf-gcc
+      env:
+      - CONFIG="--arch=i386 --cross-prefix=i686-elf-
+                --getopt=/usr/local/opt/gnu-getopt/bin/getopt"
+      - BUILD_DIR="build"
+      - TESTS="cmpxchg8b 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 port80 setjmp tsc
+               taskswitch umip"
+      - ACCEL="tcg"
+
 before_script:
   - if [ "$ACCEL" = "kvm" ]; then
       sudo chgrp kvm /usr/bin/qemu-system-* ;
-- 
2.28.0




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux