Skip to content

Commit 01063cf

Browse files
vireshkjiangliu
authored andcommitted
buildkite: Add Xen specific tests in CI
Some of the custom tests are run with only "backend-mmap" feature enabled. Run them for "xen" as well. Some of the standard tests from rust-vmm-ci run with "--all-features" (which include "xen" too), add custom tests for those without the "xen" feature. Since the tests from rust-vmm-ci are named normally (without "xen" keyword), append non-xen tests with "-no-xen" to make those clear. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 2a5bf57 commit 01063cf

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.buildkite/custom-tests.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,60 @@
22
"tests": [
33
{
44
"test_name": "build-gnu-mmap",
5+
"command": "cargo build --release --features=xen",
6+
"platform": ["x86_64", "aarch64"]
7+
},
8+
{
9+
"test_name": "build-gnu-mmap-no-xen",
510
"command": "cargo build --release --features=backend-mmap",
611
"platform": ["x86_64", "aarch64"]
712
},
813
{
914
"test_name": "build-musl-mmap",
15+
"command": "cargo build --release --features=xen --target {target_platform}-unknown-linux-musl",
16+
"platform": ["x86_64", "aarch64"]
17+
},
18+
{
19+
"test_name": "build-musl-mmap-no-xen",
1020
"command": "cargo build --release --features=backend-mmap --target {target_platform}-unknown-linux-musl",
1121
"platform": ["x86_64", "aarch64"]
1222
},
1323
{
1424
"test_name": "miri",
1525
"command": "RUST_BACKTRACE=1 MIRIFLAGS='-Zmiri-disable-isolation -Zmiri-panic-on-unsupported -Zmiri-backtrace=full' cargo +nightly miri test --features backend-mmap",
1626
"platform": ["x86_64", "aarch64"]
27+
},
28+
{
29+
"test_name": "unittests-gnu-no-xen",
30+
"command": "cargo test --features 'backend-bitmap backend-mmap backend-atomic' --workspace",
31+
"platform": [
32+
"x86_64",
33+
"aarch64"
34+
]
35+
},
36+
{
37+
"test_name": "unittests-musl-no-xen",
38+
"command": "cargo test --features 'backend-bitmap backend-mmap backend-atomic' --workspace --target {target_platform}-unknown-linux-musl",
39+
"platform": [
40+
"x86_64",
41+
"aarch64"
42+
]
43+
},
44+
{
45+
"test_name": "clippy-no-xen",
46+
"command": "cargo clippy --workspace --bins --examples --benches --features 'backend-bitmap backend-mmap backend-atomic' --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",
47+
"platform": [
48+
"x86_64",
49+
"aarch64"
50+
]
51+
},
52+
{
53+
"test_name": "check-warnings-no-xen",
54+
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --features 'backend-bitmap backend-mmap backend-atomic' --workspace",
55+
"platform": [
56+
"x86_64",
57+
"aarch64"
58+
]
1759
}
1860
]
1961
}

0 commit comments

Comments
 (0)