#[test]
fn multiple_installs() {
let p = project()
+ .no_manifest()
.file(
"a/Cargo.toml",
r#"
#[test]
fn one_install_should_be_bad() {
let p = project()
+ .no_manifest()
.file(
"a/Cargo.toml",
r#"
pkg.publish();
let p = project()
+ .no_manifest()
.file(
"a/Cargo.toml",
r#"
git::tag(&repo, "tag2");
let p = project()
+ .no_manifest()
.file(
"a/Cargo.toml",
&format!(
}).unwrap();
let p = project()
+ .no_manifest()
.file(
"a/Cargo.toml",
&format!(
self
}
+ fn no_manifest(mut self) -> Self {
+ self.p = self.p.map(|pb| pb.no_manifest());
+ self
+ }
+
fn build(&mut self) {
let p = self.p.take().unwrap();
let json = serde_json::to_string(&self.cksum).unwrap();
)
.file("src/lib.rs", "")
.build();
- VendorPackage::new("foo").file(".bar", "").build();
+ VendorPackage::new("foo").no_manifest().file(".bar", "").build();
let p = project()
.file(
.file("src/lib.rs", "")
.build();
VendorPackage::new("foo")
+ .no_manifest()
.file("bar", "")
.file("../test", "")
.build();
#[test]
fn do_not_fix_non_relevant_deps() {
let p = project()
+ .no_manifest()
.file(
"foo/Cargo.toml",
r#"
fn changing_bin_paths_common_target_features_caches_targets() {
// Make sure dep_cache crate is built once per feature
let p = project()
+ .no_manifest()
.file(
".cargo/config",
r#"
#[test]
fn same_build_dir_cached_packages() {
let p = project()
+ .no_manifest()
.file(
"a1/Cargo.toml",
r#"
)
.file("src/lib.rs", "pub fn foo() {}")
}).unwrap();
- let library = git::new("bar", |library| library.file("Makefile", "all:")).unwrap();
+ let library = git::new("bar", |library| library.no_manifest().file("Makefile", "all:")).unwrap();
let repository = git2::Repository::open(&project.root()).unwrap();
let url = path2url(library.root()).to_string();
#[test]
fn override_and_depend() {
let p = project()
+ .no_manifest()
.file(
"a/a1/Cargo.toml",
r#"
fn publish_in_sub_repo() {
publish::setup();
- let p = project().file("baz", "").build();
+ let p = project().no_manifest().file("baz", "").build();
let _ = repo(&paths::root().join("foo"))
.file(
fn ignore_when_crate_ignored() {
publish::setup();
- let p = project().file("bar/baz", "").build();
+ let p = project().no_manifest().file("bar/baz", "").build();
let _ = repo(&paths::root().join("foo"))
.file(".gitignore", "bar")
#[test]
fn run_multiple_packages() {
let p = project()
+ .no_manifest()
.file(
"foo/Cargo.toml",
r#"
// Funky directory structure to test that relative tool paths are made absolute
// by reference to the `.cargo/..` directory and not to (for example) the CWD.
let p = project()
+ .no_manifest()
.file(
"bar/Cargo.toml",
r#"
#[test]
fn path_dep_outside_workspace_is_not_member() {
let p = project()
+ .no_manifest()
.file(
"ws/Cargo.toml",
r#"
#[test]
fn test_in_and_out_of_workspace() {
let p = project()
+ .no_manifest()
.file(
"ws/Cargo.toml",
r#"