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

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

Issue 10823288: Speculative fix for dartc problem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 ['--enable_checked_mode', '$tempDir/out.dart']); 460 ['--enable_checked_mode', '$tempDir/out.dart']);
461 commands.add(new Command( 461 commands.add(new Command(
462 TestUtils.vmFileName(configuration), 462 TestUtils.vmFileName(configuration),
463 vmArguments)); 463 vmArguments));
464 } else { 464 } else {
465 throw 'Unsupported runtime ${configuration["runtime"]} for dart2dart'; 465 throw 'Unsupported runtime ${configuration["runtime"]} for dart2dart';
466 } 466 }
467 return commands; 467 return commands;
468 468
469 case 'none': 469 case 'none':
470 case 'dartc':
470 var arguments = new List.from(vmOptions); 471 var arguments = new List.from(vmOptions);
471 arguments.addAll(args); 472 arguments.addAll(args);
472 return <Command>[new Command(shellPath(), arguments)]; 473 return <Command>[new Command(shellPath(), arguments)];
473 474
474 case 'dartc':
475 return <Command>[new Command(shellPath(), args)];
476
477 default: 475 default:
478 throw 'Unknown compiler ${configuration["compiler"]}'; 476 throw 'Unknown compiler ${configuration["compiler"]}';
479 } 477 }
480 } 478 }
481 479
482 Function makeTestCaseCreator(Map optionsFromFile) { 480 Function makeTestCaseCreator(Map optionsFromFile) {
483 return (Path filePath, 481 return (Path filePath,
484 bool isNegative, 482 bool isNegative,
485 [bool isNegativeIfChecked = false, 483 [bool isNegativeIfChecked = false,
486 bool hasFatalTypeErrors = false, 484 bool hasFatalTypeErrors = false,
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 * $noCrash tests are expected to be flaky but not crash 1430 * $noCrash tests are expected to be flaky but not crash
1433 * $pass tests are expected to pass 1431 * $pass tests are expected to pass
1434 * $failOk tests are expected to fail that we won't fix 1432 * $failOk tests are expected to fail that we won't fix
1435 * $fail tests are expected to fail that we should fix 1433 * $fail tests are expected to fail that we should fix
1436 * $crash tests are expected to crash that we should fix 1434 * $crash tests are expected to crash that we should fix
1437 * $timeout tests are allowed to timeout 1435 * $timeout tests are allowed to timeout
1438 """; 1436 """;
1439 print(report); 1437 print(report);
1440 } 1438 }
1441 } 1439 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698