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

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

Issue 11093033: Added ability to have custom test HTTP server handlers in the test directories. (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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 'package:args/args.dart';
78 78
79 part 'options.dart'; 79 part 'options.dart';
80 part '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
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 dirs.add('.'); // Use current working directory as default. 274 dirs.add('.'); // Use current working directory as default.
275 } 275 }
276 buildFileList(dirs, 276 buildFileList(dirs,
277 new RegExp(options['test-file-pattern']), options['recurse'], 277 new RegExp(options['test-file-pattern']), options['recurse'],
278 (f) => processTests(config, f)); 278 (f) => processTests(config, f));
279 } 279 }
280 } 280 }
281 } 281 }
282 282
283 283
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698