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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
8 import 'drt_updater.dart'; | 8 import 'drt_updater.dart'; |
9 import 'path.dart'; | 9 import 'path.dart'; |
10 import 'test_suite.dart'; | 10 import 'test_suite.dart'; |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 new _Option.int('test_server_port', 'Port for test http server.', | 260 new _Option.int('test_server_port', 'Port for test http server.', |
261 defaultsTo: 0), | 261 defaultsTo: 0), |
262 new _Option.int('test_server_cross_origin_port', | 262 new _Option.int('test_server_cross_origin_port', |
263 'Port for test http server cross origin.', | 263 'Port for test http server cross origin.', |
264 defaultsTo: 0), | 264 defaultsTo: 0), |
265 new _Option.int('test_driver_port', 'Port for http test driver server.', | 265 new _Option.int('test_driver_port', 'Port for http test driver server.', |
266 defaultsTo: 0), | 266 defaultsTo: 0), |
267 new _Option.int( | 267 new _Option.int( |
268 'test_driver_error_port', 'Port for http test driver server errors.', | 268 'test_driver_error_port', 'Port for http test driver server errors.', |
269 defaultsTo: 0), | 269 defaultsTo: 0), |
270 new _Option('record_to_file', | |
271 'Records all commands to be executed and writes to a file.'), | |
272 new _Option( | |
273 'replay_from_file', 'Replays a previously recorded list of commands.'), | |
274 new _Option( | 270 new _Option( |
275 'builder_tag', | 271 'builder_tag', |
276 '''Machine specific options that is not captured by the regular test | 272 '''Machine specific options that is not captured by the regular test |
277 options. Used to be able to make sane updates to the status files.'''), | 273 options. Used to be able to make sane updates to the status files.'''), |
278 new _Option('vm_options', 'Extra options to send to the vm when running.'), | 274 new _Option('vm_options', 'Extra options to send to the vm when running.'), |
279 new _Option( | 275 new _Option( |
280 'dart2js_options', 'Extra options for dart2js compilation step.'), | 276 'dart2js_options', 'Extra options for dart2js compilation step.'), |
281 new _Option( | 277 new _Option( |
282 'suite_dir', 'Additional directory to add to the testing matrix.'), | 278 'suite_dir', 'Additional directory to add to the testing matrix.'), |
283 new _Option('package_root', 'The package root to use for testing.'), | 279 new _Option('package_root', 'The package root to use for testing.'), |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 writeDebugLog: data["write_debug_log"] as bool, | 616 writeDebugLog: data["write_debug_log"] as bool, |
621 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, | 617 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, |
622 drtPath: data["drt"] as String, | 618 drtPath: data["drt"] as String, |
623 dartiumPath: data["dartium"] as String, | 619 dartiumPath: data["dartium"] as String, |
624 chromePath: data["chrome"] as String, | 620 chromePath: data["chrome"] as String, |
625 safariPath: data["safari"] as String, | 621 safariPath: data["safari"] as String, |
626 firefoxPath: data["firefox"] as String, | 622 firefoxPath: data["firefox"] as String, |
627 dartPath: data["dart"] as String, | 623 dartPath: data["dart"] as String, |
628 dartPrecompiledPath: data["dart_precompiled"] as String, | 624 dartPrecompiledPath: data["dart_precompiled"] as String, |
629 flutterPath: data["flutter"] as String, | 625 flutterPath: data["flutter"] as String, |
630 recordingPath: data["record_to_file"] as String, | |
631 replayPath: data["replay_from_file"] as String, | |
632 taskCount: data["tasks"] as int, | 626 taskCount: data["tasks"] as int, |
633 timeout: data["timeout"] as int, | 627 timeout: data["timeout"] as int, |
634 shardCount: data["shards"] as int, | 628 shardCount: data["shards"] as int, |
635 shard: data["shard"] as int, | 629 shard: data["shard"] as int, |
636 stepName: data["step_name"] as String, | 630 stepName: data["step_name"] as String, |
637 testServerPort: data["test_server_port"] as int, | 631 testServerPort: data["test_server_port"] as int, |
638 testServerCrossOriginPort: | 632 testServerCrossOriginPort: |
639 data['test_server_cross_origin_port'] as int, | 633 data['test_server_cross_origin_port'] as int, |
640 testDriverErrorPort: data["test_driver_error_port"] as int, | 634 testDriverErrorPort: data["test_driver_error_port"] as int, |
641 localIP: data["local_ip"] as String, | 635 localIP: data["local_ip"] as String, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 if (name == option.name) return option; | 772 if (name == option.name) return option; |
779 | 773 |
780 // Allow hyphens instead of underscores as the separator since they are | 774 // Allow hyphens instead of underscores as the separator since they are |
781 // more common for command line flags. | 775 // more common for command line flags. |
782 if (name == option.name.replaceAll("_", "-")) return option; | 776 if (name == option.name.replaceAll("_", "-")) return option; |
783 } | 777 } |
784 | 778 |
785 return null; | 779 return null; |
786 } | 780 } |
787 } | 781 } |
OLD | NEW |