| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 # Run tests on an emulator. | 241 # Run tests on an emulator. |
| 242 function bb_run_tests_emulator { | 242 function bb_run_tests_emulator { |
| 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 |
| 251 } | 251 } |
| 252 | 252 |
| 253 # Zip and archive a build. | 253 # Zip and archive a build. |
| 254 function bb_zip_build { | 254 function bb_zip_build { |
| 255 echo "@@@BUILD_STEP Zip build@@@" | 255 echo "@@@BUILD_STEP Zip build@@@" |
| 256 python ../../../../scripts/slave/zip_build.py \ | 256 python ../../../../scripts/slave/zip_build.py \ |
| 257 --src-dir "$SRC_ROOT" \ | 257 --src-dir "$SRC_ROOT" \ |
| 258 --exclude-files "lib.target" \ | 258 --exclude-files "lib.target" \ |
| 259 --factory-properties "$FACTORY_PROPERTIES" \ | 259 --factory-properties "$FACTORY_PROPERTIES" \ |
| 260 --build-properties "$BUILD_PROPERTIES" | 260 --build-properties "$BUILD_PROPERTIES" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 281 --factory-properties "$FACTORY_PROPERTIES" \ | 281 --factory-properties "$FACTORY_PROPERTIES" \ |
| 282 --build-properties "$BUILD_PROPERTIES" | 282 --build-properties "$BUILD_PROPERTIES" |
| 283 extract_exitcode=$? | 283 extract_exitcode=$? |
| 284 if (( $extract_exitcode > 1 )); then | 284 if (( $extract_exitcode > 1 )); then |
| 285 echo "@@@STEP_WARNINGS@@@" | 285 echo "@@@STEP_WARNINGS@@@" |
| 286 return | 286 return |
| 287 fi | 287 fi |
| 288 return $extract_exitcode | 288 return $extract_exitcode |
| 289 ) | 289 ) |
| 290 } | 290 } |
| OLD | NEW |