Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 435603005: Add --dart2js-options flag to test command (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 static Path get dartTestExecutable { 2099 static Path get dartTestExecutable {
2100 var path = '$dartDir/tools/testing/bin/' 2100 var path = '$dartDir/tools/testing/bin/'
2101 '${Platform.operatingSystem}/dart'; 2101 '${Platform.operatingSystem}/dart';
2102 if (Platform.operatingSystem == 'windows') { 2102 if (Platform.operatingSystem == 'windows') {
2103 path = '$path.exe'; 2103 path = '$path.exe';
2104 } 2104 }
2105 return new Path(path); 2105 return new Path(path);
2106 } 2106 }
2107 2107
2108 /** 2108 /**
2109 * Gets extra options under [key] passed to the testing script.
2110 */
2111 static List<String> getExtraOptions(Map configuration, String key) {
2112 if (configuration[key] == null) return <String>[];
2113 return configuration[key]
2114 .split(" ")
2115 .map((s) => s.trim())
2116 .where((s) => s.isNotEmpty)
2117 .toList();
2118 }
2119
2120 /**
2109 * Gets extra vm options passed to the testing script. 2121 * Gets extra vm options passed to the testing script.
2110 */ 2122 */
2111 static List<String> getExtraVmOptions(Map configuration) { 2123 static List<String> getExtraVmOptions(Map configuration) =>
2112 var extraVmOptions = []; 2124 getExtraOptions(configuration, 'vm_options');
2113 if (configuration['vm_options'] != null) {
2114 extraVmOptions = configuration['vm_options'].split(" ");
2115 extraVmOptions.removeWhere((s) => s.trim() == "");
2116 }
2117 return extraVmOptions;
2118 }
2119 2125
2120 static String getShortName(String path) { 2126 static String getShortName(String path) {
2121 final PATH_REPLACEMENTS = const { 2127 final PATH_REPLACEMENTS = const {
2122 "pkg_polymer_e2e_test_bad_import_test": "polymer_bi", 2128 "pkg_polymer_e2e_test_bad_import_test": "polymer_bi",
2123 "pkg_polymer_e2e_test_canonicalization_test": "polymer_c16n", 2129 "pkg_polymer_e2e_test_canonicalization_test": "polymer_c16n",
2124 "pkg_polymer_e2e_test_experimental_boot_test": "polymer_boot", 2130 "pkg_polymer_e2e_test_experimental_boot_test": "polymer_boot",
2125 "pkg_polymer_e2e_test_good_import_test": "polymer_gi", 2131 "pkg_polymer_e2e_test_good_import_test": "polymer_gi",
2126 "tests_co19_src_Language_12_Expressions_14_Function_Invocation_": 2132 "tests_co19_src_Language_12_Expressions_14_Function_Invocation_":
2127 "co19_fn_invoke_", 2133 "co19_fn_invoke_",
2128 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_" 2134 "tests_co19_src_LayoutTests_fast_dom_Document_CaretRangeFromPoint_"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 * $pass tests are expected to pass 2258 * $pass tests are expected to pass
2253 * $failOk tests are expected to fail that we won't fix 2259 * $failOk tests are expected to fail that we won't fix
2254 * $fail tests are expected to fail that we should fix 2260 * $fail tests are expected to fail that we should fix
2255 * $crash tests are expected to crash that we should fix 2261 * $crash tests are expected to crash that we should fix
2256 * $timeout tests are allowed to timeout 2262 * $timeout tests are allowed to timeout
2257 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2263 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2258 """; 2264 """;
2259 print(report); 2265 print(report);
2260 } 2266 }
2261 } 2267 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698