chore: rename ui-tests -> build-tests (#1460)

This commit is contained in:
Carl Lerche
2019-08-16 09:26:56 -07:00
committed by GitHub
parent ce7e60e396
commit ba1829fd26
22 changed files with 55 additions and 55 deletions
+1 -1
View File
@@ -16,5 +16,5 @@ members = [
"tokio-timer", "tokio-timer",
"tokio-tls", "tokio-tls",
"tokio-uds", "tokio-uds",
"ui-tests", "build-tests",
] ]
+1 -1
View File
@@ -83,7 +83,7 @@ jobs:
displayName: Test feature flags displayName: Test feature flags
rust: $(nightly) rust: $(nightly)
crates: crates:
ui-tests: build-tests:
- tokio-executor - tokio-executor
- tokio-net - tokio-net
- executor-without-current-thread - executor-without-current-thread
@@ -1,7 +1,7 @@
[package] [package]
name = "ui-tests" name = "build-tests"
version = "0.1.0" version = "0.1.0"
authors = ["Carl Lerche <[email protected]>"] authors = ["Tokio Contributors <[email protected]>"]
edition = "2018" edition = "2018"
publish = false publish = false
@@ -0,0 +1,3 @@
use build_tests::tokio_executor::current_thread;
fn main() {}
@@ -0,0 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio_executor::current_thread`
--> $DIR/executor_without_current_thread.rs:1:5
|
1 | use build_tests::tokio_executor::current_thread;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `current_thread` in `tokio_executor`
For more information about this error, try `rustc --explain E0432`.
@@ -0,0 +1,4 @@
use build_tests::tokio_net::tcp;
fn main() {}
@@ -0,0 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio_net::tcp`
--> $DIR/net_without_tcp_missing_tcp.rs:1:5
|
1 | use build_tests::tokio_net::tcp;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `tcp` in `tokio_net`
For more information about this error, try `rustc --explain E0432`.
@@ -0,0 +1,4 @@
use build_tests::tokio_net::udp;
fn main() {}
@@ -0,0 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio_net::udp`
--> $DIR/net_without_udp_missing_udp.rs:1:5
|
1 | use build_tests::tokio_net::udp;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `udp` in `tokio_net`
For more information about this error, try `rustc --explain E0432`.
@@ -0,0 +1,3 @@
use build_tests::tokio::net;
fn main() {}
@@ -0,0 +1,7 @@
error[E0432]: unresolved import `build_tests::tokio::net`
--> $DIR/tokio_without_net_missing_net.rs:1:5
|
1 | use build_tests::tokio::net;
| ^^^^^^^^^^^^^^^^^^^^^^^ no `net` in `tokio`
For more information about this error, try `rustc --explain E0432`.
@@ -3,43 +3,43 @@
#[test] #[test]
#[cfg(feature = "tokio-net")] #[cfg(feature = "tokio-net")]
fn net_default() { fn net_default() {
use ui_tests::tokio_net::driver::{set_default, Handle, Reactor, Registration}; use build_tests::tokio_net::driver::{set_default, Handle, Reactor, Registration};
use ui_tests::tokio_net::util::PollEvented; use build_tests::tokio_net::util::PollEvented;
} }
#[test] #[test]
#[cfg(feature = "net-with-tcp")] #[cfg(feature = "net-with-tcp")]
fn net_with_tcp() { fn net_with_tcp() {
use ui_tests::tokio_net::tcp; use build_tests::tokio_net::tcp;
} }
#[test] #[test]
#[cfg(feature = "net-with-udp")] #[cfg(feature = "net-with-udp")]
fn net_with_udp() { fn net_with_udp() {
use ui_tests::tokio_net::udp; use build_tests::tokio_net::udp;
} }
#[test] #[test]
#[cfg(feature = "tokio-with-net")] #[cfg(feature = "tokio-with-net")]
fn tokio_with_net() { fn tokio_with_net() {
// net is present // net is present
use ui_tests::tokio::net; use build_tests::tokio::net;
} }
#[test] #[test]
fn compile_fail() { fn compile_fail() {
let t = trybuild::TestCases::new(); let t = trybuild::TestCases::new();
#[cfg(feature = "executor-without-current-thread")] #[cfg(feature = "executor-without-current-thread")]
t.compile_fail("tests/ui/executor_without_current_thread.rs"); t.compile_fail("tests/fail/executor_without_current_thread.rs");
#[cfg(feature = "net-no-features")] #[cfg(feature = "net-no-features")]
{ {
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs"); t.compile_fail("tests/fail/net_without_tcp_missing_tcp.rs");
t.compile_fail("tests/ui/net_without_udp_missing_udp.rs"); t.compile_fail("tests/fail/net_without_udp_missing_udp.rs");
} }
#[cfg(feature = "tokio-no-features")] #[cfg(feature = "tokio-no-features")]
t.compile_fail("tests/ui/tokio_without_net_missing_net.rs"); t.compile_fail("tests/fail/tokio_without_net_missing_net.rs");
drop(t); drop(t);
} }
@@ -1,3 +0,0 @@
use ui_tests::tokio_executor::current_thread;
fn main() {}
@@ -1,7 +0,0 @@
error[E0432]: unresolved import `ui_tests::tokio_executor::current_thread`
--> $DIR/executor_without_current_thread.rs:1:5
|
1 | use ui_tests::tokio_executor::current_thread;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `current_thread` in `tokio_executor`
For more information about this error, try `rustc --explain E0432`.
@@ -1,4 +0,0 @@
use ui_tests::tokio_net::tcp;
fn main() {}
@@ -1,7 +0,0 @@
error[E0432]: unresolved import `ui_tests::tokio_net::tcp`
--> $DIR/net_without_tcp_missing_tcp.rs:1:5
|
1 | use ui_tests::tokio_net::tcp;
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `tcp` in `tokio_net`
For more information about this error, try `rustc --explain E0432`.
@@ -1,4 +0,0 @@
use ui_tests::tokio_net::udp;
fn main() {}
@@ -1,7 +0,0 @@
error[E0432]: unresolved import `ui_tests::tokio_net::udp`
--> $DIR/net_without_udp_missing_udp.rs:1:5
|
1 | use ui_tests::tokio_net::udp;
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `udp` in `tokio_net`
For more information about this error, try `rustc --explain E0432`.
@@ -1,3 +0,0 @@
use ui_tests::tokio::net;
fn main() {}
@@ -1,7 +0,0 @@
error[E0432]: unresolved import `ui_tests::tokio::net`
--> $DIR/tokio_without_net_missing_net.rs:1:5
|
1 | use ui_tests::tokio::net;
| ^^^^^^^^^^^^^^^^^^^^ no `net` in `tokio`
For more information about this error, try `rustc --explain E0432`.