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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 } | 334 } |
335 | 335 |
336 # Run instrumentation tests for all relevant APKs on device. | 336 # Run instrumentation tests for all relevant APKs on device. |
337 function bb_run_instrumentation_tests { | 337 function bb_run_instrumentation_tests { |
338 bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \ | 338 bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \ |
339 "org.chromium.content_shell" "ContentShellTest" \ | 339 "org.chromium.content_shell" "ContentShellTest" \ |
340 "content:content/test/data/android/device_files" | 340 "content:content/test/data/android/device_files" |
341 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \ | 341 bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \ |
342 "org.chromium.chrome.testshell" "ChromiumTestShellTest" \ | 342 "org.chromium.chrome.testshell" "ChromiumTestShellTest" \ |
343 "chrome:chrome/test/data/android/device_files" | 343 "chrome:chrome/test/data/android/device_files" |
344 } | |
345 | |
346 # Run instrumentation tests for experimental APKs on device. | |
347 function bb_run_experimental_instrumentation_tests { | |
348 bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \ | 344 bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \ |
349 "org.chromium.android_webview" "AndroidWebViewTest" \ | 345 "org.chromium.android_webview" "AndroidWebViewTest" \ |
350 "webview:android_webview/test/data/device_files" | 346 "webview:android_webview/test/data/device_files" |
351 } | 347 } |
352 | 348 |
| 349 # Run instrumentation tests for experimental APKs on device. |
| 350 function bb_run_experimental_instrumentation_tests { |
| 351 echo "" # Can't have empty functions in bash. |
| 352 } |
| 353 |
353 # Zip and archive a build. | 354 # Zip and archive a build. |
354 function bb_zip_build { | 355 function bb_zip_build { |
355 echo "@@@BUILD_STEP Zip build@@@" | 356 echo "@@@BUILD_STEP Zip build@@@" |
356 python ../../../../scripts/slave/zip_build.py \ | 357 python ../../../../scripts/slave/zip_build.py \ |
357 --src-dir "$SRC_ROOT" \ | 358 --src-dir "$SRC_ROOT" \ |
358 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ | 359 --exclude-files "lib.target,gen,android_webview,jingle_unittests" \ |
359 --factory-properties "$FACTORY_PROPERTIES" \ | 360 --factory-properties "$FACTORY_PROPERTIES" \ |
360 --build-properties "$BUILD_PROPERTIES" | 361 --build-properties "$BUILD_PROPERTIES" |
361 } | 362 } |
362 | 363 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 ) | 418 ) |
418 } | 419 } |
419 | 420 |
420 # Retrieve a packed json property using python | 421 # Retrieve a packed json property using python |
421 function bb_get_json_prop { | 422 function bb_get_json_prop { |
422 local JSON="$1" | 423 local JSON="$1" |
423 local PROP="$2" | 424 local PROP="$2" |
424 | 425 |
425 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 426 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
426 } | 427 } |
OLD | NEW |