Skip to content

Commit

Permalink
feat: add unit tests with --release flag
Browse files Browse the repository at this point in the history
Rust does optimizations which can cause havoc
in `--release` mode, so add another set of unit tests
with all optimizations enabled.

Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse authored and stefano-garzarella committed Dec 9, 2024
1 parent 1150c47 commit c04433e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .buildkite/test_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,29 @@
"privileged": true
}
},
{
"test_name": "unittests-gnu-release",
"command": "cargo test --release --all-features --workspace",
"platform": [
"x86_64",
"aarch64",
"riscv64"
],
"docker_plugin": {
"privileged": true
}
},
{
"test_name": "unittests-musl-release",
"command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl",
"platform": [
"x86_64",
"aarch64"
],
"docker_plugin": {
"privileged": true
}
},
{
"test_name": "clippy",
"command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",
Expand Down

0 comments on commit c04433e

Please sign in to comment.