Skip to content
Latest commit 0441266 Nov 27, 2012 abarth@webkit.org Make it possible to run performance tests on Chromium Android
https://bugs.webkit.org/show_bug.cgi?id=103268

Reviewed by Ryosuke Niwa.

Based on a patch by Peter Beverloo.

This patch (almost) makes it possible to run WebKit performance tests
on the Chromium port for Android. There are a few things I had to do
in order to make this happen:

1) The worker number when creating a driver for a port is zero-based
   for layout tests and elsewhere. Android uses this to determine
   which device it has to run on, so make it zero based for performance
   tests as well.

2) Tests aren't available on the Android device, so we start an HTTP
   server that serves the tests to the device or emulator.

The one shortcoming of this patch is that chromium-android produces
some stderr output that confuses run-perf-tests. I'll address that
issue in a subsequent CL. This patch also depends on
https://codereview.chromium.org/11416182 in order to work.

* Scripts/webkitpy/layout_tests/port/chromium_android.py:
(ChromiumAndroidPort.start_http_server):
(ChromiumAndroidDriver._command_from_driver_input):
* Scripts/webkitpy/performance_tests/perftest.py:
(ReplayPerfTest.prepare):
* Scripts/webkitpy/performance_tests/perftestsrunner.py:
(PerfTestsRunner.__init__):
(PerfTestsRunner._parse_args):
(PerfTestsRunner._start_servers):
(PerfTestsRunner):
(PerfTestsRunner._stop_servers):
(PerfTestsRunner.run):
(PerfTestsRunner._run_tests_set):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
..
Failed to load latest commit information.
webkitperl [CSS3 Backgrounds and Borders] Implement new CSS3 background-position… Nov 23, 2012
webkitpy Make it possible to run performance tests on Chromium Android Nov 27, 2012
SpacingHeuristics.pm Rename WebKitTools to Tools Dec 18, 2010
VCSUtils.pm [Qt] Fix determination of changed files from SVN revisions Oct 16, 2012
add-include Rename WebKitTools to Tools Dec 18, 2010
bencher Stop exposing window.layoutTestController in layout tests in favor of… Aug 4, 2012
bisect-builds <http://webkit.org/b/90835> Teach bisect-builds to work with a Safari… Jul 11, 2012
build-api-tests Let TestWebKitAPI work for chromium Sep 15, 2011
build-dumprendertree [EFL][webkitpy] Do not redefine check_build() in EflPort. May 10, 2012
build-jsc [Qt] Update build-jsc after r128174 Sep 12, 2012
build-webkit Change build congratulation message in EFL Nov 12, 2012
build-webkittestrunner [Wk2][EFL] EFL needs a WebKitTestRunner Jul 5, 2012
check-Xcode-source-file-types Rename WebKitTools to Tools Dec 18, 2010
check-dom-results Rename WebKitTools to Tools Dec 18, 2010
check-for-exit-time-destructors Add rudimentary filtering to write barriers Oct 5, 2011
check-for-global-initializers Source/WebKit2: Add verification scripts to WebKit2 project and fix t… Mar 2, 2011
check-for-inappropriate-files-in-framework Source/WebKit2: Add verification scripts to WebKit2 project and fix t… Mar 2, 2011
check-for-inappropriate-objc-class-names check-for-inappropriate-objc-class-names should ignore the class defi… Mar 22, 2012
check-for-weak-vtables-and-externals 2011-04-26 Mihai Parparita <mihaip@chromium.org> Apr 26, 2011
check-for-webkit-framework-include-consistency Rename WebKitTools to Tools Dec 18, 2010
check-inspector-strings Web Inspector: Fix "check-inspector-strings" script and fix localized… Oct 25, 2012
check-webkit-style webkitpy: revamp version checking Jan 9, 2012
clean-header-guards Rename WebKitTools to Tools Dec 18, 2010
commit-log-editor Remove the last bits of MSYS support from webkitperl. Oct 2, 2012
compare-timing-files Rename WebKitTools to Tools Dec 18, 2010
configure-github-as-upstream WebKit should have some scripts to smooth interactions with GitHub Mar 22, 2012
convert-test-expectations fix MISSING after TestExpectations conversion Sep 19, 2012
copy-webkitlibraries-to-product-directory Perl errors from Tools/Scripts/copy-webkitlibraries-to-product-directory Nov 13, 2012
create-exports Rename WebKitTools to Tools Dec 18, 2010
debug-minibrowser Made debug-{minibrowser,safari,test-runner} work with LLDB. Jun 24, 2012
debug-safari Made debug-{minibrowser,safari,test-runner} work with LLDB. Jun 24, 2012
debug-test-runner Made debug-{minibrowser,safari,test-runner} work with LLDB. Jun 24, 2012
detect-mismatched-virtual-const Rename WebKitTools to Tools Dec 18, 2010
do-file-rename Death to JavaScriptGlue. Jan 25, 2012
do-webcore-rename Rename some AudioNodes Oct 16, 2012
ensure-valid-python Remove references to Tiger in scripts May 7, 2011
execAppWithEnv Rename WebKitTools to Tools Dec 18, 2010
export-w3c-performance-wg-tests Add a script for exporting http/tests/w3c/webperf/submission to W3C Oct 18, 2012
extract-localizable-strings extract-localizable-strings script should be able to handle paths to … Oct 10, 2012
filter-build-webkit filter-build-webkit needs more filters Mar 7, 2012
find-extra-includes Rename WebKitTools to Tools Dec 18, 2010
find-included-framework-headers Rename WebKitTools to Tools Dec 18, 2010
generate-coverage-data Webkit generate-coverage-data script needs update to use new test script Feb 2, 2012
generate-qt-inspector-resource 2011-01-07 Adam Barth <abarth@webkit.org> Jan 8, 2011
generate-win32-export-forwards Fix Qt/Windows build with Python3 Sep 12, 2012
git-add-reviewer git-add-reviewer: Do not put the bug title and its URL in the same li… May 4, 2012
import-w3c-performance-wg-tests [Navigation Timing] Imported W3C tests contain duplicates and are DOS… Jul 13, 2012
lint-webkitpy webkitpy: integrate pylint into check-webkit-style, part I Nov 12, 2012
make-gypi 2011-02-24 Adam Barth <abarth@webkit.org> Feb 25, 2011
make-new-script-test make-new-script-test should work with HTTP tests Jan 19, 2012
make-script-test-wrappers make-script-test-wrappers should not look outside fast/js Oct 25, 2011
malloc-tree 2011-06-18 Michael Saboff <msaboff@apple.com> Jun 18, 2011
new-run-webkit-httpd webkitpy: new-run-webkit-httpd is broken Jan 25, 2012
new-run-webkit-tests make test-webkitpy at least kinda work in parallel on win32 Jul 24, 2012
new-run-webkit-websocketserver new-run-webkit-websocketserver must handle TLS related arguments Jun 14, 2012
num-cpus Rename WebKitTools to Tools Dec 18, 2010
old-run-webkit-tests Make old-run-webkit-tests handle setting the results directory properly. Nov 15, 2012
parallelcl Rename WebKitTools to Tools Dec 18, 2010
parse-malloc-history parse-malloc-history always exits 1, causing NRWT to fail Jul 20, 2011
pdevenv Rename WebKitTools to Tools Dec 18, 2010
prepare-ChangeLog Teach prepare-ChangeLog how to handle non-function properties in Java… Oct 18, 2012
print-msvc-project-dependencies Rename WebKitTools to Tools Dec 18, 2010
print-vse-failure-logs Rename WebKitTools to Tools Dec 18, 2010
read-checksum-from-png Add a linter error for pngs that lack an embedded checksum May 30, 2012
report-include-statistics Rename WebKitTools to Tools Dec 18, 2010
resolve-ChangeLogs Support a suffix on ChangeLog filenames based on a configuration file Jan 26, 2012
roll-over-ChangeLogs Rename WebKitTools to Tools Dec 18, 2010
run-api-tests [Chromium] Return an accurate exit code when running Android suites, … Nov 23, 2012
run-bindings-tests run-bindings-tests should return non-zero exit code on test failure Jun 29, 2012
run-chromium-webkit-unit-tests [Chromium] Return an accurate exit code when running Android suites, … Nov 23, 2012
run-efl-tests [EFL] Run unit tests with Xvfb Oct 4, 2012
run-fast-jsc JSC testing should have complete coverage over typed array types Apr 19, 2012
run-gtk-tests Unreviewed GTK gardening. Oct 25, 2012
run-iexploder-tests 2011-04-06 Scott Cameron <sccameron@rim.com> Apr 7, 2011
run-inspector-perf-tests.py Need a script to run tests in PerformanceTests Jan 12, 2012
run-javascriptcore-tests Unreviewed. Skip really old flaky failing jscore date test. Oct 19, 2012
run-jsc Rename WebKitTools to Tools Dec 18, 2010
run-launcher The Script run-launcher should support -2 in combination with --efl Sep 13, 2012
run-leaks run-leaks does not work on Lion? Nov 14, 2011
run-mangleme-tests Rename WebKitTools to Tools Dec 18, 2010
run-minibrowser Provide option to disable Mac OS 10.7 application resume when using Dec 23, 2011
run-pageloadtest Move PageLoadTests to PerformanceTests/PageLoad Dec 31, 2010
run-perf-tests reenable perf tests on win Jun 21, 2012
run-qtwebkit-tests [Qt] run-qtwebkit-tests hangs with -j1 Jun 6, 2012
run-regexp-tests Add JSC:RegExp functional tests Sep 3, 2011
run-safari Provide option to disable Mac OS 10.7 application resume when using Dec 23, 2011
run-sunspider Add --instruments option to sunspider to profile with Instruments Mar 11, 2012
run-test-runner Provide option to disable Mac OS 10.7 application resume when using Dec 23, 2011
run-test-webkit-api Switch to entering the sandbox directly from main(), rather than wait… Sep 9, 2012
run-webkit-app Provide option to disable Mac OS 10.7 application resume when using Dec 23, 2011
run-webkit-httpd Remove MSYS-related changes to the http testing infrastructure. Oct 2, 2012
run-webkit-tests Recognize the "--chromium-android" argument in run-webkit-tests Sep 11, 2012
run-webkit-websocketserver Rename WebKitTools to Tools Dec 18, 2010
set-webkit-configuration Rename WebKitTools to Tools Dec 18, 2010
show-pretty-diff Made show-pretty-diff work when the input path contains spaces. Nov 6, 2011
sort-Xcode-project-file Rename WebKitTools to Tools Dec 18, 2010
split-file-by-class Rename WebKitTools to Tools Dec 18, 2010
sunspider-compare-results 2011-01-06 Xan Lopez <xlopez@igalia.com> Jan 6, 2011
svn-apply svn-apply cannot apply patches to files that contain space May 20, 2012
svn-create-patch https://bugs.webkit.org/show_bug.cgi?id=74469 Dec 16, 2011
svn-unapply https://bugs.webkit.org/show_bug.cgi?id=74469 Dec 16, 2011
sync-master-with-upstream sync-master-with-upstream creates non-linear git history Mar 23, 2012
test-webkit-scripts Rename WebKitTools to Tools Dec 18, 2010
test-webkitperl Rename WebKitTools to Tools Dec 18, 2010
test-webkitpy make test-webkitpy at least kinda work in parallel on win32 Jul 24, 2012
update-iexploder-cssproperties 2011-01-07 Adam Barth <abarth@webkit.org> Jan 8, 2011
update-javascriptcore-test-results Move JavaScriptCore to Source Jan 2, 2011
update-sources-list.py 2011-01-07 Adam Barth <abarth@webkit.org> Jan 8, 2011
update-webgl-conformance-tests 2011-06-27 Adam Barth <abarth@webkit.org> Jun 27, 2011
update-webkit [chromium] Chromium window build system does not rebuild correctly wh… Oct 23, 2012
update-webkit-auxiliary-libs Fix other instances of http://developer links which should be https:/… Feb 4, 2012
update-webkit-chromium [Chromium] Remove unneeded build logic for Android Aug 14, 2012
update-webkit-dependency [WinCairo] Update URL of WinCairoRequirements.zip download. Jun 13, 2012
update-webkit-libs-jhbuild [jhbuild] move md5sum checking to update-webkit-libs-jhbuild Aug 15, 2012
update-webkit-localizable-strings Make update-webkit-localizable-strings put WebKit/win strings in WebCore Apr 18, 2011
update-webkit-support-libs Fix other instances of http://developer links which should be https:/… Feb 4, 2012
update-webkit-wincairo-libs [WinCairo] Update URL of WinCairoRequirements.zip download. Jun 13, 2012
update-webkitefl-libs Unreviewed warning fix, sys.argv is a python construct. Aug 16, 2012
update-webkitgtk-libs Unreviewed, trivial update-webkit-libs-jhbuild system call fix. Mar 28, 2012
validate-committer-lists 2011-05-11 Eric Seidel <eric@webkit.org> May 12, 2011
webkit-build-directory Chromium bots should upload archived built files Mar 31, 2012
webkit-patch Teach webkit-patch to gracefully handle writes of raw utf-8 encoded s… May 15, 2012
webkit-tools-completion.sh Add a note about hostname completion not working well with --cc compl… Jun 26, 2012
webkitdirs.pm [Qt] REGRESSION(r128174): Fast build path doesn't work now Nov 20, 2012
Something went wrong with that request. Please try again.