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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 71 |
| 72 leg: Compile dart code by running leg on the standalone dart vm, and | 72 leg: Compile dart code by running leg on the standalone dart vm, and |
| 73 run the resulting javascript on D8. | 73 run the resulting javascript on D8. |
| 74 | 74 |
| 75 frogsh: Compile dart code by running frog on node.js, and run the | 75 frogsh: Compile dart code by running frog on node.js, and run the |
| 76 resulting javascript on the same instance of node.js. | 76 resulting javascript on the same instance of node.js. |
| 77 | 77 |
| 78 dartium: Run dart code in a type="application/dart" script tag in a | 78 dartium: Run dart code in a type="application/dart" script tag in a |
| 79 dartium build of DumpRenderTree. | 79 dartium build of DumpRenderTree. |
| 80 | 80 |
| 81 chromium: Obsolete, not used, will be removed. | |
| 82 | |
| 83 frogium: Compile dart code by running frog on the standalone dart vm, | 81 frogium: Compile dart code by running frog on the standalone dart vm, |
| 84 and run the resulting javascript in a javascript script tag in | 82 and run the resulting javascript in a javascript script tag in |
| 85 a dartium build of DumpRenderTree. | 83 a dartium build of DumpRenderTree. |
| 86 | 84 |
| 87 legium: Compile dart code by running leg on the standalone dart vm, | 85 legium: Compile dart code by running leg on the standalone dart vm, |
| 88 and run the resulting javascript in a javascript script tag in | 86 and run the resulting javascript in a javascript script tag in |
| 89 a dartium build of DumpRenderTree. | 87 a dartium build of DumpRenderTree. |
| 90 | 88 |
| 91 webdriver: Compile dart code by running frog on the standalone dart vm, | 89 webdriver: Compile dart code by running frog on the standalone dart vm, |
| 92 and then run the resulting javascript in the browser that is specified | 90 and then run the resulting javascript in the browser that is specified |
| 93 by the --browser switch (e.g. chrome, safari, ff, etc.). | 91 by the --browser switch (e.g. chrome, safari, ff, etc.). |
| 94 | 92 |
| 95 dartc: Run dart code through the dartc static analyzer (does not | 93 dartc: Run dart code through the dartc static analyzer (does not |
| 96 execute dart code). | 94 execute dart code). |
| 97 ''', | 95 ''', |
| 98 ['-c', '--component'], | 96 ['-c', '--component'], |
| 99 ['most', 'vm', 'dartc', 'frog', 'frogsh', 'leg', | 97 ['vm', 'frog', 'leg', 'frogsh', 'dartium', 'frogium', |
|
ahe
2012/03/12 16:14:09
I think you removed "most" was that intended?
| |
| 100 'dartium', 'chromium', 'frogium', 'legium', 'webdriver'], | 98 'legium', 'webdriver', 'dartc'], |
|
Bill Hesse
2012/03/12 16:17:57
Do not remove "most".
mattsh
2012/03/12 16:22:25
What is "most" used for? I didn't see any scripts
mattsh
2012/03/12 17:20:25
OK, restored 'most'
| |
| 101 'vm'), | 99 'vm'), |
| 102 new _TestOptionSpecification( | 100 new _TestOptionSpecification( |
| 103 'arch', | 101 'arch', |
| 104 'The architecture to run tests for', | 102 'The architecture to run tests for', |
| 105 ['-a', '--arch'], | 103 ['-a', '--arch'], |
| 106 ['all', 'ia32', 'x64', 'simarm'], | 104 ['all', 'ia32', 'x64', 'simarm'], |
| 107 'ia32'), | 105 'ia32'), |
| 108 new _TestOptionSpecification( | 106 new _TestOptionSpecification( |
| 109 'system', | 107 'system', |
| 110 'The operating system to run tests on', | 108 'The operating system to run tests on', |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 456 result.addAll(_expandConfigurations(newConfiguration)); | 454 result.addAll(_expandConfigurations(newConfiguration)); |
| 457 } | 455 } |
| 458 return result; | 456 return result; |
| 459 } | 457 } |
| 460 | 458 |
| 461 // Adjust default timeout based on mode and component. | 459 // Adjust default timeout based on mode and component. |
| 462 if (configuration['timeout'] == -1) { | 460 if (configuration['timeout'] == -1) { |
| 463 var timeout = 60; | 461 var timeout = 60; |
| 464 switch (configuration['component']) { | 462 switch (configuration['component']) { |
| 465 case 'dartc': | 463 case 'dartc': |
| 466 case 'chromium': | |
| 467 case 'dartium': | 464 case 'dartium': |
| 468 case 'frogium': | 465 case 'frogium': |
| 469 case 'legium': | 466 case 'legium': |
| 470 case 'webdriver': | 467 case 'webdriver': |
| 471 timeout *= 4; | 468 timeout *= 4; |
| 472 break; | 469 break; |
| 473 case 'leg': | 470 case 'leg': |
| 474 case 'frog': | 471 case 'frog': |
| 475 if (configuration['mode'] == 'debug') { | 472 if (configuration['mode'] == 'debug') { |
| 476 timeout *= 4; | 473 timeout *= 4; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 536 return option; | 533 return option; |
| 537 } | 534 } |
| 538 } | 535 } |
| 539 print('Unknown test option $name'); | 536 print('Unknown test option $name'); |
| 540 exit(1); | 537 exit(1); |
| 541 } | 538 } |
| 542 | 539 |
| 543 | 540 |
| 544 List<_TestOptionSpecification> _options; | 541 List<_TestOptionSpecification> _options; |
| 545 } | 542 } |
| OLD | NEW |