mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
test(build-std): expand assertion to ensure no index update
This commit is contained in:
parent
fa64658367
commit
9af3930321
@ -119,8 +119,31 @@ fn basic() {
|
|||||||
|
|
||||||
"#]])
|
"#]])
|
||||||
.run();
|
.run();
|
||||||
p.cargo("run").build_std().target_host().run();
|
p.cargo("run")
|
||||||
p.cargo("test").build_std().target_host().run();
|
.build_std()
|
||||||
|
.target_host()
|
||||||
|
.with_stderr_data(str![[r#"
|
||||||
|
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
||||||
|
[RUNNING] `target/[HOST_TARGET]/debug/foo`
|
||||||
|
|
||||||
|
"#]])
|
||||||
|
.run();
|
||||||
|
p.cargo("test")
|
||||||
|
.build_std()
|
||||||
|
.target_host()
|
||||||
|
.with_stderr_data(str![[r#"
|
||||||
|
[COMPILING] rustc-std-workspace-std [..]
|
||||||
|
...
|
||||||
|
[COMPILING] test v0.0.0 ([..])
|
||||||
|
[COMPILING] foo v0.0.1 ([ROOT]/foo)
|
||||||
|
[FINISHED] `test` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
||||||
|
[RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
|
||||||
|
[RUNNING] unittests src/main.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
|
||||||
|
[RUNNING] tests/smoke.rs (target/[HOST_TARGET]/debug/deps/smoke-[HASH])
|
||||||
|
[DOCTEST] foo
|
||||||
|
|
||||||
|
"#]])
|
||||||
|
.run();
|
||||||
|
|
||||||
// Check for hack that removes dylibs.
|
// Check for hack that removes dylibs.
|
||||||
let deps_dir = Path::new("target")
|
let deps_dir = Path::new("target")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user