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

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 'raw-stacks',
326 'Use unformatted stack traces in vm and html configs',
327 ['--raw-stacks'],
328 [],
329 false,
330 'bool'),
331 new _TestOptionSpecification(
332 'filter-stacks',
333 'Use filtered stack traces in vm and html configs',
334 ['--filter-stacks'],
335 [],
336 false,
337 'bool')];
324 } 338 }
325 339
326 340
327 /** 341 /**
328 * Parse a list of strings as test options. 342 * Parse a list of strings as test options.
329 * 343 *
330 * Returns a list of configurations in which to run the 344 * Returns a list of configurations in which to run the
331 * tests. Configurations are maps mapping from option keys to 345 * tests. Configurations are maps mapping from option keys to
332 * values. When encountering the first non-option string, the rest 346 * values. When encountering the first non-option string, the rest
333 * of the arguments are stored in the returned Map under the 'rest' 347 * 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; 770 return option;
757 } 771 }
758 } 772 }
759 print('Unknown test option $name'); 773 print('Unknown test option $name');
760 exit(1); 774 exit(1);
761 } 775 }
762 776
763 777
764 List<_TestOptionSpecification> _options; 778 List<_TestOptionSpecification> _options;
765 } 779 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698