Skip to content

Commit a10eb86

Browse files
committed
Add test
1 parent 9551ed3 commit a10eb86

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: tests/testsuite/profiles.rs

+31
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,34 @@ fn thin_lto_works() {
468468
)
469469
.run();
470470
}
471+
472+
#[cargo_test]
473+
fn strip_works() {
474+
let p = project()
475+
.file(
476+
"Cargo.toml",
477+
r#"
478+
cargo-features = ["strip"]
479+
480+
[package]
481+
name = "foo"
482+
version = "0.1.0"
483+
484+
[profile.release]
485+
strip = 'symbols'
486+
"#,
487+
)
488+
.file("src/main.rs", "fn main() {}")
489+
.build();
490+
491+
p.cargo("build --release -v")
492+
.masquerade_as_nightly_cargo()
493+
.with_stderr(
494+
"\
495+
[COMPILING] foo [..]
496+
[RUNNING] `rustc [..] -Z strip=symbols [..]`
497+
[FINISHED] [..]
498+
",
499+
)
500+
.run();
501+
}

0 commit comments

Comments
 (0)