From 7177fffd7b65c584b22abe42ec9845ec0a70565c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 27 Jan 2019 02:03:52 +0300 Subject: fix verification on CI remove `--verify` flag from the binaries: we have tests for this! --- crates/tools/tests/cli.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'crates/tools/tests/cli.rs') diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index 2d238d9ea..2ee4b5223 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs @@ -1,14 +1,22 @@ -extern crate tools; - -use tools::{generate, run_rustfmt, Verify}; +use tools::{generate, gen_tests, run_rustfmt, Verify}; #[test] -fn verify_template_generation() { +fn generated_grammar_is_fresh() { if let Err(error) = generate(Verify) { panic!("{}. Please update it by running `cargo gen-syntax`", error); } } +#[test] +fn generated_tests_are_fresh() { + if let Err(error) = gen_tests(Verify) { + panic!( + "{}. Please update tests by running `cargo gen-tests`", + error + ); + } +} + #[test] fn check_code_formatting() { if let Err(error) = run_rustfmt(Verify) { -- cgit v1.2.3