| 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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 */ | 1070 */ |
| 1071 static void copyFile(File source, File dest) { | 1071 static void copyFile(File source, File dest) { |
| 1072 List contents = source.readAsBytesSync(); | 1072 List contents = source.readAsBytesSync(); |
| 1073 RandomAccessFile handle = dest.openSync(FileMode.WRITE); | 1073 RandomAccessFile handle = dest.openSync(FileMode.WRITE); |
| 1074 handle.writeListSync(contents, 0, contents.length); | 1074 handle.writeListSync(contents, 0, contents.length); |
| 1075 handle.closeSync(); | 1075 handle.closeSync(); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 static String executableSuffix(String executable) { | 1078 static String executableSuffix(String executable) { |
| 1079 if (new Platform().operatingSystem() == 'windows') { | 1079 if (new Platform().operatingSystem() == 'windows') { |
| 1080 if (executable == 'd8' || executable == 'vm' || executable = 'none') { | 1080 if (executable == 'd8' || executable == 'vm' || executable == 'none') { |
| 1081 return '.exe'; | 1081 return '.exe'; |
| 1082 } else { | 1082 } else { |
| 1083 return '.bat'; | 1083 return '.bat'; |
| 1084 } | 1084 } |
| 1085 } | 1085 } |
| 1086 return ''; | 1086 return ''; |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 static String executableName(Map configuration) { | 1089 static String executableName(Map configuration) { |
| 1090 String suffix = executableSuffix(configuration['compiler']); | 1090 String suffix = executableSuffix(configuration['compiler']); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 * $noCrash tests are expected to be flaky but not crash | 1234 * $noCrash tests are expected to be flaky but not crash |
| 1235 * $pass tests are expected to pass | 1235 * $pass tests are expected to pass |
| 1236 * $failOk tests are expected to fail that we won't fix | 1236 * $failOk tests are expected to fail that we won't fix |
| 1237 * $fail tests are expected to fail that we should fix | 1237 * $fail tests are expected to fail that we should fix |
| 1238 * $crash tests are expected to crash that we should fix | 1238 * $crash tests are expected to crash that we should fix |
| 1239 * $timeout tests are allowed to timeout | 1239 * $timeout tests are allowed to timeout |
| 1240 """; | 1240 """; |
| 1241 print(report); | 1241 print(report); |
| 1242 } | 1242 } |
| 1243 } | 1243 } |
| OLD | NEW |