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 'utils.dart'; | 10 import 'utils.dart'; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 new _Option('system', 'The operating system to run tests on.', | 170 new _Option('system', 'The operating system to run tests on.', |
171 abbr: 's', values: System.names, defaultsTo: Platform.operatingSystem), | 171 abbr: 's', values: System.names, defaultsTo: Platform.operatingSystem), |
172 new _Option.bool('checked', 'Run tests in checked mode.'), | 172 new _Option.bool('checked', 'Run tests in checked mode.'), |
173 new _Option.bool('strong', 'Run tests in strong mode.'), | 173 new _Option.bool('strong', 'Run tests in strong mode.'), |
174 new _Option.bool('host_checked', 'Run compiler in checked mode.'), | 174 new _Option.bool('host_checked', 'Run compiler in checked mode.'), |
175 new _Option.bool('minified', 'Enable minification in the compiler.'), | 175 new _Option.bool('minified', 'Enable minification in the compiler.'), |
176 new _Option.bool( | 176 new _Option.bool( |
177 'csp', 'Run tests under Content Security Policy restrictions.'), | 177 'csp', 'Run tests under Content Security Policy restrictions.'), |
178 new _Option.bool( | 178 new _Option.bool( |
179 'fast_startup', 'Pass the --fast-startup flag to dart2js.'), | 179 'fast_startup', 'Pass the --fast-startup flag to dart2js.'), |
| 180 new _Option.bool('enable_asserts', |
| 181 'Pass the --enable-asserts flag to dart2js or to the vm.'), |
180 new _Option.bool('dart2js_with_kernel', | 182 new _Option.bool('dart2js_with_kernel', |
181 'Enable the internal pipeline in dart2js to use kernel.'), | 183 'Enable the internal pipeline in dart2js to use kernel.'), |
182 new _Option.bool('hot_reload', 'Run hot reload stress tests.'), | 184 new _Option.bool('hot_reload', 'Run hot reload stress tests.'), |
183 new _Option.bool( | 185 new _Option.bool( |
184 'hot_reload_rollback', 'Run hot reload rollback stress tests.'), | 186 'hot_reload_rollback', 'Run hot reload rollback stress tests.'), |
185 new _Option.bool('use_blobs', | 187 new _Option.bool('use_blobs', |
186 'Use mmap instead of shared libraries for precompilation.'), | 188 'Use mmap instead of shared libraries for precompilation.'), |
187 new _Option.int('timeout', 'Timeout in seconds.', abbr: 't'), | 189 new _Option.int('timeout', 'Timeout in seconds.', abbr: 't'), |
188 new _Option( | 190 new _Option( |
189 'progress', | 191 'progress', |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 isVerbose: data["verbose"] as bool, | 598 isVerbose: data["verbose"] as bool, |
597 listTests: data["list"] as bool, | 599 listTests: data["list"] as bool, |
598 printTiming: data["time"] as bool, | 600 printTiming: data["time"] as bool, |
599 printReport: data["report"] as bool, | 601 printReport: data["report"] as bool, |
600 reportInJson: data["report_in_json"] as bool, | 602 reportInJson: data["report_in_json"] as bool, |
601 resetBrowser: data["reset_browser_configuration"] as bool, | 603 resetBrowser: data["reset_browser_configuration"] as bool, |
602 skipCompilation: data["skip_compilation"] as bool, | 604 skipCompilation: data["skip_compilation"] as bool, |
603 useBlobs: data["use_blobs"] as bool, | 605 useBlobs: data["use_blobs"] as bool, |
604 useSdk: data["use_sdk"] as bool, | 606 useSdk: data["use_sdk"] as bool, |
605 useFastStartup: data["fast_startup"] as bool, | 607 useFastStartup: data["fast_startup"] as bool, |
| 608 useEnableAsserts: data["enable_asserts"] as bool, |
606 useDart2JSWithKernel: data["dart2js_with_kernel"] as bool, | 609 useDart2JSWithKernel: data["dart2js_with_kernel"] as bool, |
607 writeDebugLog: data["write_debug_log"] as bool, | 610 writeDebugLog: data["write_debug_log"] as bool, |
608 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, | 611 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, |
609 drtPath: data["drt"] as String, | 612 drtPath: data["drt"] as String, |
610 dartiumPath: data["dartium"] as String, | 613 dartiumPath: data["dartium"] as String, |
611 chromePath: data["chrome"] as String, | 614 chromePath: data["chrome"] as String, |
612 safariPath: data["safari"] as String, | 615 safariPath: data["safari"] as String, |
613 firefoxPath: data["firefox"] as String, | 616 firefoxPath: data["firefox"] as String, |
614 dartPath: data["dart"] as String, | 617 dartPath: data["dart"] as String, |
615 dartPrecompiledPath: data["dart_precompiled"] as String, | 618 dartPrecompiledPath: data["dart_precompiled"] as String, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 if (name == option.name) return option; | 766 if (name == option.name) return option; |
764 | 767 |
765 // Allow hyphens instead of underscores as the separator since they are | 768 // Allow hyphens instead of underscores as the separator since they are |
766 // more common for command line flags. | 769 // more common for command line flags. |
767 if (name == option.name.replaceAll("_", "-")) return option; | 770 if (name == option.name.replaceAll("_", "-")) return option; |
768 } | 771 } |
769 | 772 |
770 return null; | 773 return null; |
771 } | 774 } |
772 } | 775 } |
OLD | NEW |