| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 --builder-name "$BUILDERNAME" \ | 244 --builder-name "$BUILDERNAME" \ |
| 245 --build-number "$BUILDNUMBER" \ | 245 --build-number "$BUILDNUMBER" \ |
| 246 --master-name "$MASTERNAME" \ | 246 --master-name "$MASTERNAME" \ |
| 247 --build-name "$BUILDERNAME" \ | 247 --build-name "$BUILDERNAME" \ |
| 248 --platform=chromium-android \ | 248 --platform=chromium-android \ |
| 249 --test-results-server "$RESULTSERVER" | 249 --test-results-server "$RESULTSERVER" |
| 250 } | 250 } |
| 251 | 251 |
| 252 # Run experimental unittest bundles. | 252 # Run experimental unittest bundles. |
| 253 function bb_run_experimental_unit_tests { | 253 function bb_run_experimental_unit_tests { |
| 254 # This build step was added because bash does not allow empty functions. | 254 build/android/run_tests.py --xvfb --verbose -s android_webview_unittests |
| 255 # run_tests.py echoes a build step, comment/remove this build step when you | |
| 256 # add tests to the experimental step. | |
| 257 echo '@@@BUILD_STEP experimental_unit_tests@@@' | |
| 258 } | 255 } |
| 259 | 256 |
| 260 # Run findbugs. | 257 # Run findbugs. |
| 261 function bb_run_findbugs_diff { | 258 function bb_run_findbugs_diff { |
| 262 echo "@@@BUILD_STEP findbugs_diff@@@" | 259 echo "@@@BUILD_STEP findbugs_diff@@@" |
| 263 build/android/findbugs_diff.py | 260 build/android/findbugs_diff.py |
| 264 } | 261 } |
| 265 | 262 |
| 266 # Run findbugs plugin tests. | 263 # Run findbugs plugin tests. |
| 267 function bb_run_findbugs_plugin_tests { | 264 function bb_run_findbugs_plugin_tests { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 ) | 373 ) |
| 377 } | 374 } |
| 378 | 375 |
| 379 # Retrieve a packed json property using python | 376 # Retrieve a packed json property using python |
| 380 function bb_get_json_prop { | 377 function bb_get_json_prop { |
| 381 local JSON="$1" | 378 local JSON="$1" |
| 382 local PROP="$2" | 379 local PROP="$2" |
| 383 | 380 |
| 384 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 381 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
| 385 } | 382 } |
| OLD | NEW |