forked from rhdrjones/kvm-unit-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
122 lines (108 loc) · 4.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
sudo: true
dist: bionic
language: c
cache: ccache
git:
submodules: false
matrix:
include:
- addons:
apt_packages: gcc qemu-system-x86
env:
- CONFIG=""
- BUILD_DIR="."
- TESTS="access asyncpf debug emulator ept hypercall hyperv_stimer
hyperv_synic idt_test intel_iommu ioapic ioapic-split
kvmclock_test msr pcid rdpru realmode rmap_chain s3 setjmp umip"
- ACCEL="kvm"
- addons:
apt_packages: gcc qemu-system-x86
env:
- CONFIG=""
- BUILD_DIR="x86-builddir"
- TESTS="smptest smptest3 tsc tsc_adjust xsave vmexit_cpuid vmexit_vmcall
sieve vmexit_inl_pmtimer vmexit_ipi_halt vmexit_mov_from_cr8
vmexit_mov_to_cr8 vmexit_ple_round_robin vmexit_tscdeadline
vmexit_tscdeadline_immed vmx_apic_passthrough_thread syscall"
- ACCEL="kvm"
- addons:
apt_packages: gcc gcc-multilib qemu-system-x86
env:
- CONFIG="--arch=i386"
- BUILD_DIR="."
- TESTS="asyncpf hyperv_stimer hyperv_synic kvmclock_test msr pmu realmode
s3 sieve smap smptest smptest3 taskswitch taskswitch2 tsc_adjust"
- ACCEL="kvm"
- addons:
apt_packages: gcc gcc-multilib qemu-system-x86
env:
- CONFIG="--arch=i386"
- BUILD_DIR="i386-builddir"
- TESTS="cmpxchg8b tsx-ctrl umip vmexit_cpuid vmexit_ipi vmexit_ipi_halt
vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ple_round_robin
vmexit_tscdeadline vmexit_tscdeadline_immed vmexit_vmcall setjmp"
- ACCEL="kvm"
- addons:
apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm
env:
- CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-"
- BUILD_DIR="."
- TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp"
- addons:
apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm
env:
- CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-"
- BUILD_DIR="arm-buildir"
- TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup"
- addons:
apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64
env:
- CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-"
- BUILD_DIR="."
- TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp"
- addons:
apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64
env:
- CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-"
- BUILD_DIR="arm64-buildir"
- TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup"
- addons:
apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc
env:
- CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-"
- BUILD_DIR="."
- TESTS="spapr_hcall emulator rtas-set-time-of-day"
- ACCEL="tcg,cap-htm=off"
- addons:
apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc
env:
- CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-"
- BUILD_DIR="ppc64le-buildir"
- TESTS="rtas-get-time-of-day rtas-get-time-of-day-base"
- ACCEL="tcg,cap-htm=off"
- addons:
apt_packages: gcc-s390x-linux-gnu qemu-system-s390x
env:
- CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-"
- BUILD_DIR="."
- TESTS="diag10 diag308"
- ACCEL="tcg,firmware=s390x/run"
- addons:
apt_packages: gcc-s390x-linux-gnu qemu-system-s390x
env:
- CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-"
- BUILD_DIR="s390x-builddir"
- TESTS="sieve"
- ACCEL="tcg,firmware=s390x/run"
before_script:
- if [ "$ACCEL" = "kvm" ]; then
sudo chgrp kvm /usr/bin/qemu-system-* ;
sudo chmod g+s /usr/bin/qemu-system-* ;
fi
- mkdir -p $BUILD_DIR && cd $BUILD_DIR
- if [ -e ./configure ]; then ./configure $CONFIG ; fi
- if [ -e ../configure ]; then ../configure $CONFIG ; fi
script:
- make -j3
- ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt
- grep -q PASS results.txt && ! grep -q FAIL results.txt