WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
32189
[GTK] Integrate running of API tests into buildbot run
https://bugs.webkit.org/show_bug.cgi?id=32189
Summary
[GTK] Integrate running of API tests into buildbot run
Gustavo Noronha (kov)
Reported
2009-12-05 21:58:29 PST
Created
attachment 44353
[details]
proposed patch We have some API tests we name 'unittests'. It's important to have them running automatically for each commit like we do with layout tests. I'm attaching a patch to implement this - the run-gtk-tests script is not very sophisticated, but should be enough for our current needs.
Attachments
proposed patch
(4.07 KB, patch)
2009-12-05 21:58 PST
,
Gustavo Noronha (kov)
eric
: review-
gustavo
: commit-queue-
Details
Formatted Diff
Diff
Run GTK+ API tests
(4.31 KB, patch)
2010-02-05 11:23 PST
,
Gustavo Noronha (kov)
eric
: review+
gustavo
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
WebKit Review Bot
Comment 1
2009-12-05 22:00:52 PST
style-queue ran check-webkit-style on
attachment 44353
[details]
without any errors.
Eric Seidel (no email)
Comment 2
2010-01-19 14:50:51 PST
Comment on
attachment 44353
[details]
proposed patch We have shared code for how to get the configuration directory in webkitdirs.pm. I think we should re-use that here. Meaning we should just make run-gtk-tests a perl script. Unfortunately we don't have any equivalent detection code for python or I would suggest we write this in python instead. :) In general the code looks OK. I'm not really an expert on the internals of buildbot. There might be a more concise way to write parts of the class. No need to call bash directly, or? + command = ["bash", "./WebKitTools/Scripts/run-gtk-tests", WithProperties("--%(configuration)s")] r- for not re-using existing configuration directory detection logic.
Gustavo Noronha (kov)
Comment 3
2010-01-19 15:20:13 PST
Thanks for the review! (In reply to
comment #2
)
> (From update of
attachment 44353
[details]
) > We have shared code for how to get the configuration directory in > webkitdirs.pm. I think we should re-use that here. Meaning we should just > make run-gtk-tests a perl script. Unfortunately we don't have any equivalent > detection code for python or I would suggest we write this in python instead. > :)
OK; I was kind of avoiding this, but I think it makes sense to keep this kind of logic in a centralized place.
> No need to call bash directly, or? > + command = ["bash", "./WebKitTools/Scripts/run-gtk-tests", > WithProperties("--%(configuration)s")]
That's to keep consistency. Perl also theoretically does not need to be called directly, but all commands include it explicitely.
Eric Seidel (no email)
Comment 4
2010-01-19 16:39:05 PST
bug 33432
is also very similar.
Gustavo Noronha (kov)
Comment 5
2010-02-05 11:23:54 PST
Created
attachment 48245
[details]
Run GTK+ API tests Addresses the concerns raised by Eric.
Eric Seidel (no email)
Comment 6
2010-02-17 15:04:07 PST
Comment on
attachment 48245
[details]
Run GTK+ API tests Looks OK to me. It's actually now possible to write this sort of thing in python now that we've added "webkit-build-directory" which is able to let non-perl scripts access these sorts of things. :) Anyway, this looks fine.
Gustavo Noronha (kov)
Comment 7
2010-02-18 05:32:38 PST
Landed as
r54956
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug