| 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.
|
|
|