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

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

Issue 218683009: test.dart: Add timeout for browsers that are started but do not fetch tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add null check. Created 6 years, 8 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
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 * Tool for identifying stale test lines. Used when updating co19. 6 * Tool for identifying stale test lines. Used when updating co19.
7 * 7 *
8 * Usage: 8 * Usage:
9 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/scrub_status_file.dart :] 9 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/scrub_status_file.dart :]
10 */ 10 */
11 11
12 // TODO(ahe): Consider generalizing this. 12 // TODO(ahe): Consider generalizing this.
13 13
14 import 'dart:io'; 14 import 'dart:io';
15 15
16 import 'status_file_parser.dart'; 16 import 'status_file_parser.dart';
17 import 'utils.dart';
17 18
18 const List<String> CO19_STATUS_FILES = const <String>[ 19 const List<String> CO19_STATUS_FILES = const <String>[
19 'tests/co19/co19-compiler.status', 20 'tests/co19/co19-compiler.status',
20 'tests/co19/co19-dart2dart.status', 21 'tests/co19/co19-dart2dart.status',
21 'tests/co19/co19-dart2js.status', 22 'tests/co19/co19-dart2js.status',
22 'tests/co19/co19-runtime.status']; 23 'tests/co19/co19-runtime.status'];
23 24
24 void onSectionsRead(String statusFile, List sections) { 25 void onSectionsRead(String statusFile, List sections) {
25 for (var section in sections) { 26 for (var section in sections) {
26 for (var rule in section.testRules) { 27 for (var rule in section.testRules) {
27 String name = rule.name; 28 String name = rule.name;
28 if (name == '*') continue; 29 if (name == '*') continue;
29 String path = 'tests/co19/src/$name.dart'; 30 String path = 'tests/co19/src/$name.dart';
30 File file = new File(path); 31 File file = new File(path);
31 if (!file.existsSync()) { 32 if (!file.existsSync()) {
32 print('$statusFile: $path: no such file'); 33 print('$statusFile: $path: no such file');
33 } 34 }
34 } 35 }
35 } 36 }
36 } 37 }
37 38
38 void readStatusFile(String path) { 39 void readStatusFile(String path) {
39 var sections = []; 40 var sections = [];
40 ReadConfigurationInto(path, 41 ReadConfigurationInto(new Path(path),
41 sections, 42 sections,
42 () => onSectionsRead(path, sections)); 43 () => onSectionsRead(path, sections));
43 } 44 }
44 45
45 void main() { 46 void main() {
46 CO19_STATUS_FILES.forEach(readStatusFile); 47 CO19_STATUS_FILES.forEach(readStatusFile);
kustermann 2014/04/03 12:18:56 I don't think this file is used any more, we have
47 } 48 }
OLDNEW
« tools/testing/dart/browser_controller.dart ('K') | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698