| OLD | NEW |
| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 # Run instrumentation tests. Using -I to install the test apk. | 235 # Run instrumentation tests. Using -I to install the test apk. |
| 236 bb_run_step python build/android/run_instrumentation_tests.py \ | 236 bb_run_step python build/android/run_instrumentation_tests.py \ |
| 237 -vvv --test-apk ${TEST_APK} -I | 237 -vvv --test-apk ${TEST_APK} -I |
| 238 } | 238 } |
| 239 | 239 |
| 240 # Run instrumentation tests for all relevant APKs on device. | 240 # Run instrumentation tests for all relevant APKs on device. |
| 241 function bb_run_instrumentation_tests { | 241 function bb_run_instrumentation_tests { |
| 242 bb_run_all_instrumentation_tests_for_apk "ContentShell-debug.apk" \ | 242 bb_run_all_instrumentation_tests_for_apk "ContentShell-debug.apk" \ |
| 243 "org.chromium.content_shell" "ContentShellTest" | 243 "org.chromium.content_shell" "ContentShellTest" |
| 244 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell-debug.apk" \ | 244 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell-debug.apk" \ |
| 245 "org.chromium.chrome.browser" "ChromiumTestShellTest" | 245 "org.chromium.chrome.testshell" "ChromiumTestShellTest" |
| 246 bb_run_all_instrumentation_tests_for_apk "AndroidWebView-debug.apk" \ | 246 bb_run_all_instrumentation_tests_for_apk "AndroidWebView-debug.apk" \ |
| 247 "org.chromium.android_webview" "AndroidWebViewTest" | 247 "org.chromium.android_webview" "AndroidWebViewTest" |
| 248 } | 248 } |
| 249 | 249 |
| 250 # Zip and archive a build. | 250 # Zip and archive a build. |
| 251 function bb_zip_build { | 251 function bb_zip_build { |
| 252 echo "@@@BUILD_STEP Zip build@@@" | 252 echo "@@@BUILD_STEP Zip build@@@" |
| 253 python ../../../../scripts/slave/zip_build.py \ | 253 python ../../../../scripts/slave/zip_build.py \ |
| 254 --src-dir "$SRC_ROOT" \ | 254 --src-dir "$SRC_ROOT" \ |
| 255 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ | 255 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 ) | 314 ) |
| 315 } | 315 } |
| 316 | 316 |
| 317 # Retrieve a packed json property using python | 317 # Retrieve a packed json property using python |
| 318 function bb_get_json_prop { | 318 function bb_get_json_prop { |
| 319 local JSON="$1" | 319 local JSON="$1" |
| 320 local PROP="$2" | 320 local PROP="$2" |
| 321 | 321 |
| 322 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 322 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
| 323 } | 323 } |
| OLD | NEW |