Chromium Code Reviews| 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1388 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); | 1388 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); |
| 1389 if (packageRoot != null) { | 1389 if (packageRoot != null) { |
| 1390 args.add(packageRoot); | 1390 args.add(packageRoot); |
| 1391 } | 1391 } |
| 1392 args.addAll(additionalOptions(filePath)); | 1392 args.addAll(additionalOptions(filePath)); |
| 1393 if (configuration['analyzer']) { | 1393 if (configuration['analyzer']) { |
| 1394 args.add('--machine'); | 1394 args.add('--machine'); |
| 1395 args.add('--no-hints'); | 1395 args.add('--no-hints'); |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 if ((configuration["compiler"] == "dartanalyzer" || | |
| 1399 configuration["compiler"] == "dart2analyzer") && | |
| 1400 filePath.filename.contains("dart2js")) { | |
| 1401 args.add("--use-dart2js-libraries"); | |
|
ricow1
2014/05/15 06:50:10
this is a major hack and we should try to do this
Emily Fortuna
2014/05/15 15:21:57
Agreed it's a major hack. I didn't know of a nicer
| |
| 1402 } | |
| 1403 | |
| 1398 bool isMultitest = optionsFromFile["isMultitest"]; | 1404 bool isMultitest = optionsFromFile["isMultitest"]; |
| 1399 List<String> dartOptions = optionsFromFile["dartOptions"]; | 1405 List<String> dartOptions = optionsFromFile["dartOptions"]; |
| 1400 | 1406 |
| 1401 assert(!isMultitest || dartOptions == null); | 1407 assert(!isMultitest || dartOptions == null); |
| 1402 if (dartOptions == null) { | 1408 if (dartOptions == null) { |
| 1403 args.add(filePath.toNativePath()); | 1409 args.add(filePath.toNativePath()); |
| 1404 } else { | 1410 } else { |
| 1405 var executable_name = dartOptions[0]; | 1411 var executable_name = dartOptions[0]; |
| 1406 // TODO(ager): Get rid of this hack when the runtime checkout goes away. | 1412 // TODO(ager): Get rid of this hack when the runtime checkout goes away. |
| 1407 var file = new File(executable_name); | 1413 var file = new File(executable_name); |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2211 * $pass tests are expected to pass | 2217 * $pass tests are expected to pass |
| 2212 * $failOk tests are expected to fail that we won't fix | 2218 * $failOk tests are expected to fail that we won't fix |
| 2213 * $fail tests are expected to fail that we should fix | 2219 * $fail tests are expected to fail that we should fix |
| 2214 * $crash tests are expected to crash that we should fix | 2220 * $crash tests are expected to crash that we should fix |
| 2215 * $timeout tests are allowed to timeout | 2221 * $timeout tests are allowed to timeout |
| 2216 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2222 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2217 """; | 2223 """; |
| 2218 print(report); | 2224 print(report); |
| 2219 } | 2225 } |
| 2220 } | 2226 } |
| OLD | NEW |