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