| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 if (configuration['runtime'] == 'd8') { | 443 if (configuration['runtime'] == 'd8') { |
| 444 var d8 = TestUtils.d8FileName(configuration); | 444 var d8 = TestUtils.d8FileName(configuration); |
| 445 commands.add(new Command(d8, ['$tempDir/out.js'])); | 445 commands.add(new Command(d8, ['$tempDir/out.js'])); |
| 446 } | 446 } |
| 447 return commands; | 447 return commands; |
| 448 | 448 |
| 449 case 'dart2dart': | 449 case 'dart2dart': |
| 450 var compilerArguments = new List.from(args); | 450 var compilerArguments = new List.from(args); |
| 451 var additionalFlags = | 451 var additionalFlags = |
| 452 configuration['additional-compiler-flags'].split(' '); | 452 configuration['additional-compiler-flags'].split(' '); |
| 453 compilerArguments.addAll(additionalFlags); | 453 for (final flag in additionalFlags) { |
| 454 if (flag.isEmpty()) continue; |
| 455 compilerArguments.add(flag); |
| 456 } |
| 454 compilerArguments.add('--output-type=dart'); | 457 compilerArguments.add('--output-type=dart'); |
| 455 String tempDir = createOutputDirectory(info.filePath, ''); | 458 String tempDir = createOutputDirectory(info.filePath, ''); |
| 456 compilerArguments.add('--out=$tempDir/out.dart'); | 459 compilerArguments.add('--out=$tempDir/out.dart'); |
| 457 List<Command> commands = | 460 List<Command> commands = |
| 458 <Command>[new Command(shellPath(), compilerArguments)]; | 461 <Command>[new Command(shellPath(), compilerArguments)]; |
| 459 if (configuration['runtime'] == 'vm') { | 462 if (configuration['runtime'] == 'vm') { |
| 460 // TODO(antonm): support checked. | 463 // TODO(antonm): support checked. |
| 461 var vmArguments = new List.from(vmOptions); | 464 var vmArguments = new List.from(vmOptions); |
| 462 vmArguments.addAll([ | 465 vmArguments.addAll([ |
| 463 '--ignore-unrecognized-flags', '$tempDir/out.dart']); | 466 '--ignore-unrecognized-flags', '$tempDir/out.dart']); |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 * $noCrash tests are expected to be flaky but not crash | 1413 * $noCrash tests are expected to be flaky but not crash |
| 1411 * $pass tests are expected to pass | 1414 * $pass tests are expected to pass |
| 1412 * $failOk tests are expected to fail that we won't fix | 1415 * $failOk tests are expected to fail that we won't fix |
| 1413 * $fail tests are expected to fail that we should fix | 1416 * $fail tests are expected to fail that we should fix |
| 1414 * $crash tests are expected to crash that we should fix | 1417 * $crash tests are expected to crash that we should fix |
| 1415 * $timeout tests are allowed to timeout | 1418 * $timeout tests are allowed to timeout |
| 1416 """; | 1419 """; |
| 1417 print(report); | 1420 print(report); |
| 1418 } | 1421 } |
| 1419 } | 1422 } |
| OLD | NEW |