Skip to content

Commit 128ed4c

Browse files
committed
add test
1 parent 471e11c commit 128ed4c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

tests/testsuite/help.rs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,54 @@ fn help_alias() {
138138
.unwrap();
139139
help_with_man_and_path("", "my-alias", "build", Path::new(""));
140140
}
141+
142+
#[cargo_test]
143+
fn alias_z_flag_help() {
144+
cargo_process("build -Z help")
145+
.with_stdout_contains(
146+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
147+
)
148+
.run();
149+
150+
cargo_process("run -Z help")
151+
.with_stdout_contains(
152+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
153+
)
154+
.run();
155+
156+
cargo_process("check -Z help")
157+
.with_stdout_contains(
158+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
159+
)
160+
.run();
161+
162+
cargo_process("test -Z help")
163+
.with_stdout_contains(
164+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
165+
)
166+
.run();
167+
168+
cargo_process("b -Z help")
169+
.with_stdout_contains(
170+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
171+
)
172+
.run();
173+
174+
cargo_process("r -Z help")
175+
.with_stdout_contains(
176+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
177+
)
178+
.run();
179+
180+
cargo_process("c -Z help")
181+
.with_stdout_contains(
182+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
183+
)
184+
.run();
185+
186+
cargo_process("t -Z help")
187+
.with_stdout_contains(
188+
" -Z allow-features[..]-- Allow *only* the listed unstable features",
189+
)
190+
.run();
191+
}

0 commit comments

Comments
 (0)