mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test: do not compile test for bins flagged as test = false
This commit is contained in:
parent
0a7a7bd5ef
commit
bee3534f27
@ -1649,12 +1649,6 @@ test tests::test_in_lib ... ok
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out[..]
|
||||
|
||||
|
||||
running 1 test
|
||||
test test_in_bin ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out[..]
|
||||
|
||||
|
||||
running 1 test
|
||||
test test_in_test ... ok
|
||||
|
||||
@ -1668,15 +1662,14 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out[..]
|
||||
[RUNNING] `rustc --crate-name foo src/lib.rs [..] --crate-type lib [..]`
|
||||
[RUNNING] `rustc --crate-name foo src/lib.rs [..] --test [..]`
|
||||
[RUNNING] `rustc --crate-name mybin src/bin/mybin.rs [..] --crate-type bin [..]`
|
||||
[RUNNING] `rustc --crate-name mybin src/bin/mybin.rs [..] --test [..]`
|
||||
[RUNNING] `rustc --crate-name mytest tests/mytest.rs [..] --test [..]`
|
||||
[FINISHED] test [unoptimized + debuginfo] target(s) in [..]
|
||||
[RUNNING] `[CWD]/target/debug/deps/foo-[..] test_in_`
|
||||
[RUNNING] `[CWD]/target/debug/deps/mybin-[..] test_in_`
|
||||
[RUNNING] `[CWD]/target/debug/deps/mytest-[..] test_in_`
|
||||
",
|
||||
)
|
||||
.with_stderr_does_not_contain("[RUNNING][..]rustc[..]myexm1[..]")
|
||||
.with_stderr_does_not_contain("[RUNNING][..]deps/mybin-[..] test_in_")
|
||||
.run();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user