| 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, |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 static String compilerName(Map configuration) { | 1103 static String compilerName(Map configuration) { |
| 1104 String suffix = executableSuffix(configuration['component']); | 1104 String suffix = executableSuffix(configuration['component']); |
| 1105 switch (configuration['component']) { | 1105 switch (configuration['component']) { |
| 1106 case 'dartc': | 1106 case 'dartc': |
| 1107 return 'compiler/bin/dartc$suffix'; | 1107 return 'compiler/bin/dartc$suffix'; |
| 1108 case 'frogium': | 1108 case 'frogium': |
| 1109 case 'legium': | 1109 case 'legium': |
| 1110 case 'webdriver': | 1110 case 'webdriver': |
| 1111 return 'frog/bin/frog$suffix'; | 1111 return 'frog/bin/frogsh$suffix'; |
| 1112 default: | 1112 default: |
| 1113 throw "Unknown compiler for: ${configuration['component']}"; | 1113 throw "Unknown compiler for: ${configuration['component']}"; |
| 1114 } | 1114 } |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 static String dartShellFileName(Map configuration) { | 1117 static String dartShellFileName(Map configuration) { |
| 1118 var name = '${buildDir(configuration)}/${executableName(configuration)}'; | 1118 var name = '${buildDir(configuration)}/${executableName(configuration)}'; |
| 1119 if (!(new File(name)).existsSync() && !configuration['list']) { | 1119 if (!(new File(name)).existsSync() && !configuration['list']) { |
| 1120 throw "Executable '$name' does not exist"; | 1120 throw "Executable '$name' does not exist"; |
| 1121 } | 1121 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 * $noCrash tests are expected to be flaky but not crash | 1228 * $noCrash tests are expected to be flaky but not crash |
| 1229 * $pass tests are expected to pass | 1229 * $pass tests are expected to pass |
| 1230 * $failOk tests are expected to fail that we won't fix | 1230 * $failOk tests are expected to fail that we won't fix |
| 1231 * $fail tests are expected to fail that we should fix | 1231 * $fail tests are expected to fail that we should fix |
| 1232 * $crash tests are expected to crash that we should fix | 1232 * $crash tests are expected to crash that we should fix |
| 1233 * $timeout tests are allowed to timeout | 1233 * $timeout tests are allowed to timeout |
| 1234 """; | 1234 """; |
| 1235 print(report); | 1235 print(report); |
| 1236 } | 1236 } |
| 1237 } | 1237 } |
| OLD | NEW |