| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 echo "@@@BUILD_STEP Clobber@@@" | 120 echo "@@@BUILD_STEP Clobber@@@" |
| 121 rm -rf "${SRC_ROOT}"/out | 121 rm -rf "${SRC_ROOT}"/out |
| 122 if [ -e "${SRC_ROOT}"/out ] ; then | 122 if [ -e "${SRC_ROOT}"/out ] ; then |
| 123 echo "Clobber appeared to fail? ${SRC_ROOT}/out still exists." | 123 echo "Clobber appeared to fail? ${SRC_ROOT}/out still exists." |
| 124 echo "@@@STEP_WARNINGS@@@" | 124 echo "@@@STEP_WARNINGS@@@" |
| 125 fi | 125 fi |
| 126 fi | 126 fi |
| 127 | 127 |
| 128 # Should be called only after envsetup is done. | 128 # Should be called only after envsetup is done. |
| 129 bb_run_gclient_hooks | 129 bb_run_gclient_hooks |
| 130 | |
| 131 python build/android/device_status_check.py | |
| 132 } | 130 } |
| 133 | 131 |
| 134 | 132 |
| 135 # Setup goma. Used internally to buildbot_functions.sh. | 133 # Setup goma. Used internally to buildbot_functions.sh. |
| 136 function bb_setup_goma_internal { | 134 function bb_setup_goma_internal { |
| 137 | 135 |
| 138 # Quick bail if I messed things up and can't wait for the CQ to | 136 # Quick bail if I messed things up and can't wait for the CQ to |
| 139 # flush out. | 137 # flush out. |
| 140 # TODO(jrg): remove this condition when things are | 138 # TODO(jrg): remove this condition when things are |
| 141 # proven stable (4/1/12 or so). | 139 # proven stable (4/1/12 or so). |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 242 } |
| 245 | 243 |
| 246 # Run tests on an emulator. | 244 # Run tests on an emulator. |
| 247 function bb_run_tests_emulator { | 245 function bb_run_tests_emulator { |
| 248 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" | 246 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" |
| 249 build/android/run_tests.py -e --xvfb --verbose | 247 build/android/run_tests.py -e --xvfb --verbose |
| 250 } | 248 } |
| 251 | 249 |
| 252 # Run tests on an actual device. (Better have one plugged in!) | 250 # Run tests on an actual device. (Better have one plugged in!) |
| 253 function bb_run_tests { | 251 function bb_run_tests { |
| 252 python build/android/device_status_check.py |
| 254 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 253 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 255 build/android/run_tests.py --xvfb --verbose | 254 build/android/run_tests.py --xvfb --verbose |
| 256 } | 255 } |
| 257 | 256 |
| 258 # Run simple content shell test on device. | 257 # Run simple content shell test on device. |
| 259 function bb_run_content_shell_test { | 258 function bb_run_content_shell_test { |
| 260 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" | 259 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" |
| 261 content/shell/android/simple_content_shell_test.sh \ | 260 content/shell/android/simple_content_shell_test.sh \ |
| 262 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk | 261 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk |
| 263 } | 262 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 293 --factory-properties "$FACTORY_PROPERTIES" \ | 292 --factory-properties "$FACTORY_PROPERTIES" \ |
| 294 --build-properties "$BUILD_PROPERTIES" | 293 --build-properties "$BUILD_PROPERTIES" |
| 295 extract_exitcode=$? | 294 extract_exitcode=$? |
| 296 if (( $extract_exitcode > 1 )); then | 295 if (( $extract_exitcode > 1 )); then |
| 297 echo "@@@STEP_WARNINGS@@@" | 296 echo "@@@STEP_WARNINGS@@@" |
| 298 return | 297 return |
| 299 fi | 298 fi |
| 300 return $extract_exitcode | 299 return $extract_exitcode |
| 301 ) | 300 ) |
| 302 } | 301 } |
| OLD | NEW |