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

Unified Diff: build/android/buildbot/buildbot_functions.sh

Issue 11412108: Install ContentShell.apk on android perf bot tester. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/buildbot/bb_perf_gn_tests.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/buildbot_functions.sh
diff --git a/build/android/buildbot/buildbot_functions.sh b/build/android/buildbot/buildbot_functions.sh
index 9f56a18e5c6eacdf9786130df314f5ea23799e05..e227c22e55232b9bf1eb8da7860dbf4655c266b5 100755
--- a/build/android/buildbot/buildbot_functions.sh
+++ b/build/android/buildbot/buildbot_functions.sh
@@ -294,6 +294,22 @@ function bb_run_step {
)
}
+# Install a specific APK.
+# Args:
+# $1: APK to be installed.
+# $2: APK_PACKAGE for the APK to be installed.
+function bb_install_apk {
+ local APK=${1}
+ local APK_PACKAGE=${2}
+ if [[ $BUILDTYPE = Release ]]; then
+ local BUILDFLAG="--release"
+ fi
+
+ echo "@@@BUILD_STEP Install ${APK}@@@"
+ python build/android/adb_install_apk.py --apk ${APK} \
+ --apk_package ${APK_PACKAGE} ${BUILDFLAG}
+}
+
# Run instrumentation tests for a specific APK.
# Args:
# $1: APK to be installed.
@@ -305,10 +321,10 @@ function bb_run_all_instrumentation_tests_for_apk {
local TEST_APK=${3}
# Install application APK.
- python build/android/adb_install_apk.py --apk ${APK} \
- --apk_package ${APK_PACKAGE}
+ bb_install_apk ${APK} ${APK_PACKAGE}
# Run instrumentation tests. Using -I to install the test apk.
+ echo "@@@BUILD_STEP Run instrumentation tests ${TEST_APK}@@@"
bb_run_step python build/android/run_instrumentation_tests.py \
-vvv --test-apk ${TEST_APK} -I
}
« no previous file with comments | « build/android/buildbot/bb_perf_gn_tests.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698