| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 configuration['progress'] = 'verbose'; | 465 configuration['progress'] = 'verbose'; |
| 466 } | 466 } |
| 467 | 467 |
| 468 // Create the artificial 'unchecked' options that test status files | 468 // Create the artificial 'unchecked' options that test status files |
| 469 // expect. | 469 // expect. |
| 470 configuration['unchecked'] = !configuration['checked']; | 470 configuration['unchecked'] = !configuration['checked']; |
| 471 configuration['host_unchecked'] = !configuration['host_checked']; | 471 configuration['host_unchecked'] = !configuration['host_checked']; |
| 472 | 472 |
| 473 String runtime = configuration['runtime']; | 473 String runtime = configuration['runtime']; |
| 474 if (runtime == 'firefox') { | 474 if (runtime == 'firefox') { |
| 475 // We accept the user string "firefox" or "ff" to denote the Firefox | |
| 476 // browser. | |
| 477 configuration['runtime'] == 'ff'; | 475 configuration['runtime'] == 'ff'; |
| 478 } | 476 } |
| 479 | 477 |
| 478 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); |
| 479 |
| 480 // Set the javascript command line flag for less verbose status files. | 480 // Set the javascript command line flag for less verbose status files. |
| 481 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); | 481 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); |
| 482 | 482 |
| 483 // Expand the test selectors into a suite name and a simple | 483 // Expand the test selectors into a suite name and a simple |
| 484 // regular expressions to be used on the full path of a test file | 484 // regular expressions to be used on the full path of a test file |
| 485 // in that test suite. If no selectors are explicitly given use | 485 // in that test suite. If no selectors are explicitly given use |
| 486 // the default suite patterns. | 486 // the default suite patterns. |
| 487 var selectors = configuration['selectors']; | 487 var selectors = configuration['selectors']; |
| 488 if (selectors is !Map) { | 488 if (selectors is !Map) { |
| 489 if (selectors == null) { | 489 if (selectors == null) { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 return option; | 647 return option; |
| 648 } | 648 } |
| 649 } | 649 } |
| 650 print('Unknown test option $name'); | 650 print('Unknown test option $name'); |
| 651 exit(1); | 651 exit(1); |
| 652 } | 652 } |
| 653 | 653 |
| 654 | 654 |
| 655 List<_TestOptionSpecification> _options; | 655 List<_TestOptionSpecification> _options; |
| 656 } | 656 } |
| OLD | NEW |