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

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

Issue 11348202: Specify the test files to be used as an argument to the instrumentation tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specify the test files to be used as an argument to the instrumentation tests - code review fixes 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 | « no previous file | build/android/pylib/run_java_tests.py » ('j') | 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 6ab33dc18e2132edb20f0cacaee9c6e8311de9ef..c9daca5e5c8f2fb802f09e5844ea2e66bcb1c504 100755
--- a/build/android/buildbot/buildbot_functions.sh
+++ b/build/android/buildbot/buildbot_functions.sh
@@ -315,10 +315,12 @@ function bb_install_apk {
# $1: APK to be installed.
# $2: APK_PACKAGE for the APK to be installed.
# $3: TEST_APK to run the tests against.
+# $4: TEST_DATA in format destination:source
function bb_run_all_instrumentation_tests_for_apk {
local APK=${1}
local APK_PACKAGE=${2}
local TEST_APK=${3}
+ local TEST_DATA=${4}
# Install application APK.
bb_install_apk ${APK} ${APK_PACKAGE}
@@ -326,21 +328,24 @@ function bb_run_all_instrumentation_tests_for_apk {
# 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
+ -vvv --test-apk ${TEST_APK} -I --test_data ${TEST_DATA}
}
# Run instrumentation tests for all relevant APKs on device.
function bb_run_instrumentation_tests {
bb_run_all_instrumentation_tests_for_apk "ContentShell.apk" \
- "org.chromium.content_shell" "ContentShellTest"
+ "org.chromium.content_shell" "ContentShellTest" \
+ "content:content/test/data/android/device_files"
bb_run_all_instrumentation_tests_for_apk "ChromiumTestShell.apk" \
- "org.chromium.chrome.testshell" "ChromiumTestShellTest"
+ "org.chromium.chrome.testshell" "ChromiumTestShellTest" \
+ "chrome:chrome/test/data/android/device_files"
}
# Run instrumentation tests for experimental APKs on device.
function bb_run_experimental_instrumentation_tests {
bb_run_all_instrumentation_tests_for_apk "AndroidWebView.apk" \
- "org.chromium.android_webview" "AndroidWebViewTest"
+ "org.chromium.android_webview" "AndroidWebViewTest" \
+ "webview:android_webview/test/data/device_files"
}
# Zip and archive a build.
« no previous file with comments | « no previous file | build/android/pylib/run_java_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698