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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 function bb_run_content_shell_test { | 258 function bb_run_content_shell_test { |
259 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" | 259 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" |
260 content/shell/android/simple_content_shell_test.sh \ | 260 content/shell/android/simple_content_shell_test.sh \ |
261 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk | 261 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk |
262 } | 262 } |
263 | 263 |
264 # Run content shell instrumentation test on device. | 264 # Run content shell instrumentation test on device. |
265 function bb_run_content_shell_instrumentation_test { | 265 function bb_run_content_shell_instrumentation_test { |
266 echo "@@@BUILD_STEP Run content shell instrumentation test on actual "\ | 266 echo "@@@BUILD_STEP Run content shell instrumentation test on actual "\ |
267 "hardware@@@" | 267 "hardware@@@" |
| 268 build/android/adb_install_content_shell |
268 build/android/run_instrumentation_tests.py -I \ | 269 build/android/run_instrumentation_tests.py -I \ |
269 --test-apk content_shell_test/ContentShellTest-debug -vvv | 270 --test-apk content_shell_test/ContentShellTest-debug -vvv |
270 } | 271 } |
271 | 272 |
272 # Zip and archive a build. | 273 # Zip and archive a build. |
273 function bb_zip_build { | 274 function bb_zip_build { |
274 echo "@@@BUILD_STEP Zip build@@@" | 275 echo "@@@BUILD_STEP Zip build@@@" |
275 python ../../../../scripts/slave/zip_build.py \ | 276 python ../../../../scripts/slave/zip_build.py \ |
276 --src-dir "$SRC_ROOT" \ | 277 --src-dir "$SRC_ROOT" \ |
277 --exclude-files "lib.target" \ | 278 --exclude-files "lib.target" \ |
(...skipping 22 matching lines...) Expand all Loading... |
300 --factory-properties "$FACTORY_PROPERTIES" \ | 301 --factory-properties "$FACTORY_PROPERTIES" \ |
301 --build-properties "$BUILD_PROPERTIES" | 302 --build-properties "$BUILD_PROPERTIES" |
302 extract_exitcode=$? | 303 extract_exitcode=$? |
303 if (( $extract_exitcode > 1 )); then | 304 if (( $extract_exitcode > 1 )); then |
304 echo "@@@STEP_WARNINGS@@@" | 305 echo "@@@STEP_WARNINGS@@@" |
305 return | 306 return |
306 fi | 307 fi |
307 return $extract_exitcode | 308 return $extract_exitcode |
308 ) | 309 ) |
309 } | 310 } |
OLD | NEW |