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

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

Issue 29773006: Changes to run tests on Dartium content shell on Android. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 // 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 "dart:math"; 8 import "dart:math";
9 import "drt_updater.dart"; 9 import "drt_updater.dart";
10 import "test_suite.dart"; 10 import "test_suite.dart";
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 d8: Run JavaScript from the command line using v8. 80 d8: Run JavaScript from the command line using v8.
81 81
82 jsshell: Run JavaScript from the command line using firefox js-shell. 82 jsshell: Run JavaScript from the command line using firefox js-shell.
83 83
84 drt: Run Dart or JavaScript in the headless version of Chrome, 84 drt: Run Dart or JavaScript in the headless version of Chrome,
85 Content shell. 85 Content shell.
86 86
87 dartium: Run Dart or JavaScript in Dartium. 87 dartium: Run Dart or JavaScript in Dartium.
88 88
89 drtOnAndroid: Run Dart or JavaScript in Dartium content shell
90 on Android.
91
89 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]: 92 [ff | chrome | safari | ie9 | ie10 | opera | chromeOnAndroid]:
90 Run JavaScript in the specified browser. 93 Run JavaScript in the specified browser.
91 94
92 none: No runtime, compile only (for example, used for dartanalyzer static 95 none: No runtime, compile only (for example, used for dartanalyzer static
93 analysis tests).''', 96 analysis tests).''',
94 ['-r', '--runtime'], 97 ['-r', '--runtime'],
95 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox', 98 ['vm', 'd8', 'jsshell', 'drt', 'dartium', 'ff', 'firefox',
96 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'chromeOnAndroid', 99 'chrome', 'safari', 'ie9', 'ie10', 'opera', 'chromeOnAndroid',
97 'none'], 100 'drtOnAndroid', 'none'],
98 'vm'), 101 'vm'),
99 new _TestOptionSpecification( 102 new _TestOptionSpecification(
100 'arch', 103 'arch',
101 'The architecture to run tests for', 104 'The architecture to run tests for',
102 ['-a', '--arch'], 105 ['-a', '--arch'],
103 ['all', 'ia32', 'x64', 'simarm', 'simmips', 'arm', 'mips'], 106 ['all', 'ia32', 'x64', 'simarm', 'simmips', 'arm', 'mips'],
104 'ia32'), 107 'ia32'),
105 new _TestOptionSpecification( 108 new _TestOptionSpecification(
106 'system', 109 'system',
107 'The operating system to run tests on', 110 'The operating system to run tests on',
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 'bool' 298 'bool'
296 ), 299 ),
297 new _TestOptionSpecification( 300 new _TestOptionSpecification(
298 'local_ip', 301 'local_ip',
299 'IP address the http servers should listen on.' 302 'IP address the http servers should listen on.'
300 'This address is also used for browsers to connect.', 303 'This address is also used for browsers to connect.',
301 ['--local_ip'], 304 ['--local_ip'],
302 [], 305 [],
303 '127.0.0.1'), 306 '127.0.0.1'),
304 new _TestOptionSpecification( 307 new _TestOptionSpecification(
308 'test_server_port',
309 'Port for test http server.',
310 ['--test_server_port'],
311 [],
312 0),
313 new _TestOptionSpecification(
314 'test_server_cross_origin_port',
315 'Port for test http server cross origin.',
316 ['--test_server_cross_origin_port'],
317 [],
318 0),
319 new _TestOptionSpecification(
320 'test_driver_port',
321 'Port for http test driver server.',
322 ['--test_driver_port'],
323 [],
324 0),
325 new _TestOptionSpecification(
326 'test_driver_error_port',
327 'Port for http test driver server errors.',
328 ['--test_driver_error_port'],
329 [],
330 0),
kustermann 2013/10/24 09:36:00 You've the 'int.parse()' all over the place. Pleas
zra 2013/10/24 15:34:50 Done.
331 new _TestOptionSpecification(
305 'record_to_file', 332 'record_to_file',
306 'Records all the commands that need to be executed and writes it ' 333 'Records all the commands that need to be executed and writes it '
307 'out to a file.', 334 'out to a file.',
308 ['--record_to_file'], 335 ['--record_to_file'],
309 [], 336 [],
310 null), 337 null),
311 new _TestOptionSpecification( 338 new _TestOptionSpecification(
312 'replay_from_file', 339 'replay_from_file',
313 'Records all the commands that need to be executed and writes it ' 340 'Records all the commands that need to be executed and writes it '
314 'out to a file.', 341 'out to a file.',
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 validRuntimes = const ['d8', 'jsshell', 'drt', 'none', 'dartium', 533 validRuntimes = const ['d8', 'jsshell', 'drt', 'none', 'dartium',
507 'ff', 'chrome', 'safari', 'ie9', 'ie10', 534 'ff', 'chrome', 'safari', 'ie9', 'ie10',
508 'opera', 'chromeOnAndroid']; 535 'opera', 'chromeOnAndroid'];
509 break; 536 break;
510 case 'dartanalyzer': 537 case 'dartanalyzer':
511 case 'dart2analyzer': 538 case 'dart2analyzer':
512 validRuntimes = const ['none']; 539 validRuntimes = const ['none'];
513 break; 540 break;
514 case 'none': 541 case 'none':
515 case 'dart2dart': 542 case 'dart2dart':
516 validRuntimes = const ['vm', 'drt', 'dartium']; 543 validRuntimes = const ['vm', 'drt', 'dartium', 'drtOnAndroid'];
517 break; 544 break;
518 } 545 }
519 if (!validRuntimes.contains(config['runtime'])) { 546 if (!validRuntimes.contains(config['runtime'])) {
520 isValid = false; 547 isValid = false;
521 print("Warning: combination of compiler '${config['compiler']}' and " 548 print("Warning: combination of compiler '${config['compiler']}' and "
522 "runtime '${config['runtime']}' is invalid. " 549 "runtime '${config['runtime']}' is invalid. "
523 "Skipping this combination."); 550 "Skipping this combination.");
524 } 551 }
525 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') && 552 if ((config['runtime'] == 'ie9' || config['runtime'] == 'ie10') &&
526 Platform.operatingSystem != 'windows') { 553 Platform.operatingSystem != 'windows') {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 return option; 782 return option;
756 } 783 }
757 } 784 }
758 print('Unknown test option $name'); 785 print('Unknown test option $name');
759 exit(1); 786 exit(1);
760 } 787 }
761 788
762 789
763 List<_TestOptionSpecification> _options; 790 List<_TestOptionSpecification> _options;
764 } 791 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698