Chromium Code Reviews| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 # Talk to maruel for details. | 189 # Talk to maruel for details. |
| 190 echo "@@@BUILD_STEP compile@@@" | 190 echo "@@@BUILD_STEP compile@@@" |
| 191 bb_goma_make | 191 bb_goma_make |
| 192 } | 192 } |
| 193 | 193 |
| 194 # Re-gyp and compile with unit test bundles configured as shlibs for | 194 # Re-gyp and compile with unit test bundles configured as shlibs for |
| 195 # the native test runner. Experimental for now. Once the native test | 195 # the native test runner. Experimental for now. Once the native test |
| 196 # loader is on by default, this entire function becomes obsolete. | 196 # loader is on by default, this entire function becomes obsolete. |
| 197 function bb_compile_apk_tests { | 197 function bb_compile_apk_tests { |
| 198 echo "@@@BUILD_STEP Re-gyp for the native test runner@@@" | 198 echo "@@@BUILD_STEP Re-gyp for the native test runner@@@" |
| 199 # Setup goma again. Not doing this breaks the android_gyp step. | |
| 200 bb_setup_goma_internal | |
|
John Grabowski
2012/05/25 22:09:32
This only makes sense to me if somehow goma caches
| |
| 201 | |
| 199 GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp | 202 GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp |
| 200 | 203 |
| 201 echo "@@@BUILD_STEP Native test runner compile@@@" | 204 echo "@@@BUILD_STEP Native test runner compile@@@" |
| 202 bb_goma_make | 205 bb_goma_make |
| 203 } | 206 } |
| 204 | 207 |
| 205 # Experimental compile step; does not turn the tree red if it fails. | 208 # Experimental compile step; does not turn the tree red if it fails. |
| 206 function bb_compile_experimental { | 209 function bb_compile_experimental { |
| 207 # Linking DumpRenderTree appears to hang forever? | 210 # Linking DumpRenderTree appears to hang forever? |
| 208 EXPERIMENTAL_TARGETS="android_experimental" | 211 EXPERIMENTAL_TARGETS="android_experimental" |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 227 function bb_run_tests { | 230 function bb_run_tests { |
| 228 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" | 231 echo "@@@BUILD_STEP Run Tests on actual hardware@@@" |
| 229 build/android/run_tests.py --xvfb --verbose | 232 build/android/run_tests.py --xvfb --verbose |
| 230 } | 233 } |
| 231 | 234 |
| 232 # Run APK tests on an actual device. | 235 # Run APK tests on an actual device. |
| 233 function bb_run_apk_tests { | 236 function bb_run_apk_tests { |
| 234 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" | 237 echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@" |
| 235 build/android/run_tests.py --xvfb --verbose --apk=True | 238 build/android/run_tests.py --xvfb --verbose --apk=True |
| 236 } | 239 } |
| OLD | NEW |