diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index aa4e44df2ef94..71a89cd6d76b4 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -379,7 +379,6 @@ impl<'a> Builder<'a> { test::Ui, test::RunPass, test::CompileFail, - test::ParseFail, test::RunFail, test::RunPassValgrind, test::MirOpt, diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 6e6f772a7f351..fe04a91011ee5 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -773,12 +773,6 @@ default_test!(CompileFail { suite: "compile-fail" }); -default_test!(ParseFail { - path: "src/test/parse-fail", - mode: "parse-fail", - suite: "parse-fail" -}); - default_test!(RunFail { path: "src/test/run-fail", mode: "run-fail", diff --git a/src/ci/docker/wasm32-unknown/Dockerfile b/src/ci/docker/wasm32-unknown/Dockerfile index 56eda5480715b..f2a29b0315100 100644 --- a/src/ci/docker/wasm32-unknown/Dockerfile +++ b/src/ci/docker/wasm32-unknown/Dockerfile @@ -36,7 +36,6 @@ ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \ src/test/ui \ src/test/run-pass \ src/test/compile-fail \ - src/test/parse-fail \ src/test/mir-opt \ src/test/codegen-units \ src/libcore \ diff --git a/src/etc/generate-keyword-tests.py b/src/etc/generate-keyword-tests.py index e53d6c718c155..1d79f95a4d2bb 100755 --- a/src/etc/generate-keyword-tests.py +++ b/src/etc/generate-keyword-tests.py @@ -44,7 +44,7 @@ """ test_dir = os.path.abspath( - os.path.join(os.path.dirname(__file__), '../test/parse-fail') + os.path.join(os.path.dirname(__file__), '../test/ui/parser') ) for kw in sys.argv[1:]: diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index fab2ea7ba6c36..a8e25596621ca 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -19,7 +19,6 @@ use util::PathBufExt; #[derive(Clone, Copy, PartialEq, Debug)] pub enum Mode { CompileFail, - ParseFail, RunFail, /// This now behaves like a `ui` test that has an implict `// run-pass`. RunPass, @@ -56,7 +55,6 @@ impl FromStr for Mode { fn from_str(s: &str) -> Result { match s { "compile-fail" => Ok(CompileFail), - "parse-fail" => Ok(ParseFail), "run-fail" => Ok(RunFail), "run-pass" => Ok(RunPass), "run-pass-valgrind" => Ok(RunPassValgrind), @@ -80,7 +78,6 @@ impl fmt::Display for Mode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let s = match *self { CompileFail => "compile-fail", - ParseFail => "parse-fail", RunFail => "run-fail", RunPass => "run-pass", RunPassValgrind => "run-pass-valgrind", diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index c931d3c0e30b7..ca30a4dd95d0e 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -139,7 +139,7 @@ pub fn parse_config(args: Vec) -> Config { "", "mode", "which sort of compile tests to run", - "(compile-fail|parse-fail|run-fail|run-pass|\ + "(compile-fail|run-fail|run-pass|\ run-pass-valgrind|pretty|debug-info|incremental|mir-opt)", ) .optflag("", "ignored", "run tests marked as ignored") diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 8c3b1bb4df333..a80bbd401ab43 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -12,7 +12,7 @@ use common::CompareMode; use common::{expected_output_path, UI_EXTENSIONS, UI_FIXED, UI_STDERR, UI_STDOUT}; use common::{output_base_dir, output_base_name, output_testname_unique}; use common::{Codegen, CodegenUnits, DebugInfoBoth, DebugInfoGdb, DebugInfoLldb, Rustdoc}; -use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind}; +use common::{CompileFail, Pretty, RunFail, RunPass, RunPassValgrind}; use common::{Config, TestPaths}; use common::{Incremental, MirOpt, RunMake, Ui}; use diff; @@ -265,7 +265,7 @@ impl<'test> TestCx<'test> { /// revisions, exactly once, with revision == None). fn run_revision(&self) { match self.config.mode { - CompileFail | ParseFail => self.run_cfail_test(), + CompileFail => self.run_cfail_test(), RunFail => self.run_rfail_test(), RunPassValgrind => self.run_valgrind_test(), Pretty => self.run_pretty_test(), @@ -296,7 +296,7 @@ impl<'test> TestCx<'test> { fn should_compile_successfully(&self) -> bool { match self.config.mode { - ParseFail | CompileFail => self.props.compile_pass, + CompileFail => self.props.compile_pass, RunPass => true, Ui => self.props.compile_pass, Incremental => { @@ -1741,7 +1741,7 @@ impl<'test> TestCx<'test> { } match self.config.mode { - CompileFail | ParseFail | Incremental => { + CompileFail | Incremental => { // If we are extracting and matching errors in the new // fashion, then you want JSON mode. Old-skool error // patterns still match the raw compiler output.