| 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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 String compiler, String dir, vmOptions, optionsFromFile) { | 1328 String compiler, String dir, vmOptions, optionsFromFile) { |
| 1329 assert (['dart2js', 'dart2dart'].contains(compiler)); | 1329 assert (['dart2js', 'dart2dart'].contains(compiler)); |
| 1330 String executable = compilerPath; | 1330 String executable = compilerPath; |
| 1331 List<String> args = TestUtils.standardOptions(configuration); | 1331 List<String> args = TestUtils.standardOptions(configuration); |
| 1332 String packageRoot = | 1332 String packageRoot = |
| 1333 packageRootArgument(optionsFromFile['packageRoot']); | 1333 packageRootArgument(optionsFromFile['packageRoot']); |
| 1334 if (packageRoot != null) { | 1334 if (packageRoot != null) { |
| 1335 args.add(packageRoot); | 1335 args.add(packageRoot); |
| 1336 } | 1336 } |
| 1337 args.add('--out=$outputFile'); | 1337 args.add('--out=$outputFile'); |
| 1338 if (configuration['csp']) args.add('--csp'); |
| 1338 args.add(inputFile); | 1339 args.add(inputFile); |
| 1339 args.addAll(optionsFromFile['sharedOptions']); | 1340 args.addAll(optionsFromFile['sharedOptions']); |
| 1340 if (executable.endsWith('.dart')) { | 1341 if (executable.endsWith('.dart')) { |
| 1341 // Run the compiler script via the Dart VM. | 1342 // Run the compiler script via the Dart VM. |
| 1342 args.insert(0, executable); | 1343 args.insert(0, executable); |
| 1343 executable = dartVmBinaryFileName; | 1344 executable = dartVmBinaryFileName; |
| 1344 } | 1345 } |
| 1345 return CommandBuilder.instance.getCompilationCommand( | 1346 return CommandBuilder.instance.getCompilationCommand( |
| 1346 compiler, outputFile, !useSdk, | 1347 compiler, outputFile, !useSdk, |
| 1347 dart2JsBootstrapDependencies, compilerPath, args, environmentOverrides); | 1348 dart2JsBootstrapDependencies, compilerPath, args, environmentOverrides); |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2205 * $pass tests are expected to pass | 2206 * $pass tests are expected to pass |
| 2206 * $failOk tests are expected to fail that we won't fix | 2207 * $failOk tests are expected to fail that we won't fix |
| 2207 * $fail tests are expected to fail that we should fix | 2208 * $fail tests are expected to fail that we should fix |
| 2208 * $crash tests are expected to crash that we should fix | 2209 * $crash tests are expected to crash that we should fix |
| 2209 * $timeout tests are allowed to timeout | 2210 * $timeout tests are allowed to timeout |
| 2210 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2211 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2211 """; | 2212 """; |
| 2212 print(report); | 2213 print(report); |
| 2213 } | 2214 } |
| 2214 } | 2215 } |
| OLD | NEW |