mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
modify test
This commit is contained in:
parent
64c69dffc5
commit
cf621fdc94
@ -185,6 +185,32 @@ See [..]
|
||||
validate_upload_foo();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn simple_with_index() {
|
||||
registry::init();
|
||||
|
||||
let p = project()
|
||||
.file(
|
||||
"Cargo.toml",
|
||||
r#"
|
||||
[project]
|
||||
name = "foo"
|
||||
version = "0.0.1"
|
||||
authors = []
|
||||
license = "MIT"
|
||||
description = "foo"
|
||||
"#,
|
||||
)
|
||||
.file("src/main.rs", "fn main() {}")
|
||||
.build();
|
||||
|
||||
p.cargo("publish --no-verify --token sekrit --index")
|
||||
.arg(registry_url().to_string())
|
||||
.run();
|
||||
|
||||
validate_upload_foo();
|
||||
}
|
||||
|
||||
#[cargo_test]
|
||||
fn git_deps() {
|
||||
registry::init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user