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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 TARGET_CC="$TARGET_CC" \ | 173 TARGET_CC="$TARGET_CC" \ |
174 TARGET_CXX="$TARGET_CXX" \ | 174 TARGET_CXX="$TARGET_CXX" \ |
175 CC.host="$HOST_CC" \ | 175 CC.host="$HOST_CC" \ |
176 CXX.host="$HOST_CXX" \ | 176 CXX.host="$HOST_CXX" \ |
177 CC.target="$TARGET_CC" \ | 177 CC.target="$TARGET_CC" \ |
178 CXX.target="$TARGET_CXX" \ | 178 CXX.target="$TARGET_CXX" \ |
179 LINK.target="$TARGET_CXX" \ | 179 LINK.target="$TARGET_CXX" \ |
180 COMMON_JAVAC="$COMMON_JAVAC" \ | 180 COMMON_JAVAC="$COMMON_JAVAC" \ |
181 "$@" | 181 "$@" |
182 | 182 |
| 183 local make_exit_status=$? |
183 bb_stop_goma_internal | 184 bb_stop_goma_internal |
| 185 return $make_exit_status |
184 } | 186 } |
185 | 187 |
186 # Compile step | 188 # Compile step |
187 function bb_compile { | 189 function bb_compile { |
188 # This must be named 'compile', not 'Compile', for CQ interaction. | 190 # This must be named 'compile', not 'Compile', for CQ interaction. |
189 # Talk to maruel for details. | 191 # Talk to maruel for details. |
190 echo "@@@BUILD_STEP compile@@@" | 192 echo "@@@BUILD_STEP compile@@@" |
191 bb_goma_make | 193 bb_goma_make |
192 } | 194 } |
193 | 195 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 function bb_run_tests { | 232 function bb_run_tests { |
231 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 233 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
232 build/android/run_tests.py --xvfb --verbose | 234 build/android/run_tests.py --xvfb --verbose |
233 } | 235 } |
234 | 236 |
235 # Run APK tests on an actual device. | 237 # Run APK tests on an actual device. |
236 function bb_run_apk_tests { | 238 function bb_run_apk_tests { |
237 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" | 239 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" |
238 build/android/run_tests.py --xvfb --verbose --apk=True | 240 build/android/run_tests.py --xvfb --verbose --apk=True |
239 } | 241 } |
OLD | NEW |