| 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 } | 826 } |
| 827 } | 827 } |
| 828 | 828 |
| 829 String shellPath() => TestUtils.compilerPath(configuration); | 829 String shellPath() => TestUtils.compilerPath(configuration); |
| 830 | 830 |
| 831 List<String> additionalOptions(String filename) { | 831 List<String> additionalOptions(String filename) { |
| 832 filename = new File(filename).fullPathSync().replaceAll('\\', '/'); | 832 filename = new File(filename).fullPathSync().replaceAll('\\', '/'); |
| 833 Directory tempDir = createOutputDirectory(filename, 'dartc-test'); | 833 Directory tempDir = createOutputDirectory(filename, 'dartc-test'); |
| 834 return | 834 return |
| 835 [ '--fatal-warnings', '--fatal-type-errors', | 835 [ '--fatal-warnings', '--fatal-type-errors', |
| 836 '-check-only', '-out', tempDir.path]; | 836 '--out', tempDir.path]; |
| 837 } | 837 } |
| 838 | 838 |
| 839 void processDirectory() { | 839 void processDirectory() { |
| 840 directoryPath = '$dartDir/$directoryPath'; | 840 directoryPath = '$dartDir/$directoryPath'; |
| 841 // Enqueueing the directory listers is an activity. | 841 // Enqueueing the directory listers is an activity. |
| 842 activityStarted(); | 842 activityStarted(); |
| 843 for (String testDir in _testDirs) { | 843 for (String testDir in _testDirs) { |
| 844 Directory dir = new Directory("$directoryPath/$testDir"); | 844 Directory dir = new Directory("$directoryPath/$testDir"); |
| 845 if (dir.existsSync()) { | 845 if (dir.existsSync()) { |
| 846 activityStarted(); | 846 activityStarted(); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 * $noCrash tests are expected to be flaky but not crash | 1124 * $noCrash tests are expected to be flaky but not crash |
| 1125 * $pass tests are expected to pass | 1125 * $pass tests are expected to pass |
| 1126 * $failOk tests are expected to fail that we won't fix | 1126 * $failOk tests are expected to fail that we won't fix |
| 1127 * $fail tests are expected to fail that we should fix | 1127 * $fail tests are expected to fail that we should fix |
| 1128 * $crash tests are expected to crash that we should fix | 1128 * $crash tests are expected to crash that we should fix |
| 1129 * $timeout tests are allowed to timeout | 1129 * $timeout tests are allowed to timeout |
| 1130 """; | 1130 """; |
| 1131 print(report); | 1131 print(report); |
| 1132 } | 1132 } |
| 1133 } | 1133 } |
| OLD | NEW |