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 build/android/run_tests.py --xvfb --verbose -s sandbox_linux_unittests | 280 _bb_android_run_tests -s sandbox_linux_unittests |
281 } | 281 } |
282 | 282 |
283 # Run findbugs. | 283 # Run findbugs. |
284 function bb_run_findbugs { | 284 function bb_run_findbugs { |
285 echo "@@@BUILD_STEP findbugs@@@" | 285 echo "@@@BUILD_STEP findbugs@@@" |
286 if [[ $BUILDTYPE = Release ]]; then | 286 if [[ $BUILDTYPE = Release ]]; then |
287 local BUILDFLAG="--release-build" | 287 local BUILDFLAG="--release-build" |
288 fi | 288 fi |
289 bb_run_step build/android/findbugs_diff.py $BUILDFLAG | 289 bb_run_step build/android/findbugs_diff.py $BUILDFLAG |
290 bb_run_step tools/android/findbugs_plugin/test/run_findbugs_plugin_tests.py \ | 290 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 ) | 435 ) |
436 } | 436 } |
437 | 437 |
438 # Retrieve a packed json property using python | 438 # Retrieve a packed json property using python |
439 function bb_get_json_prop { | 439 function bb_get_json_prop { |
440 local JSON="$1" | 440 local JSON="$1" |
441 local PROP="$2" | 441 local PROP="$2" |
442 | 442 |
443 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 443 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
444 } | 444 } |
OLD | NEW |