| OLD | NEW |
| 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 /** | 5 /** |
| 6 * Classes and methods for enumerating and preparing tests. | 6 * Classes and methods for enumerating and preparing tests. |
| 7 * | 7 * |
| 8 * This library includes: | 8 * This library includes: |
| 9 * | 9 * |
| 10 * - Creating tests by listing all the Dart files in certain directories, | 10 * - Creating tests by listing all the Dart files in certain directories, |
| 11 * and creating [TestCase]s for those files that meet the relevant criteria. | 11 * and creating [TestCase]s for those files that meet the relevant criteria. |
| 12 * - Preparing tests, including copying files and frameworks to temporary | 12 * - Preparing tests, including copying files and frameworks to temporary |
| 13 * directories, and computing the command line and arguments to be run. | 13 * directories, and computing the command line and arguments to be run. |
| 14 */ | 14 */ |
| 15 library test_suite; | 15 library test_suite; |
| 16 | 16 |
| 17 import "dart:async"; | 17 import "dart:async"; |
| 18 import "dart:io"; | 18 import "dart:io"; |
| 19 import "drt_updater.dart"; | 19 import "drt_updater.dart"; |
| 20 import "html_test.dart" as htmlTest; | 20 import "html_test.dart" as htmlTest; |
| 21 import "path.dart"; |
| 21 import "multitest.dart"; | 22 import "multitest.dart"; |
| 22 import "status_file_parser.dart"; | 23 import "status_file_parser.dart"; |
| 23 import "test_runner.dart"; | 24 import "test_runner.dart"; |
| 24 import "utils.dart"; | 25 import "utils.dart"; |
| 25 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR; | 26 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR; |
| 26 | 27 |
| 27 import "compiler_configuration.dart" show | 28 import "compiler_configuration.dart" show |
| 28 CommandArtifact, | 29 CommandArtifact, |
| 29 CompilerConfiguration; | 30 CompilerConfiguration; |
| 30 | 31 |
| 31 import "runtime_configuration.dart" show | 32 import "runtime_configuration.dart" show |
| 32 RuntimeConfiguration; | 33 RuntimeConfiguration; |
| 33 | 34 |
| 34 part "browser_test.dart"; | 35 import 'browser_test.dart'; |
| 35 | 36 |
| 36 | 37 |
| 37 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*"); | 38 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*"); |
| 38 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()"); | 39 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()"); |
| 39 // Require at least one non-space character before '///' | 40 // Require at least one non-space character before '///' |
| 40 RegExp multiTestRegExp = new RegExp(r"\S *" | 41 RegExp multiTestRegExp = new RegExp(r"\S *" |
| 41 r"/// \w+:(.*)"); | 42 r"/// \w+:(.*)"); |
| 42 RegExp dartExtension = new RegExp(r'\.dart$'); | 43 RegExp dartExtension = new RegExp(r'\.dart$'); |
| 43 | 44 |
| 44 /** | 45 /** |
| (...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 * $pass tests are expected to pass | 2470 * $pass tests are expected to pass |
| 2470 * $failOk tests are expected to fail that we won't fix | 2471 * $failOk tests are expected to fail that we won't fix |
| 2471 * $fail tests are expected to fail that we should fix | 2472 * $fail tests are expected to fail that we should fix |
| 2472 * $crash tests are expected to crash that we should fix | 2473 * $crash tests are expected to crash that we should fix |
| 2473 * $timeout tests are allowed to timeout | 2474 * $timeout tests are allowed to timeout |
| 2474 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2475 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2475 """; | 2476 """; |
| 2476 print(report); | 2477 print(report); |
| 2477 } | 2478 } |
| 2478 } | 2479 } |
| OLD | NEW |