| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 return _expandHelper('compiler', configuration); | 537 return _expandHelper('compiler', configuration); |
| 538 } | 538 } |
| 539 | 539 |
| 540 // Expand runtimes. | 540 // Expand runtimes. |
| 541 var runtimes = configuration['runtime']; | 541 var runtimes = configuration['runtime']; |
| 542 if (runtimes.contains(',')) { | 542 if (runtimes.contains(',')) { |
| 543 return _expandHelper('runtime', configuration); | 543 return _expandHelper('runtime', configuration); |
| 544 } else { | 544 } else { |
| 545 // All runtimes eventually go through this path, after expansion. | 545 // All runtimes eventually go through this path, after expansion. |
| 546 var updater = runtimeUpdater(configuration); | 546 var updater = runtimeUpdater(configuration); |
| 547 if (updater !== null) { | 547 if (updater != null) { |
| 548 updater.update(); | 548 updater.update(); |
| 549 } | 549 } |
| 550 } | 550 } |
| 551 | 551 |
| 552 // Adjust default timeout based on mode, compiler, and sometimes runtime. | 552 // Adjust default timeout based on mode, compiler, and sometimes runtime. |
| 553 if (configuration['timeout'] == -1) { | 553 if (configuration['timeout'] == -1) { |
| 554 var timeout = 60; | 554 var timeout = 60; |
| 555 switch (configuration['compiler']) { | 555 switch (configuration['compiler']) { |
| 556 case 'dartc': | 556 case 'dartc': |
| 557 timeout *= 4; | 557 timeout *= 4; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 return option; | 658 return option; |
| 659 } | 659 } |
| 660 } | 660 } |
| 661 print('Unknown test option $name'); | 661 print('Unknown test option $name'); |
| 662 exit(1); | 662 exit(1); |
| 663 } | 663 } |
| 664 | 664 |
| 665 | 665 |
| 666 List<_TestOptionSpecification> _options; | 666 List<_TestOptionSpecification> _options; |
| 667 } | 667 } |
| OLD | NEW |