mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test: loop over aliases to asser -Zhelp output
This commit is contained in:
parent
59cfee16f3
commit
dbfe4277d3
@ -158,51 +158,11 @@ fn help_alias() {
|
||||
|
||||
#[cargo_test]
|
||||
fn alias_z_flag_help() {
|
||||
cargo_process("build -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("run -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("check -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("test -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("b -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("r -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("c -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
|
||||
cargo_process("t -Z help")
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
for cmd in ["build", "run", "check", "test", "b", "r", "c", "t"] {
|
||||
cargo_process(&format!("{cmd} -Z help"))
|
||||
.with_stdout_contains(
|
||||
" -Z allow-features[..] Allow *only* the listed unstable features",
|
||||
)
|
||||
.run();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user