Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: build/android/buildbot_functions.sh

Issue 10310098: Don't make try_compile_test bot RED if native tests fail to compile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix patch for replaceme-debug.apk Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« base/base.gyp ('K') | « base/base.gyp ('k') | ipc/ipc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 echo "@@@BUILD_STEP Re-gyp for the native test runner@@@" 196 echo "@@@BUILD_STEP Re-gyp for the native test runner@@@"
197 GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp 197 GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp
198 198
199 echo "@@@BUILD_STEP Native test runner compile@@@" 199 echo "@@@BUILD_STEP Native test runner compile@@@"
200 bb_goma_make 200 bb_goma_make
201 201
202 # Make sure running the template prints an expected failure. 202 # Make sure running the template prints an expected failure.
203 echo "@@@BUILD_STEP Native test runner template test@@@" 203 echo "@@@BUILD_STEP Native test runner template test@@@"
204 tempfile=/tmp/tempfile-$$.txt 204 tempfile=/tmp/tempfile-$$.txt
205 build/android/run_tests.py --xvfb --verbose \ 205 build/android/run_tests.py --xvfb --verbose \
206 -s out/Release/replaceme_apk/ChromeNativeTests-debug.apk \ 206 -s out/Release/replaceme_apk/replaceme-debug.apk \
207 | sed 's/@@@STEP_FAILURE@@@//g' | tee $tempfile 207 | sed 's/@@@STEP_FAILURE@@@//g' | tee $tempfile
208 happy_failure=$(cat $tempfile | grep RUNNER_FAILED | wc -l) 208 happy_failure=$(cat $tempfile | grep RUNNER_FAILED | wc -l)
209 if [[ $happy_failure -eq 0 ]] ; then 209 if [[ $happy_failure -eq 0 ]] ; then
210 echo "@@@STEP_FAILURE@@@" 210 echo "@@@STEP_WARNINGS@@@"
211 fi 211 fi
212 } 212 }
213 213
214 # Experimental compile step; does not turn the tree red if it fails. 214 # Experimental compile step; does not turn the tree red if it fails.
215 function bb_compile_experimental { 215 function bb_compile_experimental {
216 # Linking DumpRenderTree appears to hang forever? 216 # Linking DumpRenderTree appears to hang forever?
217 EXPERIMENTAL_TARGETS="android_experimental" 217 EXPERIMENTAL_TARGETS="android_experimental"
218 for target in ${EXPERIMENTAL_TARGETS} ; do 218 for target in ${EXPERIMENTAL_TARGETS} ; do
219 echo "@@@BUILD_STEP Experimental Compile $target @@@" 219 echo "@@@BUILD_STEP Experimental Compile $target @@@"
220 set +e 220 set +e
221 bb_goma_make -k "${target}" 221 bb_goma_make -k "${target}"
222 if [ $? -ne 0 ] ; then 222 if [ $? -ne 0 ] ; then
223 echo "@@@STEP_WARNINGS@@@" 223 echo "@@@STEP_WARNINGS@@@"
224 fi 224 fi
225 set -e 225 set -e
226 done 226 done
227 } 227 }
228 228
229 # Run tests on an emulator. 229 # Run tests on an emulator.
230 function bb_run_tests_emulator { 230 function bb_run_tests_emulator {
231 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" 231 echo "@@@BUILD_STEP Run Tests on an Emulator@@@"
232 build/android/run_tests.py -e --xvfb --verbose 232 build/android/run_tests.py -e --xvfb --verbose
233 } 233 }
234 234
235 # Run tests on an actual device. (Better have one plugged in!) 235 # Run tests on an actual device. (Better have one plugged in!)
236 function bb_run_tests { 236 function bb_run_tests {
237 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" 237 echo "@@@BUILD_STEP Run Tests on actual hardware@@@"
238 build/android/run_tests.py --xvfb --verbose 238 build/android/run_tests.py --xvfb --verbose
239 } 239 }
OLDNEW
« base/base.gyp ('K') | « base/base.gyp ('k') | ipc/ipc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698