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

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

Issue 10356125: Fix dartc part of test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 } 1041 }
1042 1042
1043 void processDirectory() { 1043 void processDirectory() {
1044 directoryPath = '$dartDir/$directoryPath'; 1044 directoryPath = '$dartDir/$directoryPath';
1045 // Enqueueing the directory listers is an activity. 1045 // Enqueueing the directory listers is an activity.
1046 activityStarted(); 1046 activityStarted();
1047 for (String testDir in _testDirs) { 1047 for (String testDir in _testDirs) {
1048 Directory dir = new Directory("$directoryPath/$testDir"); 1048 Directory dir = new Directory("$directoryPath/$testDir");
1049 if (dir.existsSync()) { 1049 if (dir.existsSync()) {
1050 activityStarted(); 1050 activityStarted();
1051 dir.onError = (s) {
1052 throw s;
1053 };
1054 var lister = dir.list(recursive: listRecursively()); 1051 var lister = dir.list(recursive: listRecursively());
1055 lister.onFile = processFile; 1052 lister.onFile = processFile;
1056 lister.onDone = (ignore) => activityCompleted(); 1053 lister.onDone = (ignore) => activityCompleted();
1057 } 1054 }
1058 } 1055 }
1059 // Completed the enqueueing of listers. 1056 // Completed the enqueueing of listers.
1060 activityCompleted(); 1057 activityCompleted();
1061 } 1058 }
1062 } 1059 }
1063 1060
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 testClasses = <String>[]; 1105 testClasses = <String>[];
1109 // Do not read the status file. 1106 // Do not read the status file.
1110 // All exclusions are hardcoded in this script, as they are in testcfg.py. 1107 // All exclusions are hardcoded in this script, as they are in testcfg.py.
1111 processDirectory(); 1108 processDirectory();
1112 } 1109 }
1113 1110
1114 void processDirectory() { 1111 void processDirectory() {
1115 directoryPath = '$dartDir/$directoryPath'; 1112 directoryPath = '$dartDir/$directoryPath';
1116 Directory dir = new Directory(directoryPath); 1113 Directory dir = new Directory(directoryPath);
1117 1114
1118 dir.onError = (s) {
1119 throw s;
1120 };
1121 var lister = dir.list(recursive: true); 1115 var lister = dir.list(recursive: true);
1122 lister.onFile = processFile; 1116 lister.onFile = processFile;
1123 lister.onDone = createTest; 1117 lister.onDone = createTest;
1124 } 1118 }
1125 1119
1126 void processFile(String filename) { 1120 void processFile(String filename) {
1127 if (!isTestFile(filename)) return; 1121 if (!isTestFile(filename)) return;
1128 1122
1129 int index = filename.indexOf('compiler/javatests/com/google/dart'); 1123 int index = filename.indexOf('compiler/javatests/com/google/dart');
1130 if (index != -1) { 1124 if (index != -1) {
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 * $noCrash tests are expected to be flaky but not crash 1393 * $noCrash tests are expected to be flaky but not crash
1400 * $pass tests are expected to pass 1394 * $pass tests are expected to pass
1401 * $failOk tests are expected to fail that we won't fix 1395 * $failOk tests are expected to fail that we won't fix
1402 * $fail tests are expected to fail that we should fix 1396 * $fail tests are expected to fail that we should fix
1403 * $crash tests are expected to crash that we should fix 1397 * $crash tests are expected to crash that we should fix
1404 * $timeout tests are allowed to timeout 1398 * $timeout tests are allowed to timeout
1405 """; 1399 """;
1406 print(report); 1400 print(report);
1407 } 1401 }
1408 } 1402 }
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