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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 55 additions and 55 deletions

View File

@ -16,5 +16,5 @@ members = [
"tokio-timer",
"tokio-tls",
"tokio-uds",
"ui-tests",
"build-tests",
]

View File

@ -83,7 +83,7 @@ jobs:
displayName: Test feature flags
rust: $(nightly)
crates:
ui-tests:
build-tests:
- tokio-executor
- tokio-net
- executor-without-current-thread

View File

@ -1,7 +1,7 @@
[package]
name = "ui-tests"
name = "build-tests"
version = "0.1.0"
authors = ["Carl Lerche <me@carllerche.com>"]
authors = ["Tokio Contributors <team@tokio.rs>"]
edition = "2018"
publish = false

View File

@ -0,0 +1,3 @@
use build_tests::tokio_executor::current_thread;
fn main() {}

View File

@ -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`.

View File

@ -0,0 +1,4 @@
use build_tests::tokio_net::tcp;
fn main() {}

View File

@ -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`.

View File

@ -0,0 +1,4 @@
use build_tests::tokio_net::udp;
fn main() {}

View File

@ -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`.

View File

@ -0,0 +1,3 @@
use build_tests::tokio::net;
fn main() {}

View File

@ -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`.

View File

@ -3,43 +3,43 @@
#[test]
#[cfg(feature = "tokio-net")]
fn net_default() {
use ui_tests::tokio_net::driver::{set_default, Handle, Reactor, Registration};
use ui_tests::tokio_net::util::PollEvented;
use build_tests::tokio_net::driver::{set_default, Handle, Reactor, Registration};
use build_tests::tokio_net::util::PollEvented;
}
#[test]
#[cfg(feature = "net-with-tcp")]
fn net_with_tcp() {
use ui_tests::tokio_net::tcp;
use build_tests::tokio_net::tcp;
}
#[test]
#[cfg(feature = "net-with-udp")]
fn net_with_udp() {
use ui_tests::tokio_net::udp;
use build_tests::tokio_net::udp;
}
#[test]
#[cfg(feature = "tokio-with-net")]
fn tokio_with_net() {
// net is present
use ui_tests::tokio::net;
use build_tests::tokio::net;
}
#[test]
fn compile_fail() {
let t = trybuild::TestCases::new();
#[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")]
{
t.compile_fail("tests/ui/net_without_tcp_missing_tcp.rs");
t.compile_fail("tests/ui/net_without_udp_missing_udp.rs");
t.compile_fail("tests/fail/net_without_tcp_missing_tcp.rs");
t.compile_fail("tests/fail/net_without_udp_missing_udp.rs");
}
#[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);
}

View File

@ -1,3 +0,0 @@
use ui_tests::tokio_executor::current_thread;
fn main() {}

View File

@ -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`.

View File

@ -1,4 +0,0 @@
use ui_tests::tokio_net::tcp;
fn main() {}

View File

@ -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`.

View File

@ -1,4 +0,0 @@
use ui_tests::tokio_net::udp;
fn main() {}

View File

@ -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`.

View File

@ -1,3 +0,0 @@
use ui_tests::tokio::net;
fn main() {}

View File

@ -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`.