OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # "compile and run tests" script for the android build of chromium. | 6 # "compile and run tests" script for the android build of chromium. |
7 # Intended for use by buildbot. | 7 # Intended for use by buildbot. |
8 # At this time, we only have one bot which is both a builder and | 8 # At this time, we only have one bot which is both a builder and |
9 # tester. Script assumes it runs in the "build" directory. | 9 # tester. Script assumes it runs in the "build" directory. |
10 # | 10 # |
(...skipping 18 matching lines...) Expand all Loading... |
29 echo "Disabling experimental builds and tests since we are a trybot." | 29 echo "Disabling experimental builds and tests since we are a trybot." |
30 BUILD_EXPERIMENTAL_TARGETS=0 | 30 BUILD_EXPERIMENTAL_TARGETS=0 |
31 RUN_TESTS=0 | 31 RUN_TESTS=0 |
32 fi | 32 fi |
33 | 33 |
34 echo "@@@BUILD_STEP cd into source root@@@" | 34 echo "@@@BUILD_STEP cd into source root@@@" |
35 SRC_ROOT=$(cd "$(dirname $0)/../.."; pwd) | 35 SRC_ROOT=$(cd "$(dirname $0)/../.."; pwd) |
36 cd $SRC_ROOT | 36 cd $SRC_ROOT |
37 | 37 |
38 echo "@@@BUILD_STEP Basic setup@@@" | 38 echo "@@@BUILD_STEP Basic setup@@@" |
39 export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux_x86 | 39 export ANDROID_SDK_ROOT=/usr/local/google/android-sdk-linux |
40 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7 | 40 export ANDROID_NDK_ROOT=/usr/local/google/android-ndk-r7 |
41 for mandatory_directory in "${ANDROID_SDK_ROOT}" "${ANDROID_NDK_ROOT}" ; do | 41 for mandatory_directory in "${ANDROID_SDK_ROOT}" "${ANDROID_NDK_ROOT}" ; do |
42 if [[ ! -d "${mandatory_directory}" ]]; then | 42 if [[ ! -d "${mandatory_directory}" ]]; then |
43 echo "Directory ${mandatory_directory} does not exist." | 43 echo "Directory ${mandatory_directory} does not exist." |
44 echo "Build cannot continue." | 44 echo "Build cannot continue." |
45 exit 1 | 45 exit 1 |
46 fi | 46 fi |
47 done | 47 done |
48 | 48 |
49 if [ ! "$BUILDBOT_CLOBBER" = "" ]; then | 49 if [ ! "$BUILDBOT_CLOBBER" = "" ]; then |
(...skipping 30 matching lines...) Expand all Loading... |
80 set -e | 80 set -e |
81 done | 81 done |
82 fi | 82 fi |
83 | 83 |
84 if [ "${RUN_TESTS}" = 1 ] ; then | 84 if [ "${RUN_TESTS}" = 1 ] ; then |
85 echo "@@@BUILD_STEP Run Tests@@@" | 85 echo "@@@BUILD_STEP Run Tests@@@" |
86 build/android/run_tests.py -e --xvfb --verbose | 86 build/android/run_tests.py -e --xvfb --verbose |
87 fi | 87 fi |
88 | 88 |
89 exit 0 | 89 exit 0 |
OLD | NEW |