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

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

Issue 10830281: Fix test_suite.dart to fix dartc tests (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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 var arguments = new List.from(vmOptions); 470 var arguments = new List.from(vmOptions);
471 arguments.addAll(args); 471 arguments.addAll(args);
472 return <Command>[new Command(shellPath(), arguments)]; 472 return <Command>[new Command(shellPath(), arguments)];
473 473
474 case 'dartc': 474 case 'dartc':
475 for (var vmOption in vmOptions) {
476 args.add(vmOption);
477 }
475 return <Command>[new Command(shellPath(), args)]; 478 return <Command>[new Command(shellPath(), args)];
476 479
477 default: 480 default:
478 throw 'Unknown compiler ${configuration["compiler"]}'; 481 throw 'Unknown compiler ${configuration["compiler"]}';
479 } 482 }
480 } 483 }
481 484
482 Function makeTestCaseCreator(Map optionsFromFile) { 485 Function makeTestCaseCreator(Map optionsFromFile) {
483 return (Path filePath, 486 return (Path filePath,
484 bool isNegative, 487 bool isNegative,
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 "isolateStubs": isolateStubs, 1033 "isolateStubs": isolateStubs,
1031 "containsDomImport": containsDomImport, 1034 "containsDomImport": containsDomImport,
1032 "isLibraryDefinition": isLibraryDefinition, 1035 "isLibraryDefinition": isLibraryDefinition,
1033 "containsSourceOrImport": containsSourceOrImport, 1036 "containsSourceOrImport": containsSourceOrImport,
1034 "numStaticTypeAnnotations": numStaticTypeAnnotations, 1037 "numStaticTypeAnnotations": numStaticTypeAnnotations,
1035 "numCompileTimeAnnotations": numCompileTimeAnnotations}; 1038 "numCompileTimeAnnotations": numCompileTimeAnnotations};
1036 } 1039 }
1037 1040
1038 List<List<String>> getVmOptions(Map optionsFromFile) { 1041 List<List<String>> getVmOptions(Map optionsFromFile) {
1039 bool needsVmOptions = 1042 bool needsVmOptions =
1040 Contains(configuration['compiler'], const ['none', 'dart2dart']) && 1043 Contains(configuration['compiler'], const ['none', 'dart2dart', 'dartc'] ) &&
1041 Contains(configuration['runtime'], const ['vm', 'drt', 'dartium']); 1044 Contains(configuration['runtime'], const ['none', 'vm', 'drt', 'dartium' ]);
1042 if (!needsVmOptions) return [[]]; 1045 if (!needsVmOptions) return [[]];
1043 return optionsFromFile['vmOptions']; 1046 return optionsFromFile['vmOptions'];
1044 } 1047 }
1045 } 1048 }
1046 1049
1047 1050
1048 class DartcCompilationTestSuite extends StandardTestSuite { 1051 class DartcCompilationTestSuite extends StandardTestSuite {
1049 List<String> _testDirs; 1052 List<String> _testDirs;
1050 int activityCount = 0; 1053 int activityCount = 0;
1051 1054
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 * $noCrash tests are expected to be flaky but not crash 1435 * $noCrash tests are expected to be flaky but not crash
1433 * $pass tests are expected to pass 1436 * $pass tests are expected to pass
1434 * $failOk tests are expected to fail that we won't fix 1437 * $failOk tests are expected to fail that we won't fix
1435 * $fail tests are expected to fail that we should fix 1438 * $fail tests are expected to fail that we should fix
1436 * $crash tests are expected to crash that we should fix 1439 * $crash tests are expected to crash that we should fix
1437 * $timeout tests are allowed to timeout 1440 * $timeout tests are allowed to timeout
1438 """; 1441 """;
1439 print(report); 1442 print(report);
1440 } 1443 }
1441 } 1444 }
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