| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(testName, | 91 doTest(new TestCase('$suiteName/$testName', |
| 92 runnerPath, | 92 runnerPath, |
| 93 args, | 93 args, |
| 94 configuration, | 94 configuration, |
| 95 completeHandler, | 95 completeHandler, |
| 96 expectations)); | 96 expectations)); |
| 97 | 97 |
| 98 receiveTestName.receive(testNameHandler); | 98 receiveTestName.receive(testNameHandler); |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 if (expectations.contains(SKIP)) return; | 212 if (expectations.contains(SKIP)) return; |
| 213 | 213 |
| 214 isNegative = isNegative || | 214 isNegative = isNegative || |
| 215 (configuration['checked'] && isNegativeIfChecked); | 215 (configuration['checked'] && isNegativeIfChecked); |
| 216 var argumentLists = argumentListsFromFile(filename, | 216 var argumentLists = argumentListsFromFile(filename, |
| 217 optionsFromFile, | 217 optionsFromFile, |
| 218 enableFatalTypeErrors); | 218 enableFatalTypeErrors); |
| 219 for (var args in argumentLists) { | 219 for (var args in argumentLists) { |
| 220 doTest(new TestCase(testName, | 220 doTest(new TestCase('$suiteName/$testName', |
| 221 shellPath(), | 221 shellPath(), |
| 222 args, | 222 args, |
| 223 configuration, | 223 configuration, |
| 224 completeHandler, | 224 completeHandler, |
| 225 expectations, | 225 expectations, |
| 226 isNegative)); | 226 isNegative)); |
| 227 } | 227 } |
| 228 }; | 228 }; |
| 229 } | 229 } |
| 230 | 230 |
| (...skipping 311 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 |