Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 3059c40

Browse files
andreeaflorescuSamuel Ortiz
authored andcommitted
added tests for missing combination of features
We have a few combination of features that were not tested with the CI due to switching to rust-vmm-ci and adding the fam-wrappers feature. Added a new Buildkite pipeline for the missing tests. Signed-off-by: Andreea Florescu <fandree@amazon.com>
1 parent 2a41366 commit 3059c40

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
steps:
2+
# Test release build with kernel bindings 4.14.
3+
- label: "build-v4.14-x86"
4+
commands:
5+
- cargo build --release --features=fam-wrappers,kvm-v4_14_0
6+
- cargo build --release --features=fam-wrappers,kvm-v4_14_0 --target x86_64-unknown-linux-musl
7+
- cargo build --release --features=kvm-v4_14_0
8+
- cargo build --release --features=kvm-v4_14_0 --target x86_64-unknown-linux-musl
9+
retry:
10+
automatic: false
11+
agents:
12+
platform: x86_64.metal
13+
os: linux
14+
plugins:
15+
- docker#v3.0.1:
16+
image: "rustvmm/dev:v4"
17+
always-pull: true
18+
19+
# Test release build with kernel bindings 4.20 and fam-wrappers feature.
20+
- label: "build-v4.20-x86"
21+
commands:
22+
- cargo build --release --features=fam-wrappers,kvm-v4_20_0
23+
- cargo build --release --features=fam-wrappers,kvm-v4_20_0 --target x86_64-unknown-linux-musl
24+
# No need to test the kvm-v4_20_0 because that one is tested by default when no kernel bindings
25+
# feature is specified.
26+
retry:
27+
automatic: false
28+
agents:
29+
platform: x86_64.metal
30+
os: linux
31+
plugins:
32+
- docker#v3.0.1:
33+
image: "rustvmm/dev:v4"
34+
always-pull: true
35+
36+
- label: "build-v4.14-arm"
37+
commands:
38+
- cargo build --release --features=kvm-v4_14_0
39+
- cargo build --release --features=kvm-v4_14_0 --target aarch64-unknown-linux-musl
40+
retry:
41+
automatic: false
42+
agents:
43+
platform: arm.metal
44+
os: linux
45+
plugins:
46+
- docker#v3.0.1:
47+
image: "rustvmm/dev:v4"
48+
always-pull: true
49+
50+
# Run unit tests for 4.14 bindings. These are the only ones that are not run by the rust-vmm-ci.
51+
- label: "unittests-v4.14-x86"
52+
command:
53+
- cargo test --features=kvm-v4_14_0
54+
- cargo test --features=kvm-v4_14_0 --target x86_64-unknown-linux-musl
55+
retry:
56+
automatic: false
57+
agents:
58+
platform: x86_64.metal
59+
os: linux
60+
plugins:
61+
- docker#v3.0.1:
62+
image: "rustvmm/dev:v4"
63+
always-pull: true
64+
65+
- label: "unittests-v4.14-arm"
66+
command:
67+
- cargo test --features=kvm-v4_14_0
68+
- cargo test --features=kvm-v4_14_0 --target aarch64-unknown-linux-musl
69+
retry:
70+
automatic: false
71+
agents:
72+
platform: arm.metal
73+
os: linux
74+
plugins:
75+
- docker#v3.0.1:
76+
image: "rustvmm/dev:v4"
77+
always-pull: true
78+
79+
- label: "check-warnings-x86"
80+
commands:
81+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_14_0,fam-wrappers
82+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_20_0,fam-wrappers
83+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_14_0
84+
retry:
85+
automatic: false
86+
agents:
87+
platform: x86_64.metal
88+
os: linux
89+
plugins:
90+
- docker#v3.0.1:
91+
privileged: true
92+
image: "rustvmm/dev:v4"
93+
always-pull: true
94+
95+
- label: "check-warnings-arm"
96+
commands:
97+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_14_0,fam-wrappers
98+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_20_0,fam-wrappers
99+
- RUSTFLAGS="-D warnings" cargo check --features=kvm-v4_14_0
100+
retry:
101+
automatic: false
102+
agents:
103+
platform: arm.metal
104+
os: linux
105+
plugins:
106+
- docker#v3.0.1:
107+
privileged: true
108+
image: "rustvmm/dev:v4"
109+
always-pull: true

0 commit comments

Comments
 (0)