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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 bb_run_step python build/android/run_instrumentation_tests.py \ | 312 bb_run_step python build/android/run_instrumentation_tests.py \ |
313 -vvv --test-apk ${TEST_APK} -I | 313 -vvv --test-apk ${TEST_APK} -I |
314 } | 314 } |
315 | 315 |
316 # Run instrumentation tests for all relevant APKs on device. | 316 # Run instrumentation tests for all relevant APKs on device. |
317 function bb_run_instrumentation_tests { | 317 function bb_run_instrumentation_tests { |
318 bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \ | 318 bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \ |
319 "org.chromium.content_shell" "ContentShellTest" | 319 "org.chromium.content_shell" "ContentShellTest" |
320 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \ | 320 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \ |
321 "org.chromium.chrome.testshell" "ChromiumTestShellTest" | 321 "org.chromium.chrome.testshell" "ChromiumTestShellTest" |
| 322 } |
| 323 |
| 324 # Run instrumentation tests for experimental APKs on device. |
| 325 function bb_run_experimental_instrumentation_tests { |
322 bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \ | 326 bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \ |
323 "org.chromium.android_webview" "AndroidWebViewTest" | 327 "org.chromium.android_webview" "AndroidWebViewTest" |
324 } | 328 } |
325 | 329 |
326 # Zip and archive a build. | 330 # Zip and archive a build. |
327 function bb_zip_build { | 331 function bb_zip_build { |
328 echo "@@@BUILD_STEP Zip build@@@" | 332 echo "@@@BUILD_STEP Zip build@@@" |
329 python ../../../../scripts/slave/zip_build.py \ | 333 python ../../../../scripts/slave/zip_build.py \ |
330 --src-dir "$SRC_ROOT" \ | 334 --src-dir "$SRC_ROOT" \ |
331 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ | 335 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 ) | 394 ) |
391 } | 395 } |
392 | 396 |
393 # Retrieve a packed json property using python | 397 # Retrieve a packed json property using python |
394 function bb_get_json_prop { | 398 function bb_get_json_prop { |
395 local JSON="$1" | 399 local JSON="$1" |
396 local PROP="$2" | 400 local PROP="$2" |
397 | 401 |
398 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 402 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
399 } | 403 } |
OLD | NEW |