1# Copyright (C) 2009 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH:= $(call my-dir) 16 17ifeq ($(BUILD_CTSCORE_PACKAGE),) 18 $(error BUILD_CTSCORE_PACKAGE must be defined) 19endif 20 21include $(CLEAR_VARS) 22 23# include this package in the tests target for continuous testing 24LOCAL_MODULE_TAGS := tests 25 26LOCAL_PACKAGE_NAME := android.core.tests.runner 27 28LOCAL_STATIC_JAVA_LIBRARIES := cts-test-runner 29 30include $(BUILD_CTSCORE_PACKAGE) 31 32#========================================================== 33# Build the core runner. 34#========================================================== 35 36# Build library 37include $(CLEAR_VARS) 38 39LOCAL_MODULE_TAGS := optional 40LOCAL_SRC_FILES := $(call all-java-files-under,src) 41LOCAL_MODULE := cts-core-test-runner 42LOCAL_STATIC_JAVA_LIBRARIES := \ 43 compatibility-device-util \ 44 android-support-test \ 45 vogarexpect \ 46 testng 47 48LOCAL_JAVA_LIBRARIES := android.test.runner 49 50include $(BUILD_STATIC_JAVA_LIBRARY) 51 52#========================================================== 53# Build the run listener 54#========================================================== 55 56# Build library 57include $(CLEAR_VARS) 58 59LOCAL_MODULE_TAGS := optional 60LOCAL_SRC_FILES := $(call all-java-files-under,src/com/android/cts/runner) 61LOCAL_MODULE := cts-test-runner 62LOCAL_STATIC_JAVA_LIBRARIES := android-support-test 63LOCAL_SDK_VERSION := current 64 65include $(BUILD_STATIC_JAVA_LIBRARY) 66