| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" | 243 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" |
| 244 build/android/run_tests.py -e --xvfb --verbose | 244 build/android/run_tests.py -e --xvfb --verbose |
| 245 } | 245 } |
| 246 | 246 |
| 247 # Run tests on an actual device. (Better have one plugged in!) | 247 # Run tests on an actual device. (Better have one plugged in!) |
| 248 function bb_run_tests { | 248 function bb_run_tests { |
| 249 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 249 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 250 build/android/run_tests.py --xvfb --verbose --apk=True | 250 build/android/run_tests.py --xvfb --verbose --apk=True |
| 251 } | 251 } |
| 252 | 252 |
| 253 # Run simple content shell test on device. |
| 254 function bb_run_content_shell_test { |
| 255 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" |
| 256 content/shell/android/simple_content_shell_test.sh \ |
| 257 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk |
| 258 } |
| 259 |
| 253 # Zip and archive a build. | 260 # Zip and archive a build. |
| 254 function bb_zip_build { | 261 function bb_zip_build { |
| 255 echo "@@@BUILD_STEP Zip build@@@" | 262 echo "@@@BUILD_STEP Zip build@@@" |
| 256 python ../../../../scripts/slave/zip_build.py \ | 263 python ../../../../scripts/slave/zip_build.py \ |
| 257 --src-dir "$SRC_ROOT" \ | 264 --src-dir "$SRC_ROOT" \ |
| 258 --exclude-files "lib.target" \ | 265 --exclude-files "lib.target" \ |
| 259 --factory-properties "$FACTORY_PROPERTIES" \ | 266 --factory-properties "$FACTORY_PROPERTIES" \ |
| 260 --build-properties "$BUILD_PROPERTIES" | 267 --build-properties "$BUILD_PROPERTIES" |
| 261 } | 268 } |
| 262 | 269 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 281 --factory-properties "$FACTORY_PROPERTIES" \ | 288 --factory-properties "$FACTORY_PROPERTIES" \ |
| 282 --build-properties "$BUILD_PROPERTIES" | 289 --build-properties "$BUILD_PROPERTIES" |
| 283 extract_exitcode=$? | 290 extract_exitcode=$? |
| 284 if (( $extract_exitcode > 1 )); then | 291 if (( $extract_exitcode > 1 )); then |
| 285 echo "@@@STEP_WARNINGS@@@" | 292 echo "@@@STEP_WARNINGS@@@" |
| 286 return | 293 return |
| 287 fi | 294 fi |
| 288 return $extract_exitcode | 295 return $extract_exitcode |
| 289 ) | 296 ) |
| 290 } | 297 } |
| OLD | NEW |