diff options
author | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 13:53:14 +0000 |
---|---|---|
committer | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 13:53:14 +0000 |
commit | 7ed41a74868ffef2486afa91a977dc176fb19551 (patch) | |
tree | ae932daafe04a0ea6a723644f95e27b1c29dab16 /build/android/buildbot/buildbot_functions.sh | |
parent | a2d6b2e7715f4a78476c06f3d1a453f70bcd193c (diff) | |
download | chromium_src-7ed41a74868ffef2486afa91a977dc176fb19551.zip chromium_src-7ed41a74868ffef2486afa91a977dc176fb19551.tar.gz chromium_src-7ed41a74868ffef2486afa91a977dc176fb19551.tar.bz2 |
Teach the WebKit bots how to run layout tests, TestWebKitAPI and webkit_unit_tests for Android
This will enable them to run the suites themselves. Having more detailed error
messages and uploading the created results will be implemented after this.
BUG=136774
Review URL: https://chromiumcodereview.appspot.com/11312101
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/buildbot/buildbot_functions.sh')
-rwxr-xr-x | build/android/buildbot/buildbot_functions.sh | 50 |
1 files changed, 45 insertions, 5 deletions
diff --git a/build/android/buildbot/buildbot_functions.sh b/build/android/buildbot/buildbot_functions.sh index 7835b46..73bec0a 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. |