| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 // rest. They use the .dart suffix in the status files. They | 377 // rest. They use the .dart suffix in the status files. They |
| 378 // find tests in weird ways (testing that they contain "#"). | 378 // find tests in weird ways (testing that they contain "#"). |
| 379 // They need to be redone. | 379 // They need to be redone. |
| 380 // TODO(1058): This does not work on Windows. | 380 // TODO(1058): This does not work on Windows. |
| 381 start = filename.indexOf(directoryPath); | 381 start = filename.indexOf(directoryPath); |
| 382 if (start != -1) { | 382 if (start != -1) { |
| 383 testName = filename.substring(start + directoryPath.length + 1); | 383 testName = filename.substring(start + directoryPath.length + 1); |
| 384 } else { | 384 } else { |
| 385 testName = filename; | 385 testName = filename; |
| 386 } | 386 } |
| 387 String suffix = executableSuffix(configuration['compiler']); | 387 String suffix = TestUtils.executableSuffix(configuration['compiler']); |
| 388 if (configuration['compiler'] != 'dart_analyzer$suffix' || | 388 if (configuration['compiler'] != 'dart_analyzer$suffix' || |
| 389 testName.endsWith('_test.dart')) { | 389 testName.endsWith('_test.dart')) { |
| 390 if (testName.endsWith('.dart')) { | 390 if (testName.endsWith('.dart')) { |
| 391 testName = testName.substring(0, testName.length - 5); | 391 testName = testName.substring(0, testName.length - 5); |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 int shards = configuration['shards']; | 395 int shards = configuration['shards']; |
| 396 if (shards > 1) { | 396 if (shards > 1) { |
| 397 int shard = configuration['shard']; | 397 int shard = configuration['shard']; |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 * $noCrash tests are expected to be flaky but not crash | 1357 * $noCrash tests are expected to be flaky but not crash |
| 1358 * $pass tests are expected to pass | 1358 * $pass tests are expected to pass |
| 1359 * $failOk tests are expected to fail that we won't fix | 1359 * $failOk tests are expected to fail that we won't fix |
| 1360 * $fail tests are expected to fail that we should fix | 1360 * $fail tests are expected to fail that we should fix |
| 1361 * $crash tests are expected to crash that we should fix | 1361 * $crash tests are expected to crash that we should fix |
| 1362 * $timeout tests are allowed to timeout | 1362 * $timeout tests are allowed to timeout |
| 1363 """; | 1363 """; |
| 1364 print(report); | 1364 print(report); |
| 1365 } | 1365 } |
| 1366 } | 1366 } |
| OLD | NEW |