| 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("dart:io"); | 7 #import("dart:io"); |
| 8 #import("status_file_parser.dart"); | 8 #import("status_file_parser.dart"); |
| 9 #import("test_runner.dart"); | 9 #import("test_runner.dart"); |
| 10 #import("multitest.dart"); | 10 #import("multitest.dart"); |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 String testRelativePath = | 851 String testRelativePath = |
| 852 filename.substring(index + 'compiler/javatests/'.length, | 852 filename.substring(index + 'compiler/javatests/'.length, |
| 853 filename.length - '.java'.length); | 853 filename.length - '.java'.length); |
| 854 String testClass = testRelativePath.replaceAll('/', '.'); | 854 String testClass = testRelativePath.replaceAll('/', '.'); |
| 855 testClasses.add(testClass); | 855 testClasses.add(testClass); |
| 856 } | 856 } |
| 857 } | 857 } |
| 858 | 858 |
| 859 void createTest(successIgnored) { | 859 void createTest(successIgnored) { |
| 860 String d8 = | 860 String d8 = |
| 861 "$buildDir/d8${TestUtils.executableSuffix(configuration['component']}"; | 861 "$buildDir/d8${TestUtils.executableSuffix(configuration['component'])}"; |
| 862 List<String> args = <String>[ | 862 List<String> args = <String>[ |
| 863 '-ea', | 863 '-ea', |
| 864 '-classpath', classPath, | 864 '-classpath', classPath, |
| 865 '-Dcom.google.dart.runner.d8=$d8', | 865 '-Dcom.google.dart.runner.d8=$d8', |
| 866 '-Dcom.google.dart.corelib.SharedTests.test_py=$dartDir/tools/test.py', | 866 '-Dcom.google.dart.corelib.SharedTests.test_py=$dartDir/tools/test.py', |
| 867 'org.junit.runner.JUnitCore']; | 867 'org.junit.runner.JUnitCore']; |
| 868 args.addAll(testClasses); | 868 args.addAll(testClasses); |
| 869 | 869 |
| 870 doTest(new TestCase(suiteName, | 870 doTest(new TestCase(suiteName, |
| 871 'java', | 871 'java', |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 * $noCrash tests are expected to be flaky but not crash | 1059 * $noCrash tests are expected to be flaky but not crash |
| 1060 * $pass tests are expected to pass | 1060 * $pass tests are expected to pass |
| 1061 * $failOk tests are expected to fail that we won't fix | 1061 * $failOk tests are expected to fail that we won't fix |
| 1062 * $fail tests are expected to fail that we should fix | 1062 * $fail tests are expected to fail that we should fix |
| 1063 * $crash tests are expected to crash that we should fix | 1063 * $crash tests are expected to crash that we should fix |
| 1064 * $timeout tests are allowed to timeout | 1064 * $timeout tests are allowed to timeout |
| 1065 """; | 1065 """; |
| 1066 print(report); | 1066 print(report); |
| 1067 } | 1067 } |
| 1068 } | 1068 } |
| OLD | NEW |