The Android Open Source Project | f805710 | 2009-03-15 16:47:16 -0700 | [diff] [blame^] | 1 | #! /bin/bash |
| 2 | |
| 3 | # Copyright (C) 2009 The Android Open Source Project |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # CONFIGURATION |
| 18 | # Set this variable to the out/host/<platform> directory of your Android tree. |
| 19 | ANDROID_ROOT=out/host/linux-x86 |
| 20 | |
| 21 | # CONFIGURATION |
| 22 | # Set this variable to the root of unzipped CTS directory |
| 23 | CTS_ROOT= |
| 24 | |
| 25 | # If ANDROID_ROOT does not exist, complain and exit |
| 26 | if [ ! -d ${ANDROID_ROOT} ]; then |
| 27 | echo "Error: Please set ANDROID_ROOT in $0." |
| 28 | exit |
| 29 | fi |
| 30 | |
| 31 | # If CTS_ROOT not set, assume it's under ANDROID_ROOT |
| 32 | if [ -z "${CTS_ROOT}" ]; then |
| 33 | CTS_ROOT=${ANDROID_ROOT}/cts/android-cts_linux-x86 |
| 34 | fi |
| 35 | |
| 36 | if [ ! -d ${CTS_ROOT} ]; then |
| 37 | echo "Error: Can't locate CTS. Have you set the CTS_ROOT in $0?" |
| 38 | exit |
| 39 | fi |
| 40 | |
| 41 | ANDROID_ROOT=${ANDROID_ROOT} bash ${CTS_ROOT}/tools/cts ${CTS_ROOT}/repository/host_config.xml |