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

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

Issue 15944005: Record/replay support to test.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « tools/testing/dart/record_and_replay.dart ('k') | tools/testing/dart/test_runner.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 "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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 [], 311 [],
312 false, 312 false,
313 'bool' 313 'bool'
314 ), 314 ),
315 new _TestOptionSpecification( 315 new _TestOptionSpecification(
316 'local_ip', 316 'local_ip',
317 'IP address the http servers should listen on.' 317 'IP address the http servers should listen on.'
318 'This address is also used for browsers to connect.', 318 'This address is also used for browsers to connect.',
319 ['--local_ip'], 319 ['--local_ip'],
320 [], 320 [],
321 '127.0.0.1'),]; 321 '127.0.0.1'),
322 new _TestOptionSpecification(
323 'record_to_file',
324 'Records all the commands that need to be executed and writes it '
325 'out to a file.',
326 ['--record_to_file'],
327 [],
328 null),
329 new _TestOptionSpecification(
330 'replay_from_file',
331 'Records all the commands that need to be executed and writes it '
332 'out to a file.',
333 ['--replay_from_file'],
334 [],
335 null),];
322 } 336 }
323 337
324 338
325 /** 339 /**
326 * Parse a list of strings as test options. 340 * Parse a list of strings as test options.
327 * 341 *
328 * Returns a list of configurations in which to run the 342 * Returns a list of configurations in which to run the
329 * tests. Configurations are maps mapping from option keys to 343 * tests. Configurations are maps mapping from option keys to
330 * values. When encountering the first non-option string, the rest 344 * values. When encountering the first non-option string, the rest
331 * of the arguments are stored in the returned Map under the 'rest' 345 * of the arguments are stored in the returned Map under the 'rest'
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 return option; 722 return option;
709 } 723 }
710 } 724 }
711 print('Unknown test option $name'); 725 print('Unknown test option $name');
712 exit(1); 726 exit(1);
713 } 727 }
714 728
715 729
716 List<_TestOptionSpecification> _options; 730 List<_TestOptionSpecification> _options;
717 } 731 }
OLDNEW
« no previous file with comments | « tools/testing/dart/record_and_replay.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698