Skip to content

Commit

Permalink
Move ui tests from test_suite/tests/ to tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 14, 2019
1 parent bf850c3 commit 9337f88
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ matrix:
name: cargo test (ui tests)
script:
- cargo clean
- RUSTFLAGS='--cfg ui_tests' cargo test -p auto_enums_test_suite --all-features --test compile-test
- RUSTFLAGS='--cfg ui_tests' cargo test -p auto_enums --all-features --test compile-test

- rust: nightly
name: cargo check (minimal versions)
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ travis-ci = { repository = "taiki-e/auto_enums" }
auto_enums_core = { version = "0.5.8", path = "core", default-features = false }
auto_enums_derive = { version = "0.5.8", path = "derive", default-features = false }

[dev-dependencies]
compiletest = { version = "0.3.21", package = "compiletest_rs", features = ["stable", "tmp"] }

[features]
# Default features.
default = ["std"]
Expand Down
10 changes: 0 additions & 10 deletions test_suite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ futures = { version = "0.1", optional = true }
quote = { version = "0.6", optional = true }
rayon = { version = "1.0", optional = true }
serde = { version = "1.0", optional = true }
compiletest = { version = "0.3.21", package = "compiletest_rs", optional = true, features = ["stable", "tmp"] }

[dev-dependencies]
auto_enums = { path = "..", default-features = false, features = ["fmt", "transpose_methods"] }
Expand Down Expand Up @@ -40,12 +39,3 @@ unstable = [
"auto_enums/exact_size_is_empty",
"auto_enums/try_trait",
]

ui_tests = [
"compiletest",
"std",
"unstable",
"auto_enums/type_analysis",
"auto_enums/transpose_methods",
"auto_enums/try_trait",
]
9 changes: 8 additions & 1 deletion test_suite/tests/compile-test.rs → tests/compile-test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#![cfg(ui_tests)]
#![cfg(feature = "unstable")]
#![cfg(all(
feature = "std",
feature = "type_analysis",
feature = "transpose_methods",
feature = "try_trait",
feature = "exact_size_is_empty",
feature = "read_initializer",
))]

use std::{env, path::PathBuf};

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

MYDIR=$(dirname $0)

BUILD_DIR="../../../target/tests/ui"
BUILD_DIR="../../target/tests/ui"

while [[ "$1" != "" ]]; do
STDERR_NAME="${1/%.rs/.stderr}"
Expand Down

0 comments on commit 9337f88

Please sign in to comment.