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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/bb_webkit_latest_webkit_tester.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # Bash functions used by buildbot annotator scripts for the android 6 # Bash functions used by buildbot annotator scripts for the android
7 # build of chromium. Executing this script should not perform actions 7 # build of chromium. Executing this script should not perform actions
8 # other than setting variables and defining of functions. 8 # other than setting variables and defining of functions.
9 9
10 # Number of jobs on the compile line; e.g. make -j"${JOBS}" 10 # Number of jobs on the compile line; e.g. make -j"${JOBS}"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 function bb_print_logcat { 201 function bb_print_logcat {
202 echo "@@@BUILD_STEP Logcat dump@@@" 202 echo "@@@BUILD_STEP Logcat dump@@@"
203 python build/android/adb_logcat_printer.py "$LOGCAT_DUMP_DIR" 203 python build/android/adb_logcat_printer.py "$LOGCAT_DUMP_DIR"
204 } 204 }
205 205
206 # Run tests on an actual device. (Better have one plugged in!) 206 # Run tests on an actual device. (Better have one plugged in!)
207 function bb_run_unit_tests { 207 function bb_run_unit_tests {
208 build/android/run_tests.py --xvfb --verbose 208 build/android/run_tests.py --xvfb --verbose
209 } 209 }
210 210
211 # Run WebKit's test suites: webkit_unit_tests and TestWebKitAPI
212 function bb_run_webkit_unit_tests {
213 build/android/run_tests.py --xvfb --verbose -s webkit_unit_tests
214 build/android/run_tests.py --xvfb --verbose -s TestWebKitAPI
215 }
216
217 # Lint WebKit's TestExpectation files.
218 function bb_lint_webkit_expectation_files {
219 echo "@@@BUILD_STEP webkit_lint@@@"
220 python webkit/tools/layout_tests/run_webkit_tests.py \
221 --lint-test-files \
222 --chromium
223 if [[ $? -ne 0 ]]; then
224 echo "@@@STEP_FAILURE@@@"
225 fi
226 }
227
228 # Run layout tests on an actual device.
229 function bb_run_webkit_layout_tests {
230 echo "@@@BUILD_STEP webkit_tests@@@"
231 local BUILDERNAME=$(bb_get_json_prop "$BUILD_PROPERTIES" buildername)
232 local BUILDNUMBER=$(bb_get_json_prop "$BUILD_PROPERTIES" buildnumber)
233 local MASTERNAME=$(bb_get_json_prop "$BUILD_PROPERTIES" mastername)
234 local RESULTSERVER=\
235 $(bb_get_json_prop "$FACTORY_PROPERTIES" test_results_server)
Isaac (away) 2012/11/06 19:01:27 nit, wrap this in double quotes for safety. The f
Peter Beverloo 2012/11/06 19:15:03 Done.
236
237 python webkit/tools/layout_tests/run_webkit_tests.py \
238 --no-show-results \
239 --no-new-test-results \
240 --full-results-html \
241 --clobber-old-results \
242 --exit-after-n-failures 5000 \
243 --exit-after-n-crashes-or-timeouts 100 \
244 --debug-rwt-logging \
245 --results-directory "../layout-test-results" \
246 --target "$BUILDTYPE" \
247 --builder-name "$BUILDERNAME" \
248 --build-number "$BUILDNUMBER" \
249 --master-name "$MASTERNAME" \
250 --build-name "$BUILDERNAME" \
251 --platform=chromium-android \
252 --test-results-server "$RESULTSERVER"
253
254 if [[ $? -ne 0 ]]; then
255 echo "@@@STEP_FAILURE@@@"
Isaac (away) 2012/11/06 19:01:27 This code is unreachable. The step is run under '
Peter Beverloo 2012/11/06 19:15:03 Done.
256 fi
257 }
258
211 # Run experimental unittest bundles. 259 # Run experimental unittest bundles.
212 function bb_run_experimental_unit_tests { 260 function bb_run_experimental_unit_tests {
213 # This build step was added because bash does not allow empty functions. 261 # This build step was added because bash does not allow empty functions.
214 # run_tests.py echoes a build step, comment/remove this build step when you 262 # run_tests.py echoes a build step, comment/remove this build step when you
215 # add tests to the experimental step. 263 # add tests to the experimental step.
216 echo '@@@BUILD_STEP experimental_unit_tests@@@' 264 echo '@@@BUILD_STEP experimental_unit_tests@@@'
217
218 } 265 }
219 266
220 # Run findbugs. 267 # Run findbugs.
221 function bb_run_findbugs_diff { 268 function bb_run_findbugs_diff {
222 echo "@@@BUILD_STEP findbugs_diff@@@" 269 echo "@@@BUILD_STEP findbugs_diff@@@"
223 build/android/findbugs_diff.py 270 build/android/findbugs_diff.py
224 } 271 }
225 272
226 # Run findbugs plugin tests. 273 # Run findbugs plugin tests.
227 function bb_run_findbugs_plugin_tests { 274 function bb_run_findbugs_plugin_tests {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 ) 383 )
337 } 384 }
338 385
339 # Retrieve a packed json property using python 386 # Retrieve a packed json property using python
340 function bb_get_json_prop { 387 function bb_get_json_prop {
341 local JSON="$1" 388 local JSON="$1"
342 local PROP="$2" 389 local PROP="$2"
343 390
344 python -c "import json; print json.loads('$JSON').get('$PROP', '')" 391 python -c "import json; print json.loads('$JSON').get('$PROP', '')"
345 } 392 }
OLDNEW
« 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