Skip to content

Commit

Permalink
Run ui tests only on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton authored and TeXitoi committed Oct 9, 2019
1 parent 8d86616 commit 6a3fc8b
Show file tree
Hide file tree
Showing 126 changed files with 3 additions and 1,027 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ structopt-derive = { path = "structopt-derive", version = "0.3.2" }

[dev-dependencies]
trybuild = "1.0.5"
version_check = "0.9"

[workspace]
rustversion = "0.1"
12 changes: 2 additions & 10 deletions tests/macro-errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed

extern crate version_check;
use version_check::Version;

#[rustversion::attr(not(stable), ignore)]
#[test]
fn ui() {
let t = trybuild::TestCases::new();
let version = Version::read().unwrap();

if version.at_least("1.39.0") {
t.compile_fail("tests/ui-1.39_post/*.rs");
} else {
t.compile_fail("tests/ui-pre_1.39/*.rs");
}
t.compile_fail("tests/ui/*.rs");
}
7 changes: 0 additions & 7 deletions tests/ui-1.39_post/bool_default_value.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/bool_required.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/flatten_and_doc.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/flatten_and_methods.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/flatten_and_parse.stderr

This file was deleted.

8 changes: 0 additions & 8 deletions tests/ui-1.39_post/non_existent_attr.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/opt_opt_nonpositional.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/opt_vec_nonpositional.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/option_default_value.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/option_required.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/parse_empty_try_from_os.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/parse_function_is_not_path.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/parse_literal_spec.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/parse_not_zero_args.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/raw.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/rename_all_wrong_casing.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/skip_flatten.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/skip_subcommand.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/skip_with_other_options.stderr

This file was deleted.

10 changes: 0 additions & 10 deletions tests/ui-1.39_post/skip_without_default.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/struct_flatten.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/struct_parse.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/struct_subcommand.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/structopt_empty_attr.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/structopt_name_value_attr.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/subcommand_and_flatten.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/subcommand_and_methods.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/subcommand_and_parse.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/subcommand_opt_opt.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/subcommand_opt_vec.stderr

This file was deleted.

7 changes: 0 additions & 7 deletions tests/ui-1.39_post/tuple_struct.stderr

This file was deleted.

21 changes: 0 additions & 21 deletions tests/ui-pre_1.39/bool_default_value.rs

This file was deleted.

21 changes: 0 additions & 21 deletions tests/ui-pre_1.39/bool_required.rs

This file was deleted.

30 changes: 0 additions & 30 deletions tests/ui-pre_1.39/flatten_and_doc.rs

This file was deleted.

29 changes: 0 additions & 29 deletions tests/ui-pre_1.39/flatten_and_methods.rs

This file was deleted.

Loading

0 comments on commit 6a3fc8b

Please sign in to comment.