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

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

Issue 9320038: Move test.dart's check for missing test directories from co19 to general framework. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment, add error if status file not found. Created 8 years, 10 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 | « tools/testing/dart/status_file_parser.dart ('k') | 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 #library("test_suite"); 5 #library("test_suite");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("status_file_parser.dart"); 8 #import("status_file_parser.dart");
9 #import("test_runner.dart"); 9 #import("test_runner.dart");
10 #import("multitest.dart"); 10 #import("multitest.dart");
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 statusFileRead); 220 statusFileRead);
221 } 221 }
222 } 222 }
223 223
224 void processDirectory() { 224 void processDirectory() {
225 directoryPath = '$dartDir/$directoryPath'; 225 directoryPath = '$dartDir/$directoryPath';
226 Directory dir = new Directory(directoryPath); 226 Directory dir = new Directory(directoryPath);
227 dir.errorHandler = (s) { 227 dir.errorHandler = (s) {
228 throw s; 228 throw s;
229 }; 229 };
230 dir.fileHandler = processFile; 230 dir.existsHandler = (bool exists) {
231 dir.doneHandler = directoryListingDone; 231 if (!exists) {
232 dir.list(recursive: listRecursively()); 232 print('Directory containing tests not found: $directoryPath');
233 directoryListingDone(false);
234 } else {
235 dir.fileHandler = processFile;
236 dir.doneHandler = directoryListingDone;
237 dir.list(recursive: listRecursively());
238 }
239 };
240 dir.exists();
233 } 241 }
234 242
235 void enqueueTestCaseFromTestInformation(TestInformation info) { 243 void enqueueTestCaseFromTestInformation(TestInformation info) {
236 var filename = info.filename; 244 var filename = info.filename;
237 var optionsFromFile = info.optionsFromFile; 245 var optionsFromFile = info.optionsFromFile;
238 var isNegative = info.isNegative; 246 var isNegative = info.isNegative;
239 247
240 // Look up expectations in status files using a modified file path. 248 // Look up expectations in status files using a modified file path.
241 String testName; 249 String testName;
242 filename = filename.replaceAll('\\', '/'); 250 filename = filename.replaceAll('\\', '/');
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 * $noCrash tests are expected to be flaky but not crash 1074 * $noCrash tests are expected to be flaky but not crash
1067 * $pass tests are expected to pass 1075 * $pass tests are expected to pass
1068 * $failOk tests are expected to fail that we won't fix 1076 * $failOk tests are expected to fail that we won't fix
1069 * $fail tests are expected to fail that we should fix 1077 * $fail tests are expected to fail that we should fix
1070 * $crash tests are expected to crash that we should fix 1078 * $crash tests are expected to crash that we should fix
1071 * $timeout tests are allowed to timeout 1079 * $timeout tests are allowed to timeout
1072 """; 1080 """;
1073 print(report); 1081 print(report);
1074 } 1082 }
1075 } 1083 }
OLDNEW
« no previous file with comments | « tools/testing/dart/status_file_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698