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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 function bb_print_logcat { | 201 function bb_print_logcat { |
202 echo "@@@BUILD_STEP Logcat dump@@@" | 202 echo "@@@BUILD_STEP Logcat dump@@@" |
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. |
| 212 function bb_run_experimental_unit_tests { |
| 213 build/android/run_tests.py --xvfb --verbose -s cc_unittests |
| 214 } |
| 215 |
211 # Run a buildbot step and handle failure. | 216 # Run a buildbot step and handle failure. |
212 function bb_run_step { | 217 function bb_run_step { |
213 ( | 218 ( |
214 set +e | 219 set +e |
215 "$@" | 220 "$@" |
216 if [[ $? != 0 ]]; then | 221 if [[ $? != 0 ]]; then |
217 echo "@@@STEP_FAILURE@@@" | 222 echo "@@@STEP_FAILURE@@@" |
218 fi | 223 fi |
219 ) | 224 ) |
220 } | 225 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 ) | 320 ) |
316 } | 321 } |
317 | 322 |
318 # Retrieve a packed json property using python | 323 # Retrieve a packed json property using python |
319 function bb_get_json_prop { | 324 function bb_get_json_prop { |
320 local JSON="$1" | 325 local JSON="$1" |
321 local PROP="$2" | 326 local PROP="$2" |
322 | 327 |
323 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 328 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
324 } | 329 } |
OLD | NEW |