| OLD | NEW |
| 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 #import("dart:io"); | 7 #import("dart:io"); |
| 8 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 // TODO(ager): Get rid of this. This is for backwards | 322 // TODO(ager): Get rid of this. This is for backwards |
| 323 // compatibility with the python test scripts. They use system | 323 // compatibility with the python test scripts. They use system |
| 324 // 'win32' for Windows. | 324 // 'win32' for Windows. |
| 325 if (configuration['system'] == 'windows') { | 325 if (configuration['system'] == 'windows') { |
| 326 configuration['system'] = 'win32'; | 326 configuration['system'] = 'win32'; |
| 327 } | 327 } |
| 328 | 328 |
| 329 // Expand the pseudo-values such as 'all'. | 329 // Expand the pseudo-values such as 'all'. |
| 330 if (configuration['arch'] == 'all') { | 330 if (configuration['arch'] == 'all') { |
| 331 configuration['arch'] = 'ia32,x64,simarm'; | 331 configuration['arch'] = 'ia32,x64'; |
| 332 } | 332 } |
| 333 if (configuration['mode'] == 'all') { | 333 if (configuration['mode'] == 'all') { |
| 334 configuration['mode'] = 'debug,release'; | 334 configuration['mode'] = 'debug,release'; |
| 335 } | 335 } |
| 336 if (configuration['component'] == 'most') { | 336 if (configuration['component'] == 'most') { |
| 337 configuration['component'] = 'vm,dartc'; | 337 configuration['component'] = 'vm,dartc'; |
| 338 } | 338 } |
| 339 if (configuration['valgrind']) { | 339 if (configuration['valgrind']) { |
| 340 // TODO(ager): Get rid of this when there is only one checkout and | 340 // TODO(ager): Get rid of this when there is only one checkout and |
| 341 // we don't have to special case for the runtime checkout. | 341 // we don't have to special case for the runtime checkout. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 return option; | 503 return option; |
| 504 } | 504 } |
| 505 } | 505 } |
| 506 print('Unknown test option $name'); | 506 print('Unknown test option $name'); |
| 507 exit(1); | 507 exit(1); |
| 508 } | 508 } |
| 509 | 509 |
| 510 | 510 |
| 511 List<_TestOptionSpecification> _options; | 511 List<_TestOptionSpecification> _options; |
| 512 } | 512 } |
| OLD | NEW |