1// 2// Copyright (C) 2008 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21// Build the android.test.runner library 22// ===================================== 23java_sdk_library { 24 name: "android.test.runner", 25 26 srcs: [ 27 ":android-test-runner-sources", 28 ":frameworks-base-test-junit-runner", 29 ], 30 31 errorprone: { 32 javacflags: ["-Xep:DepAnn:ERROR"], 33 }, 34 35 impl_only_libs: [ 36 "android.test.base.impl", 37 "android.test.mock.impl", 38 ], 39 public: { 40 libs: [ 41 "android.test.base.stubs", 42 "android.test.mock.stubs", 43 ], 44 }, 45 system: { 46 libs: [ 47 "android.test.base.stubs.system", 48 "android.test.mock.stubs.system", 49 ], 50 }, 51 test: { 52 libs: [ 53 "android.test.base.stubs.test", 54 "android.test.mock.stubs.test", 55 ], 56 }, 57 api_packages: [ 58 "android.test", 59 "android.test.suitebuilder", 60 "junit.runner", 61 "junit.textui", 62 ], 63 64 compile_dex: true, 65 default_to_stubs: true, 66 dist_group: "android", 67} 68 69// Build the android.test.runner-minus-junit library 70// ================================================= 71// This is only intended for inclusion in the android.test.legacy static 72// library and must not be used elsewhere. 73java_library { 74 name: "android.test.runner-minus-junit", 75 76 srcs: ["src/android/**/*.java"], 77 78 sdk_version: "current", 79 libs: [ 80 "android.test.base_static", 81 "android.test.mock.stubs", 82 "junit", 83 ], 84} 85 86// Make the current.txt available for use by the cts/tests/signature and /vendor tests. 87// ======================================================================== 88filegroup { 89 name: "android-test-runner-current.txt", 90 visibility: [ 91 "//cts/tests/signature/api", 92 "//vendor:__subpackages__", 93 ], 94 srcs: [ 95 "api/current.txt", 96 ], 97} 98 99filegroup { 100 name: "android-test-runner-sources", 101 srcs: ["src/**/*.java"], 102 path: "src", 103} 104