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

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

Issue 8771007: tools/test.dart: Add summary report of the number of tests with each expectation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/test_options.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 7
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 // An indication to skip the test. The caller is responsible for skipping it.
16 final SKIP = "skip"; 16 final SKIP = "skip";
17 final OK = "ok";
17 18
18 final RegExp StripComment = const RegExp("^[^#]*"); 19 final RegExp StripComment = const RegExp("^[^#]*");
19 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]"); 20 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]");
20 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)"); 21 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)");
21 final RegExp PrefixPattern = const RegExp(@"^\s*prefix\s+([\w\_\.\-\/]+)\s*$"); 22 final RegExp PrefixPattern = const RegExp(@"^\s*prefix\s+([\w\_\.\-\/]+)\s*$");
22 23
23 // TODO(whesse): Implement configuration_info library that contains data 24 // TODO(whesse): Implement configuration_info library that contains data
24 // structures for test configuration, including Section. 25 // structures for test configuration, including Section.
25 class Section { 26 class Section {
26 BooleanExpression condition; 27 BooleanExpression condition;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 234 }
234 regExps[i] = regExp; 235 regExps[i] = regExp;
235 } 236 }
236 _keyToRegExps[key] = regExps; 237 _keyToRegExps[key] = regExps;
237 }); 238 });
238 239
239 _regExpCache = null; 240 _regExpCache = null;
240 _preprocessed = true; 241 _preprocessed = true;
241 } 242 }
242 } 243 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698