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

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

Issue 150433003: Version 1.2.0-dev.2.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 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 | « dart/tools/test.dart ('k') | dart/tools/testing/dart/test_progress.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "drt_updater.dart"; 8 import "drt_updater.dart";
9 import "test_suite.dart"; 9 import "test_suite.dart";
10 10
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 ), 328 ),
329 new _TestOptionSpecification( 329 new _TestOptionSpecification(
330 'clear_safari_cache', 330 'clear_safari_cache',
331 'Clear the safari cache (i.e., delete it).', 331 'Clear the safari cache (i.e., delete it).',
332 ['--clear_safari_cache'], 332 ['--clear_safari_cache'],
333 [], 333 [],
334 false, 334 false,
335 'bool' 335 'bool'
336 ), 336 ),
337 new _TestOptionSpecification( 337 new _TestOptionSpecification(
338 'copy_coredumps',
339 'If we see a crash that we did not expect, copy the core dumps. '
340 'to /tmp',
341 ['--copy-coredumps'],
342 [],
343 false,
344 'bool'
345 ),
346 new _TestOptionSpecification(
338 'local_ip', 347 'local_ip',
339 'IP address the http servers should listen on.' 348 'IP address the http servers should listen on.'
340 'This address is also used for browsers to connect.', 349 'This address is also used for browsers to connect.',
341 ['--local_ip'], 350 ['--local_ip'],
342 [], 351 [],
343 '127.0.0.1'), 352 '127.0.0.1'),
344 new _TestOptionSpecification( 353 new _TestOptionSpecification(
345 'test_server_port', 354 'test_server_port',
346 'Port for test http server.', 355 'Port for test http server.',
347 ['--test_server_port'], 356 ['--test_server_port'],
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 isValid = false; 618 isValid = false;
610 print("Error: shard index is ${config['shard']} out of " 619 print("Error: shard index is ${config['shard']} out of "
611 "${config['shards']} shards"); 620 "${config['shards']} shards");
612 } 621 }
613 622
614 if (config['use_repository_packages'] && config['use_public_packages']) { 623 if (config['use_repository_packages'] && config['use_public_packages']) {
615 isValid = false; 624 isValid = false;
616 print("Cannot have both --use-repository-packages and " 625 print("Cannot have both --use-repository-packages and "
617 "--use-public-packages"); 626 "--use-public-packages");
618 } 627 }
628
619 return isValid; 629 return isValid;
620 } 630 }
621 631
622 /** 632 /**
623 * Recursively expand a configuration with multiple values per key 633 * Recursively expand a configuration with multiple values per key
624 * into a list of configurations with exactly one value per key. 634 * into a list of configurations with exactly one value per key.
625 */ 635 */
626 List<Map> _expandConfigurations(Map configuration) { 636 List<Map> _expandConfigurations(Map configuration) {
627 // Expand the pseudo-values such as 'all'. 637 // Expand the pseudo-values such as 'all'.
628 if (configuration['arch'] == 'all') { 638 if (configuration['arch'] == 'all') {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 return option; 839 return option;
830 } 840 }
831 } 841 }
832 print('Unknown test option $name'); 842 print('Unknown test option $name');
833 exit(1); 843 exit(1);
834 } 844 }
835 845
836 846
837 List<_TestOptionSpecification> _options; 847 List<_TestOptionSpecification> _options;
838 } 848 }
OLDNEW
« no previous file with comments | « dart/tools/test.dart ('k') | dart/tools/testing/dart/test_progress.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698