]> git.lizzy.rs Git - rust.git/commitdiff
Remove the parse-fail test suite
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sat, 20 Oct 2018 20:43:35 +0000 (23:43 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 21 Oct 2018 11:06:28 +0000 (14:06 +0300)
src/bootstrap/builder.rs
src/bootstrap/test.rs
src/ci/docker/wasm32-unknown/Dockerfile
src/etc/generate-keyword-tests.py
src/tools/compiletest/src/common.rs
src/tools/compiletest/src/main.rs
src/tools/compiletest/src/runtest.rs

index aa4e44df2ef9401d53109f404a74bc6baf3ca8cb..71a89cd6d76b432a4e14071d83b9b3d8a26204c0 100644 (file)
@@ -379,7 +379,6 @@ macro_rules! describe {
                 test::Ui,
                 test::RunPass,
                 test::CompileFail,
-                test::ParseFail,
                 test::RunFail,
                 test::RunPassValgrind,
                 test::MirOpt,
index 6e6f772a7f351b3dd49b48c72ed75c4e44c536f5..fe04a91011ee530b4b5bcefc65008fb41596a973 100644 (file)
@@ -773,12 +773,6 @@ fn run(self, builder: &Builder) {
     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",
index 56eda5480715bc1b5517f4d916f5b27b7718ad34..f2a29b0315100cda4328c588c01646e2c0de718d 100644 (file)
@@ -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 \
index e53d6c718c155c4f90ed2d5539145e473781ae80..1d79f95a4d2bbadb4f41f150ea75605100a3410c 100755 (executable)
@@ -44,7 +44,7 @@ fn main() {
 """
 
 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:]:
index fab2ea7ba6c36d58e4501af5615e6b35f2b5d9cf..a8e25596621ca3bb66d29ea9bdbe2d82204d5803 100644 (file)
@@ -19,7 +19,6 @@
 #[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<Mode, ()> {
         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",
index c931d3c0e30b7ab8146e960971ecd2627d5099ff..ca30a4dd95d0e1137b88dd7cdbdb9cd9824c446b 100644 (file)
@@ -139,7 +139,7 @@ pub fn parse_config(args: Vec<String>) -> 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")
index 8c3b1bb4df333a6fbbddf38e563cd648b48dc309..a80bbd401ab43c70fcc305fea79db444e755069e 100644 (file)
@@ -12,7 +12,7 @@
 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 @@ fn should_run_successfully(&self) -> bool {
 
     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 @@ fn make_compile_args(&self, input_file: &Path, output_file: TargetLocation) -> C
         }
 
         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.