| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 make -j${JOBS} | 96 make -j${JOBS} |
| 97 } | 97 } |
| 98 | 98 |
| 99 # Experimental compile step; does not turn the tree red if it fails. | 99 # Experimental compile step; does not turn the tree red if it fails. |
| 100 function bb_compile_experimental { | 100 function bb_compile_experimental { |
| 101 # Linking DumpRenderTree appears to hang forever? | 101 # Linking DumpRenderTree appears to hang forever? |
| 102 EXPERIMENTAL_TARGETS="android_experimental" | 102 EXPERIMENTAL_TARGETS="android_experimental" |
| 103 for target in ${EXPERIMENTAL_TARGETS} ; do | 103 for target in ${EXPERIMENTAL_TARGETS} ; do |
| 104 echo "@@@BUILD_STEP Experimental Compile $target @@@" | 104 echo "@@@BUILD_STEP Experimental Compile $target @@@" |
| 105 set +e | 105 set +e |
| 106 make -j4 "${target}" | 106 make -k -j4 "${target}" |
| 107 if [ $? -ne 0 ] ; then | 107 if [ $? -ne 0 ] ; then |
| 108 echo "@@@STEP_WARNINGS@@@" | 108 echo "@@@STEP_WARNINGS@@@" |
| 109 fi | 109 fi |
| 110 set -e | 110 set -e |
| 111 done | 111 done |
| 112 } | 112 } |
| 113 | 113 |
| 114 # Run tests on an emulator. | 114 # Run tests on an emulator. |
| 115 function bb_run_tests_emulator { | 115 function bb_run_tests_emulator { |
| 116 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" | 116 echo "@@@BUILD_STEP Run Tests on an Emulator@@@" |
| 117 build/android/run_tests.py -e --xvfb --verbose | 117 build/android/run_tests.py -e --xvfb --verbose |
| 118 } | 118 } |
| 119 | 119 |
| 120 # Run tests on an actual device. (Better have one plugged in!) | 120 # Run tests on an actual device. (Better have one plugged in!) |
| 121 function bb_run_tests { | 121 function bb_run_tests { |
| 122 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 122 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 123 build/android/run_tests.py --xvfb --verbose | 123 build/android/run_tests.py --xvfb --verbose |
| 124 } | 124 } |
| OLD | NEW |