Bug 168979 - Add ability for webkitpy to run bindings tests
Summary: Add ability for webkitpy to run bindings tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-28 11:30 PST by Srinivasan Vijayaraghavan
Modified: 2017-10-18 12:41 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.40 KB, patch)
2017-02-28 11:35 PST, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (4.82 KB, patch)
2017-02-28 13:57 PST, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivasan Vijayaraghavan 2017-02-28 11:30:58 PST
Add ability for webkitpy to run bindings tests
Comment 1 Srinivasan Vijayaraghavan 2017-02-28 11:35:26 PST
Created attachment 302955 [details]
Patch
Comment 2 Aakash Jain 2017-02-28 12:05:05 PST
Comment on attachment 302955 [details]
Patch

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

looks good to me.

> Tools/Scripts/webkitpy/tool/steps/runtests.py:168
> +        self._tool.filesystem.maybe_make_directory(results_directory)

do we need similar line in _run_javascriptcore_tests as well above.
Comment 3 Srinivasan Vijayaraghavan 2017-02-28 13:06:52 PST
(In reply to comment #2)
> Comment on attachment 302955 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=302955&action=review
> 
> looks good to me.
> 
> > Tools/Scripts/webkitpy/tool/steps/runtests.py:168
> > +        self._tool.filesystem.maybe_make_directory(results_directory)
> 
> do we need similar line in _run_javascriptcore_tests as well above.

JSC tests cannot run without building, so if the WebKitBuild/[Release/Debug] directory doesn't exist at the time of writing the test results to a file, something would have gone very wrong.

Adding the line enables some code to be abstracted out, but I'd prefer to not abstract things out until we have another group of tests.

Some things, like the results directory, might change by then. Placing results inside WebKitBuild/ for consistency is OK, but it might make sense to move as we add more tests that don't require a build to run (bindings is one of them, also webkitpy, webkitperl etc).
Comment 4 Srinivasan Vijayaraghavan 2017-02-28 13:57:27 PST
Created attachment 302982 [details]
Patch
Comment 5 Srinivasan Vijayaraghavan 2017-02-28 13:57:45 PST
Added a unit test.
Comment 6 Aakash Jain 2017-02-28 14:10:59 PST
looks good to me.
Comment 7 WebKit Commit Bot 2017-02-28 15:26:35 PST
Comment on attachment 302982 [details]
Patch

Clearing flags on attachment: 302982

Committed r213185: <http://trac.webkit.org/changeset/213185>
Comment 8 WebKit Commit Bot 2017-02-28 15:26:40 PST
All reviewed patches have been landed.  Closing bug.