| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 } | 933 } |
| 934 | 934 |
| 935 void createTest(successIgnored) { | 935 void createTest(successIgnored) { |
| 936 String d8 = | 936 String d8 = |
| 937 "$buildDir/d8${TestUtils.executableSuffix(configuration['component'])}"; | 937 "$buildDir/d8${TestUtils.executableSuffix(configuration['component'])}"; |
| 938 List<String> args = <String>[ | 938 List<String> args = <String>[ |
| 939 '-ea', | 939 '-ea', |
| 940 '-classpath', classPath, | 940 '-classpath', classPath, |
| 941 '-Dcom.google.dart.runner.d8=$d8', | 941 '-Dcom.google.dart.runner.d8=$d8', |
| 942 '-Dcom.google.dart.corelib.SharedTests.test_py=' + | 942 '-Dcom.google.dart.corelib.SharedTests.test_py=' + |
| 943 dartDir + '/tools/test_wrapper.py', | 943 dartDir + '/tools/test.py', |
| 944 'org.junit.runner.JUnitCore']; | 944 'org.junit.runner.JUnitCore']; |
| 945 args.addAll(testClasses); | 945 args.addAll(testClasses); |
| 946 | 946 |
| 947 doTest(new TestCase(suiteName, | 947 doTest(new TestCase(suiteName, |
| 948 'java', | 948 'java', |
| 949 args, | 949 args, |
| 950 configuration, | 950 configuration, |
| 951 completeHandler, | 951 completeHandler, |
| 952 new Set<String>.from([PASS]))); | 952 new Set<String>.from([PASS]))); |
| 953 doDone(); | 953 doDone(); |
| (...skipping 170 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 |