Bug 137750 - webkit-patch should include a test command that only runs RunTests
Summary: webkit-patch should include a test command that only runs RunTests
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jake Nielsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 12:56 PDT by Jake Nielsen
Modified: 2014-10-23 10:54 PDT (History)
5 users (show)

See Also:


Attachments
Adds the test command (2.03 KB, patch)
2014-10-15 13:07 PDT, Jake Nielsen
dbates: review-
dbates: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Nielsen 2014-10-15 12:56:07 PDT
Currently the build-and-test removes local changes, cleans, builds, and then runs tests. When making changes to RunTests, only the last step is of interest. It would be nice to have a command to run in that case.
Comment 1 Jake Nielsen 2014-10-15 13:07:16 PDT
Created attachment 239888 [details]
Adds the test command
Comment 2 Jake Nielsen 2014-10-20 09:31:47 PDT
bump
Comment 3 Daniel Bates 2014-10-20 13:13:34 PDT
Comment on attachment 239888 [details]
Adds the test command

View in context: https://bugs.webkit.org/attachment.cgi?id=239888&action=review

> Tools/Scripts/webkitpy/tool/commands/download.py:99
> +class Test(AbstractSequencedCommand):
> +    name = "test"
> +    help_text = "Run the tests"
> +    steps = [
> +        steps.RunTests,
> +    ]
> +
> +    def _prepare_state(self, options, args, tool):
> +        options.test = True
> +

Notice that steps.RunTests runs test suites that depend on a built product (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we run such test suites?
Comment 4 Jake Nielsen 2014-10-20 13:17:33 PDT
bump(In reply to comment #3)
> Comment on attachment 239888 [details]
> Adds the test command
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=239888&action=review
> 
> > Tools/Scripts/webkitpy/tool/commands/download.py:99
> > +class Test(AbstractSequencedCommand):
> > +    name = "test"
> > +    help_text = "Run the tests"
> > +    steps = [
> > +        steps.RunTests,
> > +    ]
> > +
> > +    def _prepare_state(self, options, args, tool):
> > +        options.test = True
> > +
> 
> Notice that steps.RunTests runs test suites that depend on a built product
> (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we
> run such test suites?

It assumes you've already built.
Comment 5 Daniel Bates 2014-10-20 14:02:05 PDT
(In reply to comment #4)
> bump(In reply to comment #3)
> > Comment on attachment 239888 [details]
> > Adds the test command
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=239888&action=review
> > 
> > > Tools/Scripts/webkitpy/tool/commands/download.py:99
> > > +class Test(AbstractSequencedCommand):
> > > +    name = "test"
> > > +    help_text = "Run the tests"
> > > +    steps = [
> > > +        steps.RunTests,
> > > +    ]
> > > +
> > > +    def _prepare_state(self, options, args, tool):
> > > +        options.test = True
> > > +
> > 
> > Notice that steps.RunTests runs test suites that depend on a built product
> > (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we
> > run such test suites?
> 
> It assumes you've already built.

Can you elaborate? Specifically, are you referring to run-webkit-tests when you say "it"?
Comment 6 Jake Nielsen 2014-10-20 14:13:01 PDT
(In reply to comment #5)
> (In reply to comment #4)
> > bump(In reply to comment #3)
> > > Comment on attachment 239888 [details]
> > > Adds the test command
> > > 
> > > View in context:
> > > https://bugs.webkit.org/attachment.cgi?id=239888&action=review
> > > 
> > > > Tools/Scripts/webkitpy/tool/commands/download.py:99
> > > > +class Test(AbstractSequencedCommand):
> > > > +    name = "test"
> > > > +    help_text = "Run the tests"
> > > > +    steps = [
> > > > +        steps.RunTests,
> > > > +    ]
> > > > +
> > > > +    def _prepare_state(self, options, args, tool):
> > > > +        options.test = True
> > > > +
> > > 
> > > Notice that steps.RunTests runs test suites that depend on a built product
> > > (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we
> > > run such test suites?
> > 
> > It assumes you've already built.
> 
> Can you elaborate? Specifically, are you referring to run-webkit-tests when
> you say "it"?

Oh, I meant the "test" command that got added to download.py by this patch.
Comment 7 Jake Nielsen 2014-10-23 10:54:28 PDT
I stand corrected. This is equivalent to
./webkit-patch build-and-test --no-clean --no-update --test
so that's what I'll use.