OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 return isValid; | 467 return isValid; |
468 } | 468 } |
469 | 469 |
470 /** | 470 /** |
471 * Recursively expand a configuration with multiple values per key | 471 * Recursively expand a configuration with multiple values per key |
472 * into a list of configurations with exactly one value per key. | 472 * into a list of configurations with exactly one value per key. |
473 */ | 473 */ |
474 List<Map> _expandConfigurations(Map configuration) { | 474 List<Map> _expandConfigurations(Map configuration) { |
475 // Expand the pseudo-values such as 'all'. | 475 // Expand the pseudo-values such as 'all'. |
476 if (configuration['arch'] == 'all') { | 476 if (configuration['arch'] == 'all') { |
477 configuration['arch'] = 'ia32,x64'; | 477 configuration['arch'] = 'ia32,x64,simarm,simmips'; |
478 } | 478 } |
479 if (configuration['mode'] == 'all') { | 479 if (configuration['mode'] == 'all') { |
480 configuration['mode'] = 'debug,release'; | 480 configuration['mode'] = 'debug,release'; |
481 } | 481 } |
482 if (configuration['valgrind']) { | 482 if (configuration['valgrind']) { |
483 // TODO(ager): Get rid of this when there is only one checkout and | 483 // TODO(ager): Get rid of this when there is only one checkout and |
484 // we don't have to special case for the runtime checkout. | 484 // we don't have to special case for the runtime checkout. |
485 File valgrindFile = new File('runtime/tools/valgrind.py'); | 485 File valgrindFile = new File('runtime/tools/valgrind.py'); |
486 if (!valgrindFile.existsSync()) { | 486 if (!valgrindFile.existsSync()) { |
487 valgrindFile = new File('../runtime/tools/valgrind.py'); | 487 valgrindFile = new File('../runtime/tools/valgrind.py'); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 return option; | 684 return option; |
685 } | 685 } |
686 } | 686 } |
687 print('Unknown test option $name'); | 687 print('Unknown test option $name'); |
688 exit(1); | 688 exit(1); |
689 } | 689 } |
690 | 690 |
691 | 691 |
692 List<_TestOptionSpecification> _options; | 692 List<_TestOptionSpecification> _options; |
693 } | 693 } |
OLD | NEW |