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

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

Issue 10854156: Add a support for a slow marker in status files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months 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 | Annotate | Revision Log
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:io"); 7 #import("dart:io");
8 #import("status_expression.dart"); 8 #import("status_expression.dart");
9 9
10 // Possible outcomes of running a test. 10 /** Possible outcomes of running a test. */
11 final CRASH = "crash"; 11 final CRASH = "crash";
12 final TIMEOUT = "timeout"; 12 final TIMEOUT = "timeout";
13 final FAIL = "fail"; 13 final FAIL = "fail";
14 final PASS = "pass"; 14 final PASS = "pass";
15 // An indication to skip the test. The caller is responsible for skipping it. 15 /**
16 * An indication to skip the test. The caller is responsible for skipping it.
17 */
16 final SKIP = "skip"; 18 final SKIP = "skip";
17 final OK = "ok"; 19 final OK = "ok";
20 /**
21 * An indication that a test is slow and we should allow extra time for
22 * completion.
23 */
24 final SLOW = "slow";
18 25
19 final RegExp StripComment = const RegExp("^[^#]*"); 26 final RegExp StripComment = const RegExp("^[^#]*");
20 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]"); 27 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]");
21 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)"); 28 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)");
22 29
23 // TODO(whesse): Implement configuration_info library that contains data 30 // TODO(whesse): Implement configuration_info library that contains data
24 // structures for test configuration, including Section. 31 // structures for test configuration, including Section.
25 class Section { 32 class Section {
26 BooleanExpression condition; 33 BooleanExpression condition;
27 List<TestRule> testRules; 34 List<TestRule> testRules;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 204 }
198 regExps[i] = regExp; 205 regExps[i] = regExp;
199 } 206 }
200 _keyToRegExps[key] = regExps; 207 _keyToRegExps[key] = regExps;
201 }); 208 });
202 209
203 _regExpCache = null; 210 _regExpCache = null;
204 _preprocessed = true; 211 _preprocessed = true;
205 } 212 }
206 } 213 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698