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 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2033 } | 2033 } |
2034 if (compiler == "dart2js" && configuration["cps_ir"]) { | 2034 if (compiler == "dart2js" && configuration["cps_ir"]) { |
2035 args.add("--use-cps-ir"); | 2035 args.add("--use-cps-ir"); |
2036 } | 2036 } |
2037 if (compiler == "dart2js" && configuration["fast_startup"]) { | 2037 if (compiler == "dart2js" && configuration["fast_startup"]) { |
2038 args.add("--fast-startup"); | 2038 args.add("--fast-startup"); |
2039 } | 2039 } |
2040 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { | 2040 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { |
2041 args.add("--use-kernel"); | 2041 args.add("--use-kernel"); |
2042 } | 2042 } |
2043 if (compiler == "none" && | |
2044 configuration["kernel_snapshot_to_use_in_vm"] != '') { | |
2045 // Kernel snapshot argument should be first in the list. | |
2046 args.insert(0, | |
2047 "--run_vm_test_with_kernel_snapshot=${configuration['kernel_snapshot_t o_use_in_vm']}"); | |
2048 args.add("--use_dart_frontend"); | |
siva
2017/05/15 04:42:56
Why not use the same scheme as used with the compi
aam
2017/05/16 00:18:02
If we are to support vm testing with or without ke
siva
2017/05/17 18:36:46
I was thinking if we changed test_configuration.da
| |
2049 } | |
2043 return args; | 2050 return args; |
2044 } | 2051 } |
2045 | 2052 |
2046 static bool isBrowserRuntime(String runtime) { | 2053 static bool isBrowserRuntime(String runtime) { |
2047 const BROWSERS = const [ | 2054 const BROWSERS = const [ |
2048 'drt', | 2055 'drt', |
2049 'dartium', | 2056 'dartium', |
2050 'ie9', | 2057 'ie9', |
2051 'ie10', | 2058 'ie10', |
2052 'ie11', | 2059 'ie11', |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2229 } | 2236 } |
2230 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2237 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
2231 ++shortNameCounter; | 2238 ++shortNameCounter; |
2232 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2239 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
2233 path = "short${shortNameCounter}_$pathEnd"; | 2240 path = "short${shortNameCounter}_$pathEnd"; |
2234 } | 2241 } |
2235 } | 2242 } |
2236 return path; | 2243 return path; |
2237 } | 2244 } |
2238 } | 2245 } |
OLD | NEW |