1# Copyright (C) 2015 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 17include $(CLEAR_VARS) 18 19LOCAL_PACKAGE_NAME := CtsLibcoreTestCases 20LOCAL_PRIVATE_PLATFORM_APIS := true 21 22LOCAL_STATIC_JAVA_LIBRARIES := \ 23 apache-harmony-tests \ 24 conscrypt-tests \ 25 core-tests \ 26 cts-core-test-runner-axt \ 27 mockito-target-minus-junit4 \ 28 time_zone_distro-tests \ 29 time_zone_distro_installer-tests 30 31# Don't include this package in any target 32LOCAL_MODULE_TAGS := tests 33 34# When built, explicitly put it in the data partition. 35LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) 36 37LOCAL_DEX_PREOPT := false 38LOCAL_JACK_FLAGS := --multi-dex native 39LOCAL_DX_FLAGS := --multi-dex 40 41# Exclude apache harmony tests from coverage instrumentation, since it breaks 42# the tests of reflection APIs by adding fields and methods to the test classes. 43LOCAL_JACK_COVERAGE_EXCLUDE_FILTER := org.apache.harmony.tests.* 44 45LOCAL_PROGUARD_ENABLED := disabled 46# Keep META-INF/ resources from LOCAL_STATIC_JAVA_LIBRARIES. http://b/62341677 47LOCAL_DONT_DELETE_JAR_META_INF := true 48LOCAL_JNI_SHARED_LIBRARIES := libjavacoretests libsqlite_jni libnativehelper_compat_libc++ libc++ 49 50# Include both the 32 and 64 bit versions of libjavacoretests, 51# where applicable. 52LOCAL_MULTILIB := both 53 54# This test requires cts-dalvik-host-test-runner to be built to run via Atest. 55LOCAL_HOST_REQUIRED_MODULES := cts-dalvik-host-test-runner 56 57# Tag this module as a cts test artifact 58LOCAL_COMPATIBILITY_SUITE := cts vts general-tests 59 60# NOTE: virtualdeviceknownfailures.txt is only used for simulated/cloud-based 61# continuous build configurations, so it's not referenced in AndroidTest.xml 62LOCAL_JAVA_RESOURCE_FILES := \ 63 libcore/expectations/knownfailures.txt \ 64 libcore/expectations/virtualdeviceknownfailures.txt 65 66include $(BUILD_CTS_SUPPORT_PACKAGE) 67