Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: tools/testing/dart/status_file_parser.dart

Issue 2543973002: Refactor kernel-related status files (Closed)
Patch Set: Small update (to make BB green, remove flaky marker) Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/language/language_kernel.status ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library status_file_parser; 5 library status_file_parser;
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "dart:convert" show LineSplitter, UTF8; 8 import "dart:convert" show LineSplitter, UTF8;
9 import "dart:io"; 9 import "dart:io";
10 10
(...skipping 10 matching lines...) Expand all
21 // Special 'FAIL' cases 21 // Special 'FAIL' cases
22 static Expectation RUNTIME_ERROR = byName('RuntimeError'); 22 static Expectation RUNTIME_ERROR = byName('RuntimeError');
23 static Expectation COMPILETIME_ERROR = byName('CompileTimeError'); 23 static Expectation COMPILETIME_ERROR = byName('CompileTimeError');
24 static Expectation MISSING_RUNTIME_ERROR = byName('MissingRuntimeError'); 24 static Expectation MISSING_RUNTIME_ERROR = byName('MissingRuntimeError');
25 static Expectation MISSING_COMPILETIME_ERROR = 25 static Expectation MISSING_COMPILETIME_ERROR =
26 byName('MissingCompileTimeError'); 26 byName('MissingCompileTimeError');
27 static Expectation STATIC_WARNING = byName('StaticWarning'); 27 static Expectation STATIC_WARNING = byName('StaticWarning');
28 static Expectation MISSING_STATIC_WARNING = byName('MissingStaticWarning'); 28 static Expectation MISSING_STATIC_WARNING = byName('MissingStaticWarning');
29 static Expectation PUB_GET_ERROR = byName('PubGetError'); 29 static Expectation PUB_GET_ERROR = byName('PubGetError');
30 30
31 // Special 'CRASH' cases
32 static Expectation DARTK_CRASH = byName('DartkCrash');
33
34 // Special 'TIMEOUT' cases
35 static Expectation DARTK_TIMEOUT = byName('DartkTimeout');
36
37 // Special 'MISSING_COMPILETIME_ERROR'
38 static Expectation DARTK_MISSING_COMPILETIME_ERROR =
39 byName('DartkMissingCompileTimeError');
40
41 // Special 'COMPILETIME_ERROR'
42 static Expectation DARTK_COMPILETIME_ERROR = byName('DartkCompileTimeError');
43
31 // "meta expectations" 44 // "meta expectations"
32 static Expectation OK = byName('Ok'); 45 static Expectation OK = byName('Ok');
33 static Expectation SLOW = byName('Slow'); 46 static Expectation SLOW = byName('Slow');
34 static Expectation SKIP = byName('Skip'); 47 static Expectation SKIP = byName('Skip');
35 static Expectation SKIP_SLOW = byName('SkipSlow'); 48 static Expectation SKIP_SLOW = byName('SkipSlow');
36 static Expectation SKIP_BY_DESIGN = byName('SkipByDesign'); 49 static Expectation SKIP_BY_DESIGN = byName('SkipByDesign');
37 50
38 // Can be returned by the test runner to say the result should be ignored, 51 // Can be returned by the test runner to say the result should be ignored,
39 // and assumed to meet the expectations, due to an infrastructure failure. 52 // and assumed to meet the expectations, due to an infrastructure failure.
40 // Do not place in status files. 53 // Do not place in status files.
(...skipping 15 matching lines...) Expand all
56 _AllExpectations = new Map<String, Expectation>(); 69 _AllExpectations = new Map<String, Expectation>();
57 70
58 Expectation build(prettyName, {group: null, isMetaExpectation: false}) { 71 Expectation build(prettyName, {group: null, isMetaExpectation: false}) {
59 var expectation = new Expectation._(prettyName, 72 var expectation = new Expectation._(prettyName,
60 group: group, isMetaExpectation: isMetaExpectation); 73 group: group, isMetaExpectation: isMetaExpectation);
61 assert(!_AllExpectations.containsKey(expectation.name)); 74 assert(!_AllExpectations.containsKey(expectation.name));
62 return _AllExpectations[expectation.name] = expectation; 75 return _AllExpectations[expectation.name] = expectation;
63 } 76 }
64 77
65 var fail = build("Fail"); 78 var fail = build("Fail");
79 var crash = build("Crash");
80 var timeout = build("Timeout");
66 build("Pass"); 81 build("Pass");
67 build("Crash");
68 build("Timeout");
69 82
70 build("MissingCompileTimeError", group: fail); 83 var missingCompileError = build("MissingCompileTimeError", group: fail);
84 var compileError = build("CompileTimeError", group: fail);
71 build("MissingRuntimeError", group: fail); 85 build("MissingRuntimeError", group: fail);
72 build("CompileTimeError", group: fail);
73 build("RuntimeError", group: fail); 86 build("RuntimeError", group: fail);
74 87
88 // Dartk sub expectations
89 build("DartkCrash", group: crash);
90 build("DartkTimeout", group: timeout);
91 build("DartkMissingCompileTimeError", group: missingCompileError);
92 build("DartkCompileTimeError", group: compileError);
93
75 build("MissingStaticWarning", group: fail); 94 build("MissingStaticWarning", group: fail);
76 build("StaticWarning", group: fail); 95 build("StaticWarning", group: fail);
77 96
78 build("PubGetError", group: fail); 97 build("PubGetError", group: fail);
79 98
80 var skip = build("Skip", isMetaExpectation: true); 99 var skip = build("Skip", isMetaExpectation: true);
81 build("SkipByDesign", isMetaExpectation: true); 100 build("SkipByDesign", isMetaExpectation: true);
82 build("SkipSlow", group: skip, isMetaExpectation: true); 101 build("SkipSlow", group: skip, isMetaExpectation: true);
83 build("Ok", isMetaExpectation: true); 102 build("Ok", isMetaExpectation: true);
84 build("Slow", isMetaExpectation: true); 103 build("Slow", isMetaExpectation: true);
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 358 }
340 regExps[i] = regExp; 359 regExps[i] = regExp;
341 } 360 }
342 _keyToRegExps[key] = regExps; 361 _keyToRegExps[key] = regExps;
343 }); 362 });
344 363
345 _regExpCache = null; 364 _regExpCache = null;
346 _preprocessed = true; 365 _preprocessed = true;
347 } 366 }
348 } 367 }
OLDNEW
« no previous file with comments | « tests/language/language_kernel.status ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698