mirror of
https://github.com/rust-lang/cargo
synced 2024-10-05 23:39:47 +00:00
test(rustc): glob support for package selection
This commit is contained in:
parent
ab88c48480
commit
db313e54a2
|
@ -325,6 +325,26 @@ error: The argument '--package <SPEC>' was provided more than once, \
|
|||
.run();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn fail_with_glob() {
|
||||
let p = project()
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
r#"
|
||||
[workspace]
|
||||
members = ["bar"]
|
||||
"#,
|
||||
)
|
||||
.file("bar/Cargo.toml", &basic_manifest("bar", "0.1.0"))
|
||||
.file("bar/src/lib.rs", "pub fn bar() { break_the_build(); }")
|
||||
.build();
|
||||
|
||||
p.cargo("rustc -p '*z'")
|
||||
.with_status(101)
|
||||
.with_stderr("[ERROR] Glob patterns on package selection are not supported.")
|
||||
.run();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn rustc_with_other_profile() {
|
||||
let p = project()
|
||||
|
|
Loading…
Reference in a new issue