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

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

Issue 2570633002: Cleanup dead compiler and runtime aliases from the test framework. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | 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 "drt_updater.dart"; 8 import "drt_updater.dart";
9 import "test_suite.dart"; 9 import "test_suite.dart";
10 import "path.dart"; 10 import "path.dart";
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 dartkp: Compiler the Dart source into Kernel and then Kernel into AOT 83 dartkp: Compiler the Dart source into Kernel and then Kernel into AOT
84 snapshot before running the test.''', 84 snapshot before running the test.''',
85 ['-c', '--compiler'], 85 ['-c', '--compiler'],
86 [ 86 [
87 'none', 87 'none',
88 'precompiler', 88 'precompiler',
89 'dart2js', 89 'dart2js',
90 'dart2analyzer', 90 'dart2analyzer',
91 'app_jit', 91 'app_jit',
92 'dart2app', // TODO(rmacnak): Remove after updating bots.
93 'dart2appjit', // TODO(rmacnak): Remove after updating bots.
94 'dartk', 92 'dartk',
95 'dartkp' 93 'dartkp'
96 ], 94 ],
97 'none'), 95 'none'),
98 // TODO(antonm): fix the option drt. 96 // TODO(antonm): fix the option drt.
99 new _TestOptionSpecification( 97 new _TestOptionSpecification(
100 'runtime', 98 'runtime',
101 '''Where the tests should be run. 99 '''Where the tests should be run.
102 vm: Run Dart code on the standalone dart vm. 100 vm: Run Dart code on the standalone dart vm.
103 101
(...skipping 16 matching lines...) Expand all
120 118
121 [ff | chrome | safari | ie9 | ie10 | ie11 | opera | chromeOnAndroid]: 119 [ff | chrome | safari | ie9 | ie10 | ie11 | opera | chromeOnAndroid]:
122 Run JavaScript in the specified browser. 120 Run JavaScript in the specified browser.
123 121
124 none: No runtime, compile only (for example, used for dart2analyzer static 122 none: No runtime, compile only (for example, used for dart2analyzer static
125 analysis tests).''', 123 analysis tests).''',
126 ['-r', '--runtime'], 124 ['-r', '--runtime'],
127 [ 125 [
128 'vm', 126 'vm',
129 'dart_precompiled', 127 'dart_precompiled',
130 'dart_app', // TODO(rmacnak): Remove after updating bots.
131 'd8', 128 'd8',
132 'jsshell', 129 'jsshell',
133 'drt', 130 'drt',
134 'dartium', 131 'dartium',
135 'ff', 132 'ff',
136 'firefox', 133 'firefox',
137 'chrome', 134 'chrome',
138 'safari', 135 'safari',
139 'ie9', 136 'ie9',
140 'ie10', 137 'ie10',
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 734 }
738 735
739 return isValid; 736 return isValid;
740 } 737 }
741 738
742 /** 739 /**
743 * Recursively expand a configuration with multiple values per key 740 * Recursively expand a configuration with multiple values per key
744 * into a list of configurations with exactly one value per key. 741 * into a list of configurations with exactly one value per key.
745 */ 742 */
746 List<Map> _expandConfigurations(Map configuration) { 743 List<Map> _expandConfigurations(Map configuration) {
747 // TODO(rmacnak): Remove after updating bots.
748 if (configuration['runtime'] == 'dart_app') {
749 configuration['runtime'] = 'vm';
750 }
751 if (configuration['compiler'] == 'dart2app' ||
752 configuration['compiler'] == 'dart2appjit') {
753 configuration['compiler'] = 'app_jit';
754 }
755
756 // Expand the pseudo-values such as 'all'. 744 // Expand the pseudo-values such as 'all'.
757 if (configuration['arch'] == 'all') { 745 if (configuration['arch'] == 'all') {
758 configuration['arch'] = 'ia32,x64,simarm,simarm64,simmips,simdbc64'; 746 configuration['arch'] = 'ia32,x64,simarm,simarm64,simmips,simdbc64';
759 } 747 }
760 if (configuration['mode'] == 'all') { 748 if (configuration['mode'] == 'all') {
761 configuration['mode'] = 'debug,release,product'; 749 configuration['mode'] = 'debug,release,product';
762 } 750 }
763 751
764 if (configuration['report_in_json']) { 752 if (configuration['report_in_json']) {
765 configuration['list'] = true; 753 configuration['list'] = true;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 if (option.keys.contains(name)) { 984 if (option.keys.contains(name)) {
997 return option; 985 return option;
998 } 986 }
999 } 987 }
1000 print('Unknown test option $name'); 988 print('Unknown test option $name');
1001 exit(1); 989 exit(1);
1002 } 990 }
1003 991
1004 List<_TestOptionSpecification> _options; 992 List<_TestOptionSpecification> _options;
1005 } 993 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698