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 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2218 } else if (system == 'macos') { | 2218 } else if (system == 'macos') { |
2219 result = 'xcodebuild/'; | 2219 result = 'xcodebuild/'; |
2220 } else if (system == 'windows') { | 2220 } else if (system == 'windows') { |
2221 result = 'build/'; | 2221 result = 'build/'; |
2222 } | 2222 } |
2223 return result; | 2223 return result; |
2224 } | 2224 } |
2225 | 2225 |
2226 static List<String> standardOptions(Map configuration) { | 2226 static List<String> standardOptions(Map configuration) { |
2227 List args = ["--ignore-unrecognized-flags"]; | 2227 List args = ["--ignore-unrecognized-flags"]; |
2228 if (configuration["checked"]) { | |
2229 args.add('--enable_asserts'); | |
2230 args.add("--enable_type_checks"); | |
2231 } | |
2232 String compiler = configuration["compiler"]; | 2228 String compiler = configuration["compiler"]; |
2233 if (compiler == "dart2js") { | 2229 if (compiler == "dart2js") { |
2234 args = ['--generate-code-with-compile-time-errors', '--test-mode']; | 2230 args = ['--generate-code-with-compile-time-errors', '--test-mode']; |
2235 if (configuration["checked"]) { | 2231 if (configuration["checked"]) { |
2236 args.add('--enable-checked-mode'); | 2232 args.add('--enable-checked-mode'); |
2237 } | 2233 } |
2238 // args.add("--verbose"); | 2234 // args.add("--verbose"); |
2239 if (!isBrowserRuntime(configuration['runtime'])) { | 2235 if (!isBrowserRuntime(configuration['runtime'])) { |
2240 args.add("--allow-mock-compilation"); | 2236 args.add("--allow-mock-compilation"); |
2241 args.add("--categories=all"); | 2237 args.add("--categories=all"); |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2424 for (var key in PATH_REPLACEMENTS.keys) { | 2420 for (var key in PATH_REPLACEMENTS.keys) { |
2425 if (path.startsWith(key)) { | 2421 if (path.startsWith(key)) { |
2426 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2422 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2427 break; | 2423 break; |
2428 } | 2424 } |
2429 } | 2425 } |
2430 } | 2426 } |
2431 return path; | 2427 return path; |
2432 } | 2428 } |
2433 } | 2429 } |
OLD | NEW |