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

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

Issue 9834070: Shard tests run by test.dart, so they can be distributed to multiple machines. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_options_parser"); 5 #library("test_options_parser");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("dart:builtin"); 8 #import("dart:builtin");
9 #import("drt_updater.dart"); 9 #import("drt_updater.dart");
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 'Print a summary report of the number of tests, by expectation', 144 'Print a summary report of the number of tests, by expectation',
145 ['--report'], 145 ['--report'],
146 [], 146 [],
147 false, 147 false,
148 'bool'), 148 'bool'),
149 new _TestOptionSpecification( 149 new _TestOptionSpecification(
150 'tasks', 150 'tasks',
151 'The number of parallel tasks to run', 151 'The number of parallel tasks to run',
152 ['-j', '--tasks'], 152 ['-j', '--tasks'],
153 [], 153 [],
154 new Platform().numberOfProcessors(), 154 new Platform().numberOfProcessors(),
Bill Hesse 2012/03/23 22:33:56 Fix this stray indentation.
155 'int'),
156 new _TestOptionSpecification(
157 'shards',
158 'The number of instances that the tests will be sharded over',
159 ['--shards'],
160 [],
161 1,
162 'int'),
163 new _TestOptionSpecification(
164 'shard',
165 'The index of this instance when running in sharded mode',
Mads Ager (google) 2012/03/23 23:38:20 Maybe we should add an early bailout check somewhe
166 ['--shard'],
167 [],
168 1,
155 'int'), 169 'int'),
156 new _TestOptionSpecification( 170 new _TestOptionSpecification(
157 'help', 171 'help',
158 'Print list of options', 172 'Print list of options',
159 ['-h', '--help'], 173 ['-h', '--help'],
160 [], 174 [],
161 false, 175 false,
162 'bool'), 176 'bool'),
163 new _TestOptionSpecification( 177 new _TestOptionSpecification(
164 'verbose', 178 'verbose',
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 return option; 557 return option;
544 } 558 }
545 } 559 }
546 print('Unknown test option $name'); 560 print('Unknown test option $name');
547 exit(1); 561 exit(1);
548 } 562 }
549 563
550 564
551 List<_TestOptionSpecification> _options; 565 List<_TestOptionSpecification> _options;
552 } 566 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698