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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 --builder-name "$BUILDERNAME" \ | 271 --builder-name "$BUILDERNAME" \ |
272 --build-number "$BUILDNUMBER" \ | 272 --build-number "$BUILDNUMBER" \ |
273 --master-name "$MASTERNAME" \ | 273 --master-name "$MASTERNAME" \ |
274 --build-name "$BUILDERNAME" \ | 274 --build-name "$BUILDERNAME" \ |
275 --platform=chromium-android \ | 275 --platform=chromium-android \ |
276 --test-results-server "$RESULTSERVER" | 276 --test-results-server "$RESULTSERVER" |
277 } | 277 } |
278 | 278 |
279 # Run experimental unittest bundles. | 279 # Run experimental unittest bundles. |
280 function bb_run_experimental_unit_tests { | 280 function bb_run_experimental_unit_tests { |
281 echo "@@@BUILD_STEP run experimental unit tests@@@" | 281 echo |
282 _bb_android_run_tests -s android_webview_unittests | |
283 } | 282 } |
284 | 283 |
285 # Run findbugs. | 284 # Run findbugs. |
286 function bb_run_findbugs { | 285 function bb_run_findbugs { |
287 echo "@@@BUILD_STEP findbugs@@@" | 286 echo "@@@BUILD_STEP findbugs@@@" |
288 if [[ $BUILDTYPE = Release ]]; then | 287 if [[ $BUILDTYPE = Release ]]; then |
289 local BUILDFLAG="--release-build" | 288 local BUILDFLAG="--release-build" |
290 fi | 289 fi |
291 bb_run_step build/android/findbugs_diff.py $BUILDFLAG | 290 bb_run_step build/android/findbugs_diff.py $BUILDFLAG |
292 bb_run_step tools/android/findbugs_plugin/test/run_findbugs_plugin_tests.py \ | 291 bb_run_step tools/android/findbugs_plugin/test/run_findbugs_plugin_tests.py \ |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 ) | 430 ) |
432 } | 431 } |
433 | 432 |
434 # Retrieve a packed json property using python | 433 # Retrieve a packed json property using python |
435 function bb_get_json_prop { | 434 function bb_get_json_prop { |
436 local JSON="$1" | 435 local JSON="$1" |
437 local PROP="$2" | 436 local PROP="$2" |
438 | 437 |
439 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 438 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
440 } | 439 } |
OLD | NEW |