| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 python build/android/adb_logcat_printer.py "$LOGCAT_DUMP_DIR" | 203 python build/android/adb_logcat_printer.py "$LOGCAT_DUMP_DIR" |
| 204 } | 204 } |
| 205 | 205 |
| 206 # Run tests on an actual device. (Better have one plugged in!) | 206 # Run tests on an actual device. (Better have one plugged in!) |
| 207 function bb_run_unit_tests { | 207 function bb_run_unit_tests { |
| 208 build/android/run_tests.py --xvfb --verbose | 208 build/android/run_tests.py --xvfb --verbose |
| 209 } | 209 } |
| 210 | 210 |
| 211 # Run experimental unittest bundles. | 211 # Run experimental unittest bundles. |
| 212 function bb_run_experimental_unit_tests { | 212 function bb_run_experimental_unit_tests { |
| 213 build/android/run_tests.py --xvfb --verbose -s cc_unittests | |
| 214 build/android/run_tests.py --xvfb --verbose -s \ | 213 build/android/run_tests.py --xvfb --verbose -s \ |
| 215 webkit_compositor_bindings_unittests | 214 webkit_compositor_bindings_unittests |
| 216 } | 215 } |
| 217 | 216 |
| 218 # Run a buildbot step and handle failure. | 217 # Run a buildbot step and handle failure. |
| 219 function bb_run_step { | 218 function bb_run_step { |
| 220 ( | 219 ( |
| 221 set +e | 220 set +e |
| 222 "$@" | 221 "$@" |
| 223 if [[ $? != 0 ]]; then | 222 if [[ $? != 0 ]]; then |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 ) | 321 ) |
| 323 } | 322 } |
| 324 | 323 |
| 325 # Retrieve a packed json property using python | 324 # Retrieve a packed json property using python |
| 326 function bb_get_json_prop { | 325 function bb_get_json_prop { |
| 327 local JSON="$1" | 326 local JSON="$1" |
| 328 local PROP="$2" | 327 local PROP="$2" |
| 329 | 328 |
| 330 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 329 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
| 331 } | 330 } |
| OLD | NEW |