| Summary: | test-webkitpy should take configuration command line options | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
| Component: | Tools / Tests | Assignee: | Daniel Bates <dbates> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ap, ddkilzer, dino, ews-watchlist, glenn, lforschler, simon.fraser, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Mac | ||||||
| OS: | macOS 10.13 | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=187916 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 187776 | ||||||
| Attachments: |
|
||||||
|
Description
Daniel Bates
2018-07-20 15:00:33 PDT
Once we fix this bug then we can land the tests included in the patch for bug #187776. One way to fix this is to take a similar approach as our other tools and teach test-webkitpy to take an optional --release/--debug command line argument so that it knows whether it must build lldbWebKitTester for release or debug. Created attachment 345532 [details]
Patch
Once we fix this bug we should look to land the tests in attachment #345523 [details] (bug #187884). Comment on attachment 345532 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345532&action=review > Tools/Scripts/webkitpy/test/main.py:143 > + configuration_group.add_option('--debug', action='store_const', const='Debug', dest="configuration", Will change " => ' before landing. > Tools/Scripts/webkitpy/test/main.py:145 > + configuration_group.add_option('--release', action='store_const', const='Release', dest="configuration", Ditto. The growing complexity of this approach makes me wonder if test-webkitpy is even the right place to test the formatters. It's Python code for sure, but the tests are clearly not fitting here. (In reply to Alexey Proskuryakov from comment #6) > The growing complexity of this approach makes me wonder if test-webkitpy is > even the right place to test the formatters. It's Python code for sure, but > the tests are clearly not fitting here. I am open to suggestions on how to reduce the complexity. Would it help reduce complexity to separate out the running of the lldbwebkit tests into its own test runner, say test-lldbwebkit? Comment on attachment 345532 [details]
Patch
r=me
Comment on attachment 345532 [details] Patch Clearing flags on attachment: 345532 Committed r234099: <https://trac.webkit.org/changeset/234099> All reviewed patches have been landed. Closing bug. > Would it help reduce complexity to separate out the running of the lldbwebkit tests into its own test runner, say test-lldbwebkit?
That's a good idea. Since one needs to run these tests for any WebCore change and not just for webkitpy changes, it's not really a webkitpy test in the first place.
(In reply to Alexey Proskuryakov from comment #12) > > Would it help reduce complexity to separate out the running of the lldbwebkit tests into its own test runner, say test-lldbwebkit? > > That's a good idea. Filed bug #187916 for this. > Since one needs to run these tests for any WebCore > change and not just for webkitpy changes, it's not really a webkitpy test in > the first place. For completeness, test-webkitpy is already a misnomer because it runs unit tests for the WebKit message generator code and QueueStatusServer unit tests (when the AppEngine SDK is installed) in addition to running tests for webkitpy. |