mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
refactor(tests): Reduce cargo-add setup load
This just gets rid of irrelevant packages in the registry. Looking into which versions aren't needed would require a deeper pass, so I held off on that for now. Before, the tests were in the 300-500ms range and now they take 100-300ms. This did call to my attention that `unrelated` is misspelled as `unrelateed` but holding off on fixing that to reduce conflicts.
This commit is contained in:
parent
b9b5a45e3c
commit
29dc47fa9a
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,28 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("linked-hash-map", "0.5.4")
|
||||
.feature("clippy", &[])
|
||||
.feature("heapsize", &[])
|
||||
.feature("heapsize_impl", &[])
|
||||
.feature("nightly", &[])
|
||||
.feature("serde", &[])
|
||||
.feature("serde_impl", &[])
|
||||
.feature("serde_test", &[])
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new("inflector", "0.11.4")
|
||||
.feature("default", &["heavyweight", "lazy_static", "regex"])
|
||||
.feature("heavyweight", &[])
|
||||
.feature("lazy_static", &[])
|
||||
.feature("regex", &[])
|
||||
.feature("unstable", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-build-package1", "my-build-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,11 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.alternative(true)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project =
|
||||
Project::from_template("tests/testsuite/cargo_add/build_prefer_existing_version/in");
|
||||
let project_root = project.root();
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,17 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("test_cyclic_features", "0.1.1")
|
||||
.feature("default", &["feature-one", "feature-two"])
|
||||
.feature("feature-one", &["feature-two"])
|
||||
.feature("feature-two", &["feature-one"])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-dev-package1", "my-dev-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.alternative(true)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver)
|
||||
.alternative(true)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,13 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("prerelease_only", "0.2.0-alpha.1").publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,29 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,29 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package", "unrelateed-crate"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -114,95 +114,3 @@ mod vers;
|
||||
mod workspace_name;
|
||||
mod workspace_path;
|
||||
mod workspace_path_dev;
|
||||
|
||||
fn init_registry() {
|
||||
cargo_test_support::registry::init();
|
||||
add_registry_packages(false);
|
||||
}
|
||||
|
||||
fn init_alt_registry() {
|
||||
cargo_test_support::registry::alt_init();
|
||||
add_registry_packages(true);
|
||||
}
|
||||
|
||||
fn add_registry_packages(alt: bool) {
|
||||
for name in [
|
||||
"my-package",
|
||||
"my-package1",
|
||||
"my-package2",
|
||||
"my-dev-package1",
|
||||
"my-dev-package2",
|
||||
"my-build-package1",
|
||||
"my-build-package2",
|
||||
"toml",
|
||||
"versioned-package",
|
||||
"cargo-list-test-fixture-dependency",
|
||||
"unrelateed-crate",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, "0.1.1+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "0.2.0+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "0.2.3+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "0.4.1+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "20.0.0+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "99999.0.0+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new(name, "99999.0.0-alpha.1+my-package")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
}
|
||||
|
||||
cargo_test_support::registry::Package::new("prerelease_only", "0.2.0-alpha.1")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new("test_breaking", "0.2.0")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new("test_nonbreaking", "0.1.1")
|
||||
.alternative(alt)
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new("test_cyclic_features", "0.1.1")
|
||||
.alternative(alt)
|
||||
.feature("default", &["feature-one", "feature-two"])
|
||||
.feature("feature-one", &["feature-two"])
|
||||
.feature("feature-two", &["feature-one"])
|
||||
.publish();
|
||||
|
||||
// Normalization
|
||||
cargo_test_support::registry::Package::new("linked-hash-map", "0.5.4")
|
||||
.alternative(alt)
|
||||
.feature("clippy", &[])
|
||||
.feature("heapsize", &[])
|
||||
.feature("heapsize_impl", &[])
|
||||
.feature("nightly", &[])
|
||||
.feature("serde", &[])
|
||||
.feature("serde_impl", &[])
|
||||
.feature("serde_test", &[])
|
||||
.publish();
|
||||
cargo_test_support::registry::Package::new("inflector", "0.11.4")
|
||||
.alternative(alt)
|
||||
.feature("default", &["heavyweight", "lazy_static", "regex"])
|
||||
.feature("heavyweight", &[])
|
||||
.feature("lazy_static", &[])
|
||||
.feature("regex", &[])
|
||||
.feature("unstable", &[])
|
||||
.publish();
|
||||
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.alternative(alt)
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
}
|
||||
|
@ -2,12 +2,29 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package1", ver).publish();
|
||||
}
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package", "my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -6,6 +6,8 @@ use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,29 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("unrelateed-crate", ver).publish();
|
||||
}
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,19 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.alternative(true)
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,19 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.alternative(true)
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,29 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package2", ver).publish();
|
||||
}
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,19 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.alternative(true)
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("versioned-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,12 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,24 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("cargo-list-test-fixture-dependency", ver)
|
||||
.publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = project_root.join("primary");
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package", "versioned-package", "toml"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,25 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for name in ["my-package", "versioned-package", "toml"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver).publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,18 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
cargo_test_support::registry::Package::new("your-face", "99999.0.0+my-package")
|
||||
.feature("nose", &[])
|
||||
.feature("mouth", &[])
|
||||
.feature("eyes", &[])
|
||||
.feature("ears", &[])
|
||||
.publish();
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,27 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_alt_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_alt_registry();
|
||||
cargo_test_support::registry::alt_init();
|
||||
for name in ["my-package1", "my-package2"] {
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new(name, ver)
|
||||
.alternative(true)
|
||||
.publish();
|
||||
}
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
@ -2,12 +2,23 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
use crate::cargo_add::init_registry;
|
||||
use cargo_test_support::curr_dir;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
init_registry();
|
||||
cargo_test_support::registry::init();
|
||||
for ver in [
|
||||
"0.1.1+my-package",
|
||||
"0.2.0+my-package",
|
||||
"0.2.3+my-package",
|
||||
"0.4.1+my-package",
|
||||
"20.0.0+my-package",
|
||||
"99999.0.0+my-package",
|
||||
"99999.0.0-alpha.1+my-package",
|
||||
] {
|
||||
cargo_test_support::registry::Package::new("my-package", ver).publish();
|
||||
}
|
||||
|
||||
let project = Project::from_template(curr_dir!().join("in"));
|
||||
let project_root = project.root();
|
||||
let cwd = &project_root;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user