| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |