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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 837 |
838 void activityCompleted() { | 838 void activityCompleted() { |
839 if (--activityCount == 0) { | 839 if (--activityCount == 0) { |
840 directoryListingDone(true); | 840 directoryListingDone(true); |
841 } | 841 } |
842 } | 842 } |
843 | 843 |
844 String shellPath() => TestUtils.compilerPath(configuration); | 844 String shellPath() => TestUtils.compilerPath(configuration); |
845 | 845 |
846 List<String> additionalOptions(String filename) { | 846 List<String> additionalOptions(String filename) { |
847 filename = new File(filename).fullPathSync().replaceAll('\\', '/'); | 847 return ['--fatal-warnings', '--fatal-type-errors']; |
848 Directory tempDir = createOutputDirectory(filename, 'dartc-test'); | |
849 return | |
850 [ '--fatal-warnings', '--fatal-type-errors', | |
851 '--out', tempDir.path]; | |
852 } | 848 } |
853 | 849 |
854 void processDirectory() { | 850 void processDirectory() { |
855 directoryPath = '$dartDir/$directoryPath'; | 851 directoryPath = '$dartDir/$directoryPath'; |
856 // Enqueueing the directory listers is an activity. | 852 // Enqueueing the directory listers is an activity. |
857 activityStarted(); | 853 activityStarted(); |
858 for (String testDir in _testDirs) { | 854 for (String testDir in _testDirs) { |
859 Directory dir = new Directory("$directoryPath/$testDir"); | 855 Directory dir = new Directory("$directoryPath/$testDir"); |
860 if (dir.existsSync()) { | 856 if (dir.existsSync()) { |
861 activityStarted(); | 857 activityStarted(); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 * $noCrash tests are expected to be flaky but not crash | 1135 * $noCrash tests are expected to be flaky but not crash |
1140 * $pass tests are expected to pass | 1136 * $pass tests are expected to pass |
1141 * $failOk tests are expected to fail that we won't fix | 1137 * $failOk tests are expected to fail that we won't fix |
1142 * $fail tests are expected to fail that we should fix | 1138 * $fail tests are expected to fail that we should fix |
1143 * $crash tests are expected to crash that we should fix | 1139 * $crash tests are expected to crash that we should fix |
1144 * $timeout tests are allowed to timeout | 1140 * $timeout tests are allowed to timeout |
1145 """; | 1141 """; |
1146 print(report); | 1142 print(report); |
1147 } | 1143 } |
1148 } | 1144 } |
OLD | NEW |