forked from rust-vmm/vhost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add rust-vmm-ci-tests.json pipeline
This is based on `rust-vmm-ci/.buildkite/test_description.json`. We can't run rust-vmm-ci tests because they enable all the features with `--all-features` and our crates have features that may not be compatible with others (e.g. `xen`). Waiting to solve this problem in rust-vmm-ci (see rust-vmm/rust-vmm-ci#152), we use a custom pipeline based on that but that does not use `--all-features`. Signed-off-by: Stefano Garzarella <[email protected]>
- Loading branch information
1 parent
5a56b55
commit ec223cf
Showing
2 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"test_name": "build-gnu", | ||
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "build-musl", | ||
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release --target {target_platform}-unknown-linux-musl", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "style", | ||
"command": "cargo fmt --all -- --check --config format_code_in_doc_comments=true" | ||
}, | ||
{ | ||
"test_name": "unittests-gnu-all-with-xen", | ||
"command": "cargo test --workspace --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend,xen", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "unittests-gnu-all-without-xen", | ||
"command": "cargo test --workspace --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "unittests-musl-all-with-xen", | ||
"command": "cargo test --workspace --target {target_platform}-unknown-linux-musl --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend,xen", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "unittests-musl-all-without-xen", | ||
"command": "cargo test --workspace --target {target_platform}-unknown-linux-musl --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "clippy-all-with-xen", | ||
"command": "cargo clippy --workspace --bins --examples --benches --all-targets --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend,xen -- -D warnings -D clippy::undocumented_unsafe_blocks", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "clippy-all-without-xen", | ||
"command": "cargo clippy --workspace --bins --examples --benches --all-targets --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend -- -D warnings -D clippy::undocumented_unsafe_blocks", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "check-warnings-all-with-xen", | ||
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --workspace --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend,xen", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "check-warnings-all-without-xen", | ||
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --workspace --no-default-features --features test-utils,vhost-vsock,vhost-kern,vhost-vdpa,vhost-net,vhost-user,vhost-user-frontend,vhost-user-backend", | ||
"platform": [ | ||
"x86_64", | ||
"aarch64" | ||
] | ||
}, | ||
{ | ||
"test_name": "coverage", | ||
"command": "pytest $(find . -type f -name \"test_coverage.py\")", | ||
"docker_plugin": { | ||
"privileged": true | ||
}, | ||
"platform": [ | ||
"x86_64" | ||
] | ||
}, | ||
{ | ||
"test_name": "commit-format", | ||
"command": "pytest $(find . -type f -name \"test_commit_format.py\")", | ||
"docker_plugin": { | ||
"propagate-environment": true | ||
} | ||
}, | ||
{ | ||
"test_name": "cargo-audit", | ||
"command": "[ -e Cargo.lock ] || cargo generate-lockfile; cargo audit -q --deny warnings", | ||
"platform": [ | ||
"x86_64" | ||
] | ||
} | ||
] | ||
} |