OLD | NEW |
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 "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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 timeout *= 8; | 637 timeout *= 8; |
638 } | 638 } |
639 if (configuration['host_checked']) { | 639 if (configuration['host_checked']) { |
640 timeout *= 16; | 640 timeout *= 16; |
641 } | 641 } |
642 if (configuration['checked']) { | 642 if (configuration['checked']) { |
643 timeout *= 2; | 643 timeout *= 2; |
644 } | 644 } |
645 break; | 645 break; |
646 default: | 646 default: |
| 647 if (configuration['arch'] == 'simarm') { |
| 648 timeout *= 2; |
| 649 } else if (configuration['arch'] == 'arm') { |
| 650 timeout *= 4; |
| 651 } |
647 if (configuration['mode'] == 'debug') { | 652 if (configuration['mode'] == 'debug') { |
648 timeout *= 2; | 653 timeout *= 2; |
649 } | 654 } |
650 if (const ['drt', 'dartium'].contains(configuration['runtime'])) { | 655 if (const ['drt', 'dartium'].contains(configuration['runtime'])) { |
651 timeout *= 4; // Allow additional time for browser testing to run. | 656 timeout *= 4; // Allow additional time for browser testing to run. |
652 } | 657 } |
653 break; | 658 break; |
654 } | 659 } |
655 configuration['timeout'] = timeout; | 660 configuration['timeout'] = timeout; |
656 } | 661 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 return option; | 731 return option; |
727 } | 732 } |
728 } | 733 } |
729 print('Unknown test option $name'); | 734 print('Unknown test option $name'); |
730 exit(1); | 735 exit(1); |
731 } | 736 } |
732 | 737 |
733 | 738 |
734 List<_TestOptionSpecification> _options; | 739 List<_TestOptionSpecification> _options; |
735 } | 740 } |
OLD | NEW |