Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2299)

Unified Diff: build/android/buildbot/buildbot_functions.sh

Issue 11312101: Teach the WebKit bots how to run layout tests, TestWebKitAPI and webkit_unit_tests for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/buildbot/bb_webkit_latest_webkit_tester.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/buildbot_functions.sh
diff --git a/build/android/buildbot/buildbot_functions.sh b/build/android/buildbot/buildbot_functions.sh
index 7835b465500dfdec19b023d2fe1a77763e1bb8be..73bec0ad475a1fda0f03aff050b6f1f4f211e51a 100755
--- a/build/android/buildbot/buildbot_functions.sh
+++ b/build/android/buildbot/buildbot_functions.sh
@@ -208,13 +208,53 @@ function bb_run_unit_tests {
build/android/run_tests.py --xvfb --verbose
}
+# Run WebKit's test suites: webkit_unit_tests and TestWebKitAPI
+function bb_run_webkit_unit_tests {
+ build/android/run_tests.py --xvfb --verbose -s webkit_unit_tests
+ build/android/run_tests.py --xvfb --verbose -s TestWebKitAPI
+}
+
+# Lint WebKit's TestExpectation files.
+function bb_lint_webkit_expectation_files {
+ echo "@@@BUILD_STEP webkit_lint@@@"
+ bb_run_step python webkit/tools/layout_tests/run_webkit_tests.py \
+ --lint-test-files \
+ --chromium
+}
+
+# Run layout tests on an actual device.
+function bb_run_webkit_layout_tests {
+ echo "@@@BUILD_STEP webkit_tests@@@"
+ local BUILDERNAME="$(bb_get_json_prop "$BUILD_PROPERTIES" buildername)"
+ local BUILDNUMBER="$(bb_get_json_prop "$BUILD_PROPERTIES" buildnumber)"
+ local MASTERNAME="$(bb_get_json_prop "$BUILD_PROPERTIES" mastername)"
+ local RESULTSERVER=\
+ "$(bb_get_json_prop "$FACTORY_PROPERTIES" test_results_server)"
+
+ bb_run_step python webkit/tools/layout_tests/run_webkit_tests.py \
+ --no-show-results \
+ --no-new-test-results \
+ --full-results-html \
+ --clobber-old-results \
+ --exit-after-n-failures 5000 \
+ --exit-after-n-crashes-or-timeouts 100 \
+ --debug-rwt-logging \
+ --results-directory "../layout-test-results" \
+ --target "$BUILDTYPE" \
+ --builder-name "$BUILDERNAME" \
+ --build-number "$BUILDNUMBER" \
+ --master-name "$MASTERNAME" \
+ --build-name "$BUILDERNAME" \
+ --platform=chromium-android \
+ --test-results-server "$RESULTSERVER"
+}
+
# Run experimental unittest bundles.
function bb_run_experimental_unit_tests {
-# This build step was added because bash does not allow empty functions.
-# run_tests.py echoes a build step, comment/remove this build step when you
-# add tests to the experimental step.
-echo '@@@BUILD_STEP experimental_unit_tests@@@'
-
+ # This build step was added because bash does not allow empty functions.
+ # run_tests.py echoes a build step, comment/remove this build step when you
+ # add tests to the experimental step.
+ echo '@@@BUILD_STEP experimental_unit_tests@@@'
}
# Run findbugs.
« no previous file with comments | « build/android/buildbot/bb_webkit_latest_webkit_tester.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698