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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 build/android/run_tests.py -e --xvfb --verbose | 247 build/android/run_tests.py -e --xvfb --verbose |
248 } | 248 } |
249 | 249 |
250 # Run tests on an actual device. (Better have one plugged in!) | 250 # Run tests on an actual device. (Better have one plugged in!) |
251 function bb_run_tests { | 251 function bb_run_tests { |
252 python build/android/device_status_check.py | 252 python build/android/device_status_check.py |
253 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 253 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
254 build/android/run_tests.py --xvfb --verbose | 254 build/android/run_tests.py --xvfb --verbose |
255 } | 255 } |
256 | 256 |
257 # Run simple content shell test on device. | |
258 function bb_run_content_shell_test { | |
259 echo "@@@BUILD_STEP Run simple content shell test on actual hardware@@@" | |
260 content/shell/android/simple_content_shell_test.sh \ | |
261 "${SRC_ROOT}"/out/Release/content_shell/ContentShell-debug.apk | |
262 } | |
263 | |
264 # Run content shell instrumentation test on device. | 257 # Run content shell instrumentation test on device. |
265 function bb_run_content_shell_instrumentation_test { | 258 function bb_run_content_shell_instrumentation_test { |
266 echo "@@@BUILD_STEP Run content shell instrumentation test on actual "\ | 259 echo "@@@BUILD_STEP Run content shell instrumentation test on actual "\ |
267 "hardware@@@" | 260 "hardware@@@" |
268 build/android/adb_install_content_shell | 261 build/android/adb_install_content_shell |
269 build/android/run_instrumentation_tests.py -I \ | 262 build/android/run_instrumentation_tests.py -I \ |
270 --test-apk content_shell_test/ContentShellTest-debug -vvv | 263 --test-apk content_shell_test/ContentShellTest-debug -vvv |
271 } | 264 } |
272 | 265 |
273 # Zip and archive a build. | 266 # Zip and archive a build. |
(...skipping 27 matching lines...) Expand all Loading... |
301 --factory-properties "$FACTORY_PROPERTIES" \ | 294 --factory-properties "$FACTORY_PROPERTIES" \ |
302 --build-properties "$BUILD_PROPERTIES" | 295 --build-properties "$BUILD_PROPERTIES" |
303 extract_exitcode=$? | 296 extract_exitcode=$? |
304 if (( $extract_exitcode > 1 )); then | 297 if (( $extract_exitcode > 1 )); then |
305 echo "@@@STEP_WARNINGS@@@" | 298 echo "@@@STEP_WARNINGS@@@" |
306 return | 299 return |
307 fi | 300 fi |
308 return $extract_exitcode | 301 return $extract_exitcode |
309 ) | 302 ) |
310 } | 303 } |
OLD | NEW |