OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 * | 88 * |
89 * Running testrunner with a `--generate-renders` flag will make it create | 89 * Running testrunner with a `--generate-renders` flag will make it create |
90 * .render files for you. | 90 * .render files for you. |
91 */ | 91 */ |
92 | 92 |
93 // TODO - layout tests that use PNGs rather than DRT text render dumps. | 93 // TODO - layout tests that use PNGs rather than DRT text render dumps. |
94 #library('testrunner'); | 94 #library('testrunner'); |
95 #import('dart:io'); | 95 #import('dart:io'); |
96 #import('dart:isolate'); | 96 #import('dart:isolate'); |
97 #import('dart:math'); | 97 #import('dart:math'); |
98 #import('../../pkg/args/args.dart'); | 98 #import('../../pkg/args/lib/args.dart'); |
99 | 99 |
100 #source('configuration.dart'); | 100 #source('configuration.dart'); |
101 #source('dart_task.dart'); | 101 #source('dart_task.dart'); |
102 #source('dart_wrap_task.dart'); | 102 #source('dart_wrap_task.dart'); |
103 #source('dart2js_task.dart'); | 103 #source('dart2js_task.dart'); |
104 #source('delete_task.dart'); | 104 #source('delete_task.dart'); |
105 #source('drt_task.dart'); | 105 #source('drt_task.dart'); |
106 #source('html_wrap_task.dart'); | 106 #source('html_wrap_task.dart'); |
107 #source('macros.dart'); | 107 #source('macros.dart'); |
108 #source('options.dart'); | 108 #source('options.dart'); |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 317 } |
318 buildFileList(dirs, | 318 buildFileList(dirs, |
319 new RegExp(options['test-file-pattern']), options['recurse'], | 319 new RegExp(options['test-file-pattern']), options['recurse'], |
320 (f) => processTests(pipelineTemplate, f)); | 320 (f) => processTests(pipelineTemplate, f)); |
321 } | 321 } |
322 } | 322 } |
323 } | 323 } |
324 } | 324 } |
325 | 325 |
326 | 326 |
OLD | NEW |