| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_suite"); | 5 #library("test_suite"); |
| 6 | 6 |
| 7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
| 8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
| 9 #import("multitest.dart"); | 9 #import("multitest.dart"); |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } else { | 71 } else { |
| 72 // Only run the tests that match the pattern. Use the name | 72 // Only run the tests that match the pattern. Use the name |
| 73 // "suiteName/testName" for cc tests. | 73 // "suiteName/testName" for cc tests. |
| 74 RegExp pattern = configuration['selectors'][suiteName]; | 74 RegExp pattern = configuration['selectors'][suiteName]; |
| 75 String constructedName = '$suiteName/$testName'; | 75 String constructedName = '$suiteName/$testName'; |
| 76 if (!pattern.hasMatch(constructedName)) return; | 76 if (!pattern.hasMatch(constructedName)) return; |
| 77 | 77 |
| 78 var expectations = testExpectations.expectations(testName); | 78 var expectations = testExpectations.expectations(testName); |
| 79 | 79 |
| 80 if (configuration["report"]) { | 80 if (configuration["report"]) { |
| 81 SummaryReport.add(expectations); | 81 SummaryReport.add(expectations); |
| 82 } | 82 } |
| 83 | 83 |
| 84 if (expectations.contains(SKIP)) return; | 84 if (expectations.contains(SKIP)) return; |
| 85 | 85 |
| 86 // The cc test runner takes options after the name of the test | 86 // The cc test runner takes options after the name of the test |
| 87 // to run. | 87 // to run. |
| 88 var args = [testName]; | 88 var args = [testName]; |
| 89 args.addAll(TestUtils.standardOptions(configuration)); | 89 args.addAll(TestUtils.standardOptions(configuration)); |
| 90 | 90 |
| 91 doTest(new TestCase('$suiteName/$testName', | 91 doTest(new TestCase('$suiteName/$testName', |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 * $noCrash tests are expected to be flaky but not crash | 542 * $noCrash tests are expected to be flaky but not crash |
| 543 * $pass tests are expected to pass | 543 * $pass tests are expected to pass |
| 544 * $failOk tests are expected to fail that we won't fix | 544 * $failOk tests are expected to fail that we won't fix |
| 545 * $fail tests are expected to fail that we should fix | 545 * $fail tests are expected to fail that we should fix |
| 546 * $crash tests are expected to crash that we should fix | 546 * $crash tests are expected to crash that we should fix |
| 547 * $timeout tests are allowed to timeout\ | 547 * $timeout tests are allowed to timeout\ |
| 548 """; | 548 """; |
| 549 print(report); | 549 print(report); |
| 550 } | 550 } |
| 551 } | 551 } |
| OLD | NEW |