Skip to content

Commit

Permalink
buildkite: Add Xen specific tests in CI
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vireshk committed Jun 27, 2023
1 parent f521825 commit 32989cb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .buildkite/custom-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,60 @@
"tests": [
{
"test_name": "build-gnu-mmap",
"command": "cargo build --release --features=xen",
"platform": ["x86_64", "aarch64"]
},
{
"test_name": "build-gnu-mmap-no-xen",
"command": "cargo build --release --features=backend-mmap",
"platform": ["x86_64", "aarch64"]
},
{
"test_name": "build-musl-mmap",
"command": "cargo build --release --features=xen --target {target_platform}-unknown-linux-musl",
"platform": ["x86_64", "aarch64"]
},
{
"test_name": "build-musl-mmap-no-xen",
"command": "cargo build --release --features=backend-mmap --target {target_platform}-unknown-linux-musl",
"platform": ["x86_64", "aarch64"]
},
{
"test_name": "miri",
"command": "RUST_BACKTRACE=1 MIRIFLAGS='-Zmiri-disable-isolation -Zmiri-panic-on-unsupported -Zmiri-backtrace=full' cargo +nightly miri test --features backend-mmap",
"platform": ["x86_64", "aarch64"]
},
{
"test_name": "unittests-gnu-no-xen",
"command": "cargo test --features 'backend-bitmap backend-mmap backend-atomic' --workspace",
"platform": [
"x86_64",
"aarch64"
]
},
{
"test_name": "unittests-musl-no-xen",
"command": "cargo test --features 'backend-bitmap backend-mmap backend-atomic' --workspace --target {target_platform}-unknown-linux-musl",
"platform": [
"x86_64",
"aarch64"
]
},
{
"test_name": "clippy-no-xen",
"command": "cargo clippy --workspace --bins --examples --benches --features 'backend-bitmap backend-mmap backend-atomic' --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",
"platform": [
"x86_64",
"aarch64"
]
},
{
"test_name": "check-warnings-no-xen",
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --features 'backend-bitmap backend-mmap backend-atomic' --workspace",
"platform": [
"x86_64",
"aarch64"
]
}
]
}

0 comments on commit 32989cb

Please sign in to comment.