Skip to content

Commit c04433e

Browse files
ShadowCursestefano-garzarella
authored andcommitted
feat: add unit tests with --release flag
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]>
1 parent 1150c47 commit c04433e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.buildkite/test_description.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@
4444
"privileged": true
4545
}
4646
},
47+
{
48+
"test_name": "unittests-gnu-release",
49+
"command": "cargo test --release --all-features --workspace",
50+
"platform": [
51+
"x86_64",
52+
"aarch64",
53+
"riscv64"
54+
],
55+
"docker_plugin": {
56+
"privileged": true
57+
}
58+
},
59+
{
60+
"test_name": "unittests-musl-release",
61+
"command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl",
62+
"platform": [
63+
"x86_64",
64+
"aarch64"
65+
],
66+
"docker_plugin": {
67+
"privileged": true
68+
}
69+
},
4770
{
4871
"test_name": "clippy",
4972
"command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",

0 commit comments

Comments
 (0)