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 19483008: Add support for passing in vm options to the testing script. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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') | 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 'out to a file.', 335 'out to a file.',
336 ['--record_to_file'], 336 ['--record_to_file'],
337 [], 337 [],
338 null), 338 null),
339 new _TestOptionSpecification( 339 new _TestOptionSpecification(
340 'replay_from_file', 340 'replay_from_file',
341 'Records all the commands that need to be executed and writes it ' 341 'Records all the commands that need to be executed and writes it '
342 'out to a file.', 342 'out to a file.',
343 ['--replay_from_file'], 343 ['--replay_from_file'],
344 [], 344 [],
345 null),
346 new _TestOptionSpecification(
347 'vm-options',
348 'Extra flags to send to the vm when running',
349 ['--vm-options'],
350 [],
345 null),]; 351 null),];
346 } 352 }
347 353
348 354
349 /** 355 /**
350 * Parse a list of strings as test options. 356 * Parse a list of strings as test options.
351 * 357 *
352 * Returns a list of configurations in which to run the 358 * Returns a list of configurations in which to run the
353 * tests. Configurations are maps mapping from option keys to 359 * tests. Configurations are maps mapping from option keys to
354 * values. When encountering the first non-option string, the rest 360 * values. When encountering the first non-option string, the rest
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 return option; 792 return option;
787 } 793 }
788 } 794 }
789 print('Unknown test option $name'); 795 print('Unknown test option $name');
790 exit(1); 796 exit(1);
791 } 797 }
792 798
793 799
794 List<_TestOptionSpecification> _options; 800 List<_TestOptionSpecification> _options;
795 } 801 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698