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

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

Issue 22859009: Changes to how we handle fancy stacks: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 'Records all the commands that need to be executed and writes it ' 313 'Records all the commands that need to be executed and writes it '
314 'out to a file.', 314 'out to a file.',
315 ['--replay_from_file'], 315 ['--replay_from_file'],
316 [], 316 [],
317 null), 317 null),
318 new _TestOptionSpecification( 318 new _TestOptionSpecification(
319 'vm-options', 319 'vm-options',
320 'Extra options to send to the vm when running', 320 'Extra options to send to the vm when running',
321 ['--vm-options'], 321 ['--vm-options'],
322 [], 322 [],
323 null),]; 323 null),
324 new _TestOptionSpecification(
325 'fancy_stacks',
326 'Use filtered and formatted stack traces in vm and html configs',
327 ['--fancy_stacks'],
nweiz 2013/08/14 23:56:59 This option should be hyphenated rather than under
gram 2013/08/15 22:36:43 I saw others here that had underscores and thought
328 [],
329 false,
330 'bool'),];
324 } 331 }
325 332
326 333
327 /** 334 /**
328 * Parse a list of strings as test options. 335 * Parse a list of strings as test options.
329 * 336 *
330 * Returns a list of configurations in which to run the 337 * Returns a list of configurations in which to run the
331 * tests. Configurations are maps mapping from option keys to 338 * tests. Configurations are maps mapping from option keys to
332 * values. When encountering the first non-option string, the rest 339 * values. When encountering the first non-option string, the rest
333 * of the arguments are stored in the returned Map under the 'rest' 340 * of the arguments are stored in the returned Map under the 'rest'
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 return option; 763 return option;
757 } 764 }
758 } 765 }
759 print('Unknown test option $name'); 766 print('Unknown test option $name');
760 exit(1); 767 exit(1);
761 } 768 }
762 769
763 770
764 List<_TestOptionSpecification> _options; 771 List<_TestOptionSpecification> _options;
765 } 772 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698