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

Side by Side Diff: utils/testrunner/testrunner.dart

Issue 11033042: Change imports etc to new syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 //#!/usr/bin/env dart 1 //#!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /** 6 /**
7 * testrunner is a program to run Dart unit tests. Unlike $DART/tools/test.dart, 7 * testrunner is a program to run Dart unit tests. Unlike $DART/tools/test.dart,
8 * this program is intended for 3rd parties to be able to run unit tests in 8 * this program is intended for 3rd parties to be able to run unit tests in
9 * a batched fashion. As such, it adds some features and removes others. Some 9 * a batched fashion. As such, it adds some features and removes others. Some
10 * of the removed features are: 10 * of the removed features are:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 * Layout file (re)generation can be done using `--regenerate`. This will 63 * Layout file (re)generation can be done using `--regenerate`. This will
64 * create or update the layout files (and implicitly pass the tests). 64 * create or update the layout files (and implicitly pass the tests).
65 * 65 *
66 * The wrapping and execution of test files is handled by test_pipeline.dart, 66 * The wrapping and execution of test files is handled by test_pipeline.dart,
67 * which is run in an isolate. The `--pipeline` argument can be used to 67 * which is run in an isolate. The `--pipeline` argument can be used to
68 * specify a different script for running a test file pipeline, allowing 68 * specify a different script for running a test file pipeline, allowing
69 * customization of the pipeline. 69 * customization of the pipeline.
70 */ 70 */
71 71
72 // TODO - layout tests that use PNGs rather than DRT text render dumps. 72 // TODO - layout tests that use PNGs rather than DRT text render dumps.
73 #library('testrunner'); 73 library testrunner;
74 #import('dart:io'); 74 import 'dart:io';
75 #import('dart:isolate'); 75 import 'dart:isolate';
76 #import('dart:math'); 76 import 'dart:math';
77 #import('../../pkg/args/lib/args.dart'); 77 import '../../pkg/args/lib/args.dart';
78 78
79 #source('options.dart'); 79 part 'options.dart';
80 #source('utils.dart'); 80 part 'utils.dart';
81 81
82 /** The set of [PipelineRunner]s to execute. */ 82 /** The set of [PipelineRunner]s to execute. */
83 List _tasks; 83 List _tasks;
84 84
85 /** The maximum number of pipelines that can run concurrently. */ 85 /** The maximum number of pipelines that can run concurrently. */
86 int _maxTasks; 86 int _maxTasks;
87 87
88 /** The number of pipelines currently running. */ 88 /** The number of pipelines currently running. */
89 int _numTasks; 89 int _numTasks;
90 90
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 dirs.add('.'); // Use current working directory as default. 269 dirs.add('.'); // Use current working directory as default.
270 } 270 }
271 buildFileList(dirs, 271 buildFileList(dirs,
272 new RegExp(options['test-file-pattern']), options['recurse'], 272 new RegExp(options['test-file-pattern']), options['recurse'],
273 (f) => processTests(config, f)); 273 (f) => processTests(config, f));
274 } 274 }
275 } 275 }
276 } 276 }
277 277
278 278
OLDNEW
« utils/testrunner/run_pipeline.dart ('K') | « utils/testrunner/run_pipeline.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698