| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 } | 801 } |
| 802 | 802 |
| 803 List<List<String>> argumentListsFromFile(String filename, | 803 List<List<String>> argumentListsFromFile(String filename, |
| 804 Map optionsFromFile) { | 804 Map optionsFromFile) { |
| 805 List args = TestUtils.standardOptions(configuration); | 805 List args = TestUtils.standardOptions(configuration); |
| 806 args.addAll(additionalOptions(filename)); | 806 args.addAll(additionalOptions(filename)); |
| 807 if (configuration['compiler'] == 'dartc') { | 807 if (configuration['compiler'] == 'dartc') { |
| 808 args.add('--error_format'); | 808 args.add('--error_format'); |
| 809 args.add('machine'); | 809 args.add('machine'); |
| 810 } | 810 } |
| 811 if ((configuration['compiler'] == 'frog' |
| 812 || configuration['compiler'] == 'frogsh' |
| 813 || configuration['compiler'] == 'dart2js') |
| 814 && (configuration['runtime'] == 'none')) { |
| 815 args.add('--compile-only'); |
| 816 } |
| 811 | 817 |
| 812 bool isMultitest = optionsFromFile["isMultitest"]; | 818 bool isMultitest = optionsFromFile["isMultitest"]; |
| 813 List<String> dartOptions = optionsFromFile["dartOptions"]; | 819 List<String> dartOptions = optionsFromFile["dartOptions"]; |
| 814 List<List<String>> vmOptionsList = optionsFromFile["vmOptions"]; | 820 List<List<String>> vmOptionsList = optionsFromFile["vmOptions"]; |
| 815 Expect.isTrue(!isMultitest || dartOptions == null); | 821 Expect.isTrue(!isMultitest || dartOptions == null); |
| 816 if (dartOptions == null) { | 822 if (dartOptions == null) { |
| 817 args.add(filename); | 823 args.add(filename); |
| 818 } else { | 824 } else { |
| 819 var executable_name = dartOptions[0]; | 825 var executable_name = dartOptions[0]; |
| 820 // TODO(ager): Get rid of this hack when the runtime checkout goes away. | 826 // TODO(ager): Get rid of this hack when the runtime checkout goes away. |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 * $noCrash tests are expected to be flaky but not crash | 1356 * $noCrash tests are expected to be flaky but not crash |
| 1351 * $pass tests are expected to pass | 1357 * $pass tests are expected to pass |
| 1352 * $failOk tests are expected to fail that we won't fix | 1358 * $failOk tests are expected to fail that we won't fix |
| 1353 * $fail tests are expected to fail that we should fix | 1359 * $fail tests are expected to fail that we should fix |
| 1354 * $crash tests are expected to crash that we should fix | 1360 * $crash tests are expected to crash that we should fix |
| 1355 * $timeout tests are allowed to timeout | 1361 * $timeout tests are allowed to timeout |
| 1356 """; | 1362 """; |
| 1357 print(report); | 1363 print(report); |
| 1358 } | 1364 } |
| 1359 } | 1365 } |
| OLD | NEW |