| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 fi | 86 fi |
| 87 fi | 87 fi |
| 88 } | 88 } |
| 89 | 89 |
| 90 function bb_compile_setup { | 90 function bb_compile_setup { |
| 91 bb_setup_goma_internal | 91 bb_setup_goma_internal |
| 92 # Should be called only after envsetup is done. | 92 # Should be called only after envsetup is done. |
| 93 gclient runhooks | 93 gclient runhooks |
| 94 } | 94 } |
| 95 | 95 |
| 96 function bb_asan_tests_setup { |
| 97 # Download or build the ASan runtime library. |
| 98 ${SRC_ROOT}/tools/clang/scripts/update.sh |
| 99 } |
| 100 |
| 96 # Setup goma. Used internally to buildbot_functions.sh. | 101 # Setup goma. Used internally to buildbot_functions.sh. |
| 97 function bb_setup_goma_internal { | 102 function bb_setup_goma_internal { |
| 98 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key | 103 export GOMA_API_KEY_FILE=${GOMA_DIR}/goma.key |
| 99 export GOMA_COMPILER_PROXY_DAEMON_MODE=true | 104 export GOMA_COMPILER_PROXY_DAEMON_MODE=true |
| 100 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300 | 105 export GOMA_COMPILER_PROXY_RPC_TIMEOUT_SECS=300 |
| 101 | 106 |
| 102 echo "Killing old goma processes" | 107 echo "Killing old goma processes" |
| 103 ${GOMA_DIR}/goma_ctl.sh stop || true | 108 ${GOMA_DIR}/goma_ctl.sh stop || true |
| 104 killall -9 compiler_proxy || true | 109 killall -9 compiler_proxy || true |
| 105 | 110 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 ) | 293 ) |
| 289 } | 294 } |
| 290 | 295 |
| 291 # Retrieve a packed json property using python | 296 # Retrieve a packed json property using python |
| 292 function bb_get_json_prop { | 297 function bb_get_json_prop { |
| 293 local JSON="$1" | 298 local JSON="$1" |
| 294 local PROP="$2" | 299 local PROP="$2" |
| 295 | 300 |
| 296 python -c "import json; print json.loads('$JSON').get('$PROP', '')" | 301 python -c "import json; print json.loads('$JSON').get('$PROP', '')" |
| 297 } | 302 } |
| OLD | NEW |