blob: a99e8441c8dc21c49e98dfdc1cd083ea9afa5fa5 [file] [log] [blame]
The Android Open Source Projectf8057102009-03-15 16:47:16 -07001#! /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.
19ANDROID_ROOT=out/host/linux-x86
20
21# CONFIGURATION
22# Set this variable to the root of unzipped CTS directory
23CTS_ROOT=
24
25# If ANDROID_ROOT does not exist, complain and exit
26if [ ! -d ${ANDROID_ROOT} ]; then
27 echo "Error: Please set ANDROID_ROOT in $0."
28 exit
29fi
30
31# If CTS_ROOT not set, assume it's under ANDROID_ROOT
32if [ -z "${CTS_ROOT}" ]; then
33 CTS_ROOT=${ANDROID_ROOT}/cts/android-cts_linux-x86
34fi
35
36if [ ! -d ${CTS_ROOT} ]; then
37 echo "Error: Can't locate CTS. Have you set the CTS_ROOT in $0?"
38 exit
39fi
40
41ANDROID_ROOT=${ANDROID_ROOT} bash ${CTS_ROOT}/tools/cts ${CTS_ROOT}/repository/host_config.xml