From ae8dee513dd8593a189076a706552bc18e102edd Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 6 Jan 2020 22:36:33 +0100 Subject: [PATCH] Test that git install reads virtual manifest --- tests/testsuite/install.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/testsuite/install.rs b/tests/testsuite/install.rs index 3d7ae76e03a..c2777f85acb 100644 --- a/tests/testsuite/install.rs +++ b/tests/testsuite/install.rs @@ -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(); +}