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