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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 python build/android/adb_install_apk.py --apk ${APK} \ | 238 python build/android/adb_install_apk.py --apk ${APK} \ |
239 --apk_package ${APK_PACKAGE} | 239 --apk_package ${APK_PACKAGE} |
240 | 240 |
241 # Run instrumentation tests. Using -I to install the test apk. | 241 # Run instrumentation tests. Using -I to install the test apk. |
242 bb_run_step python build/android/run_instrumentation_tests.py \ | 242 bb_run_step python build/android/run_instrumentation_tests.py \ |
243 -vvv --test-apk ${TEST_APK} -I | 243 -vvv --test-apk ${TEST_APK} -I |
244 } | 244 } |
245 | 245 |
246 # Run instrumentation tests for all relevant APKs on device. | 246 # Run instrumentation tests for all relevant APKs on device. |
247 function bb_run_instrumentation_tests { | 247 function bb_run_instrumentation_tests { |
248 bb_run_all_instrumentation_tests_for_apk "ContentShell-debug.apk" \ | 248 bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \ |
249 "org.chromium.content_shell" "ContentShellTest" | 249 "org.chromium.content_shell" "ContentShellTest" |
250 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell-debug.apk" \ | 250 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \ |
251 "org.chromium.chrome.testshell" "ChromiumTestShellTest" | 251 "org.chromium.chrome.testshell" "ChromiumTestShellTest" |
252 bb_run_all_instrumentation_tests_for_apk "AndroidWebView-debug.apk" \ | 252 bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \ |
253 "org.chromium.android_webview" "AndroidWebViewTest" | 253 "org.chromium.android_webview" "AndroidWebViewTest" |
254 } | 254 } |
255 | 255 |
256 # Zip and archive a build. | 256 # Zip and archive a build. |
257 function bb_zip_build { | 257 function bb_zip_build { |
258 echo "@@@BUILD_STEP Zip build@@@" | 258 echo "@@@BUILD_STEP Zip build@@@" |
259 python ../../../../scripts/slave/zip_build.py \ | 259 python ../../../../scripts/slave/zip_build.py \ |
260 --src-dir "$SRC_ROOT" \ | 260 --src-dir "$SRC_ROOT" \ |
261 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ | 261 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ |
262 --factory-properties "$FACTORY_PROPERTIES" \ | 262 --factory-properties "$FACTORY_PROPERTIES" \ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 ) | 320 ) |
321 } | 321 } |
322 | 322 |
323 # Retrieve a packed json property using python | 323 # Retrieve a packed json property using python |
324 function bb_get_json_prop { | 324 function bb_get_json_prop { |
325 local JSON="$1" | 325 local JSON="$1" |
326 local PROP="$2" | 326 local PROP="$2" |
327 | 327 |
328 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 328 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
329 } | 329 } |
OLD | NEW |