Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 TestOptionsParser() { | 54 TestOptionsParser() { |
| 55 _options = | 55 _options = |
| 56 [ new _TestOptionSpecification( | 56 [ new _TestOptionSpecification( |
| 57 'mode', | 57 'mode', |
| 58 'Mode in which to run the tests', | 58 'Mode in which to run the tests', |
| 59 ['-m', '--mode'], | 59 ['-m', '--mode'], |
| 60 ['all', 'debug', 'release'], | 60 ['all', 'debug', 'release'], |
| 61 'debug'), | 61 'debug'), |
| 62 new _TestOptionSpecification( | 62 new _TestOptionSpecification( |
| 63 'component', | 63 'component', |
| 64 'The component to test against', | 64 ''' |
|
Siggi Cherem (dart-lang)
2012/03/05 18:28:33
Let's keep the old header too, it still helps to d
mattsh
2012/03/05 18:41:43
OK, added summary description of this flag now.
| |
| 65 | |
| 66 vm: Run dart code on the standalone dart vm. | |
| 67 | |
| 68 frog: Compile dart code by running frog on the standalone dart vm, and | |
| 69 run the resulting javascript on D8. | |
| 70 | |
| 71 leg: Compile dart code by running leg on the standalone dart vm, and | |
| 72 run the resulting javascript on D8. | |
| 73 | |
| 74 frogsh: Compile dart code by running frog on node.js, and run the | |
| 75 resulting javascript on the same instance of node.js. | |
| 76 | |
| 77 dartium: Run dart code in a type="application/dart" script tag in a | |
| 78 dartium build of DumpRenderTree. | |
| 79 | |
| 80 chromium: Obsolete, not used, will be removed. | |
| 81 | |
| 82 frogium: Compile dart code by running frog on the standalone dart vm, | |
| 83 and run the resulting javascript in a javascript script tag in | |
| 84 a dartium build of DumpRenderTree. | |
| 85 | |
| 86 legium: Compile dart code by running leg on the standalone dart vm, | |
| 87 and run the resulting javascript in a javascript script tag in | |
| 88 a dartium build of DumpRenderTree. | |
| 89 | |
| 90 webdriver: Compile dart code by running frog on the standalone dart vm, | |
| 91 and then run the resulting javascript in the browser that is specified | |
| 92 by the --browser switch (e.g. chrome, safari, ff, etc.). | |
| 93 | |
| 94 dartc: Run dart code through the dartc static analyzer (does not | |
| 95 execute dart code). | |
| 96 ''', | |
| 65 ['-c', '--component'], | 97 ['-c', '--component'], |
| 66 ['most', 'vm', 'dartc', 'frog', 'frogsh', 'leg', | 98 ['most', 'vm', 'dartc', 'frog', 'frogsh', 'leg', |
| 67 'dartium', 'chromium', 'frogium', 'legium', 'webdriver'], | 99 'dartium', 'chromium', 'frogium', 'legium', 'webdriver'], |
| 68 'vm'), | 100 'vm'), |
| 69 new _TestOptionSpecification( | 101 new _TestOptionSpecification( |
| 70 'arch', | 102 'arch', |
| 71 'The architecture to run tests for', | 103 'The architecture to run tests for', |
| 72 ['-a', '--arch'], | 104 ['-a', '--arch'], |
| 73 ['all', 'ia32', 'x64', 'simarm'], | 105 ['all', 'ia32', 'x64', 'simarm'], |
| 74 'ia32'), | 106 'ia32'), |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 503 return option; | 535 return option; |
| 504 } | 536 } |
| 505 } | 537 } |
| 506 print('Unknown test option $name'); | 538 print('Unknown test option $name'); |
| 507 exit(1); | 539 exit(1); |
| 508 } | 540 } |
| 509 | 541 |
| 510 | 542 |
| 511 List<_TestOptionSpecification> _options; | 543 List<_TestOptionSpecification> _options; |
| 512 } | 544 } |
| OLD | NEW |