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

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

Issue 8799009: Add support for client/dartc compilation only tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 List<String> defaultTestSelectors = 7 List<String> defaultTestSelectors =
8 const ['samples', 'standalone', 'corelib', 'co19', 'language', 8 const ['samples', 'standalone', 'corelib', 'co19', 'language',
9 'isolate', 'stub-generator', 'vm']; 9 'isolate', 'stub-generator', 'vm'];
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 selectors = new List.from(defaultTestSelectors); 241 selectors = new List.from(defaultTestSelectors);
242 } 242 }
243 Map<String, RegExp> selectorMap = new Map<String, RegExp>(); 243 Map<String, RegExp> selectorMap = new Map<String, RegExp>();
244 for (var i = 0; i < selectors.length; i++) { 244 for (var i = 0; i < selectors.length; i++) {
245 var pattern = selectors[i]; 245 var pattern = selectors[i];
246 var suite = pattern; 246 var suite = pattern;
247 var slashLocation = pattern.indexOf('/'); 247 var slashLocation = pattern.indexOf('/');
248 if (slashLocation != -1) { 248 if (slashLocation != -1) {
249 suite = pattern.substring(0, slashLocation); 249 suite = pattern.substring(0, slashLocation);
250 pattern = pattern.substring(slashLocation + 1); 250 pattern = pattern.substring(slashLocation + 1);
251 pattern = pattern.replaceAll('*', '.*');
252 pattern = pattern.replaceAll('/', '.*');
253 } else {
254 pattern = ".*";
251 } 255 }
252 pattern = pattern.replaceAll('*', '.*');
253 pattern = pattern.replaceAll('/', '.*');
254 if (selectorMap.containsKey(suite)) { 256 if (selectorMap.containsKey(suite)) {
255 print("Warning: selector '$suite/$pattern' overrides " + 257 print("Warning: selector '$suite/$pattern' overrides " +
256 "previous selector for suite '$suite'"); 258 "previous selector for suite '$suite'");
257 } 259 }
258 selectorMap[suite] = new RegExp(pattern); 260 selectorMap[suite] = new RegExp(pattern);
259 } 261 }
260 configuration['selectors'] = selectorMap; 262 configuration['selectors'] = selectorMap;
261 } 263 }
262 264
263 // Expand the architectures. 265 // Expand the architectures.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 if (option.keys.some((key) => key == name)) { 367 if (option.keys.some((key) => key == name)) {
366 return option; 368 return option;
367 } 369 }
368 } 370 }
369 return null; 371 return null;
370 } 372 }
371 373
372 374
373 List<_TestOptionSpecification> _options; 375 List<_TestOptionSpecification> _options;
374 } 376 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698