Skip to content

Commit

Permalink
Test that git install reads virtual manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Jan 19, 2020
1 parent a08fe08 commit ae8dee5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/testsuite/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1422,3 +1422,29 @@ fn install_version_req() {
.with_stderr_contains("[INSTALLING] foo v0.0.3")
.run();
}

#[cargo_test]
fn git_install_reads_workspace_manifest() {
let p = git::repo(&paths::root().join("foo"))
.file(
"Cargo.toml",
r#"
[workspace]
members = ["bin1"]
[profile.release]
incremental = 3
"#,
)
.file("bin1/Cargo.toml", &basic_manifest("bin1", "0.1.0"))
.file(
"bin1/src/main.rs",
r#"fn main() { println!("Hello, world!"); }"#,
)
.build();

cargo_process(&format!("install --git {}", p.url().to_string()))
.with_status(101)
.with_stderr_contains(" invalid type: integer `3`[..]")
.run();
}

0 comments on commit ae8dee5

Please sign in to comment.