| 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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 */ | 1067 */ |
| 1068 static void copyFile(File source, File dest) { | 1068 static void copyFile(File source, File dest) { |
| 1069 List contents = source.readAsBytesSync(); | 1069 List contents = source.readAsBytesSync(); |
| 1070 RandomAccessFile handle = dest.openSync(FileMode.WRITE); | 1070 RandomAccessFile handle = dest.openSync(FileMode.WRITE); |
| 1071 handle.writeListSync(contents, 0, contents.length); | 1071 handle.writeListSync(contents, 0, contents.length); |
| 1072 handle.closeSync(); | 1072 handle.closeSync(); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 static String executableSuffix(String executable) { | 1075 static String executableSuffix(String executable) { |
| 1076 if (new Platform().operatingSystem() == 'windows') { | 1076 if (new Platform().operatingSystem() == 'windows') { |
| 1077 if (executable == 'd8' || executable == 'vm') { | 1077 if (executable == 'd8' || executable == 'vm' || executable = 'none') { |
| 1078 return '.exe'; | 1078 return '.exe'; |
| 1079 } else { | 1079 } else { |
| 1080 return '.bat'; | 1080 return '.bat'; |
| 1081 } | 1081 } |
| 1082 } | 1082 } |
| 1083 return ''; | 1083 return ''; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 static String executableName(Map configuration) { | 1086 static String executableName(Map configuration) { |
| 1087 String suffix = executableSuffix(configuration['compiler']); | 1087 String suffix = executableSuffix(configuration['compiler']); |
| (...skipping 140 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 |