Chromium Code Reviews| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 --builder-name "$BUILDERNAME" \ | 270 --builder-name "$BUILDERNAME" \ |
| 271 --build-number "$BUILDNUMBER" \ | 271 --build-number "$BUILDNUMBER" \ |
| 272 --master-name "$MASTERNAME" \ | 272 --master-name "$MASTERNAME" \ |
| 273 --build-name "$BUILDERNAME" \ | 273 --build-name "$BUILDERNAME" \ |
| 274 --platform=chromium-android \ | 274 --platform=chromium-android \ |
| 275 --test-results-server "$RESULTSERVER" | 275 --test-results-server "$RESULTSERVER" |
| 276 } | 276 } |
| 277 | 277 |
| 278 # Run experimental unittest bundles. | 278 # Run experimental unittest bundles. |
| 279 function bb_run_experimental_unit_tests { | 279 function bb_run_experimental_unit_tests { |
| 280 _bb_android_run_tests -s sandbox_linux_unittests | 280 : |
|
Isaac (away)
2013/01/09 01:46:04
change this line to "echo" (no quotes)
jln (very slow on Chromium)
2013/01/09 02:34:41
Done. Markus convinced me to use ":" and he's tech
| |
| 281 # _bb_android_run_tests -s your_test_here | |
| 281 } | 282 } |
| 282 | 283 |
| 283 # Run findbugs. | 284 # Run findbugs. |
| 284 function bb_run_findbugs { | 285 function bb_run_findbugs { |
| 285 echo "@@@BUILD_STEP findbugs@@@" | 286 echo "@@@BUILD_STEP findbugs@@@" |
| 286 if [[ $BUILDTYPE = Release ]]; then | 287 if [[ $BUILDTYPE = Release ]]; then |
| 287 local BUILDFLAG="--release-build" | 288 local BUILDFLAG="--release-build" |
| 288 fi | 289 fi |
| 289 bb_run_step build/android/findbugs_diff.py $BUILDFLAG | 290 bb_run_step build/android/findbugs_diff.py $BUILDFLAG |
| 290 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 ) | 436 ) |
| 436 } | 437 } |
| 437 | 438 |
| 438 # Retrieve a packed json property using python | 439 # Retrieve a packed json property using python |
| 439 function bb_get_json_prop { | 440 function bb_get_json_prop { |
| 440 local JSON="$1" | 441 local JSON="$1" |
| 441 local PROP="$2" | 442 local PROP="$2" |
| 442 | 443 |
| 443 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 444 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
| 444 } | 445 } |
| OLD | NEW |