| 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 case 'dart2dart': | 449 case 'dart2dart': |
| 450 var compilerArguments = new List.from(args); | 450 var compilerArguments = new List.from(args); |
| 451 compilerArguments.add('--output-type=dart'); | 451 compilerArguments.add('--output-type=dart'); |
| 452 String tempDir = createOutputDirectory(info.filePath, ''); | 452 String tempDir = createOutputDirectory(info.filePath, ''); |
| 453 compilerArguments.add('--out=$tempDir/out.dart'); | 453 compilerArguments.add('--out=$tempDir/out.dart'); |
| 454 List<Command> commands = | 454 List<Command> commands = |
| 455 <Command>[new Command(shellPath(), compilerArguments)]; | 455 <Command>[new Command(shellPath(), compilerArguments)]; |
| 456 if (configuration['runtime'] == 'vm') { | 456 if (configuration['runtime'] == 'vm') { |
| 457 // TODO(antonm): support checked. | 457 // TODO(antonm): support checked. |
| 458 var vmArguments = new List.from(vmOptions); | 458 var vmArguments = new List.from(vmOptions); |
| 459 vmArguments.addAll(['$tempDir/out.dart']); | 459 vmArguments.addAll([ |
| 460 '--ignore-unrecognized-flags', '$tempDir/out.dart']); |
| 460 commands.add(new Command( | 461 commands.add(new Command( |
| 461 TestUtils.vmFileName(configuration), | 462 TestUtils.vmFileName(configuration), |
| 462 vmArguments)); | 463 vmArguments)); |
| 463 } else { | 464 } else { |
| 464 throw 'Unsupported runtime ${configuration["runtime"]} for dart2dart'; | 465 throw 'Unsupported runtime ${configuration["runtime"]} for dart2dart'; |
| 465 } | 466 } |
| 466 return commands; | 467 return commands; |
| 467 | 468 |
| 468 case 'none': | 469 case 'none': |
| 469 case 'dartc': | 470 case 'dartc': |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 * $noCrash tests are expected to be flaky but not crash | 1430 * $noCrash tests are expected to be flaky but not crash |
| 1430 * $pass tests are expected to pass | 1431 * $pass tests are expected to pass |
| 1431 * $failOk tests are expected to fail that we won't fix | 1432 * $failOk tests are expected to fail that we won't fix |
| 1432 * $fail tests are expected to fail that we should fix | 1433 * $fail tests are expected to fail that we should fix |
| 1433 * $crash tests are expected to crash that we should fix | 1434 * $crash tests are expected to crash that we should fix |
| 1434 * $timeout tests are allowed to timeout | 1435 * $timeout tests are allowed to timeout |
| 1435 """; | 1436 """; |
| 1436 print(report); | 1437 print(report); |
| 1437 } | 1438 } |
| 1438 } | 1439 } |
| OLD | NEW |