| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 | 870 |
| 871 void activityCompleted() { | 871 void activityCompleted() { |
| 872 if (--activityCount == 0) { | 872 if (--activityCount == 0) { |
| 873 directoryListingDone(true); | 873 directoryListingDone(true); |
| 874 } | 874 } |
| 875 } | 875 } |
| 876 | 876 |
| 877 String shellPath() => TestUtils.compilerPath(configuration); | 877 String shellPath() => TestUtils.compilerPath(configuration); |
| 878 | 878 |
| 879 List<String> additionalOptions(String filename) { | 879 List<String> additionalOptions(String filename) { |
| 880 filename = new File(filename).fullPathSync().replaceAll('\\', '/'); | 880 return ['--fatal-warnings', '--fatal-type-errors']; |
| 881 Directory tempDir = createOutputDirectory(filename, 'dartc-test'); | |
| 882 return | |
| 883 [ '--fatal-warnings', '--fatal-type-errors', | |
| 884 '--out', tempDir.path]; | |
| 885 } | 881 } |
| 886 | 882 |
| 887 void processDirectory() { | 883 void processDirectory() { |
| 888 directoryPath = '$dartDir/$directoryPath'; | 884 directoryPath = '$dartDir/$directoryPath'; |
| 889 // Enqueueing the directory listers is an activity. | 885 // Enqueueing the directory listers is an activity. |
| 890 activityStarted(); | 886 activityStarted(); |
| 891 for (String testDir in _testDirs) { | 887 for (String testDir in _testDirs) { |
| 892 Directory dir = new Directory("$directoryPath/$testDir"); | 888 Directory dir = new Directory("$directoryPath/$testDir"); |
| 893 if (dir.existsSync()) { | 889 if (dir.existsSync()) { |
| 894 activityStarted(); | 890 activityStarted(); |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 * $noCrash tests are expected to be flaky but not crash | 1167 * $noCrash tests are expected to be flaky but not crash |
| 1172 * $pass tests are expected to pass | 1168 * $pass tests are expected to pass |
| 1173 * $failOk tests are expected to fail that we won't fix | 1169 * $failOk tests are expected to fail that we won't fix |
| 1174 * $fail tests are expected to fail that we should fix | 1170 * $fail tests are expected to fail that we should fix |
| 1175 * $crash tests are expected to crash that we should fix | 1171 * $crash tests are expected to crash that we should fix |
| 1176 * $timeout tests are allowed to timeout | 1172 * $timeout tests are allowed to timeout |
| 1177 """; | 1173 """; |
| 1178 print(report); | 1174 print(report); |
| 1179 } | 1175 } |
| 1180 } | 1176 } |
| OLD | NEW |