blob: 7dfcb61d0fdef4bb9796ff72762b34088264eabb [file] [log] [blame]
Igor Murashkinab5dafc2016-06-16 16:36:37 -07001# 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
Anton Hansson1cb8cb52018-02-22 14:33:32 +000020LOCAL_PRIVATE_PLATFORM_APIS := true
Igor Murashkinab5dafc2016-06-16 16:36:37 -070021
22LOCAL_STATIC_JAVA_LIBRARIES := \
23 apache-harmony-tests \
Igor Murashkinab5dafc2016-06-16 16:36:37 -070024 conscrypt-tests \
25 core-tests \
26 cts-core-test-runner \
Guang Zhua21da062016-08-15 14:48:42 -070027 mockito-target-minus-junit4 \
Neil Fuller363a5e02017-06-13 15:09:00 +010028 time_zone_distro-tests \
Neil Fuller2eb78102017-06-29 11:58:51 +010029 time_zone_distro_installer-tests
Igor Murashkinab5dafc2016-06-16 16:36:37 -070030
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
Colin Crossd9e4bdc2017-01-30 17:03:12 -080039LOCAL_DX_FLAGS := --multi-dex
Igor Murashkinab5dafc2016-06-16 16:36:37 -070040
41LOCAL_PROGUARD_ENABLED := disabled
Tobias Thiererff65e072017-06-06 21:01:01 +010042# Keep META-INF/ resources from LOCAL_STATIC_JAVA_LIBRARIES. http://b/62341677
43LOCAL_DONT_DELETE_JAR_META_INF := true
Igor Murashkinab5dafc2016-06-16 16:36:37 -070044LOCAL_JNI_SHARED_LIBRARIES := libjavacoretests libsqlite_jni libnativehelper_compat_libc++ libc++
45
46# Include both the 32 and 64 bit versions of libjavacoretests,
47# where applicable.
48LOCAL_MULTILIB := both
49
50# Tag this module as a cts test artifact
nickrosef1efbc62017-07-05 12:38:06 -070051LOCAL_COMPATIBILITY_SUITE := cts vts general-tests
Igor Murashkinab5dafc2016-06-16 16:36:37 -070052
Adam Vartanian31d012f2017-05-23 10:43:23 +010053# NOTE: virtualdeviceknownfailures.txt is only used for simulated/cloud-based
54# continuous build configurations, so it's not referenced in AndroidTest.xml
Igor Murashkinab5dafc2016-06-16 16:36:37 -070055LOCAL_JAVA_RESOURCE_FILES := \
Igor Murashkinab5dafc2016-06-16 16:36:37 -070056 libcore/expectations/knownfailures.txt \
Guang Zhu4ddabe22016-09-22 18:37:57 -070057 libcore/expectations/virtualdeviceknownfailures.txt
Igor Murashkinab5dafc2016-06-16 16:36:37 -070058
Igor Murashkinab5dafc2016-06-16 16:36:37 -070059include $(BUILD_CTS_SUPPORT_PACKAGE)