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 libs: [ 36 "android.test.base", 37 "android.test.mock", 38 ], 39 stub_only_libs: [ 40 "android.test.base", 41 "android.test.mock", 42 ], 43 api_packages: [ 44 "android.test", 45 "android.test.suitebuilder", 46 "junit.runner", 47 "junit.textui", 48 ], 49 50 compile_dex: true, 51 default_to_stubs: true, 52 dist_group: "android", 53} 54 55// Build the android.test.runner-minus-junit library 56// ================================================= 57// This is only intended for inclusion in the android.test.legacy static 58// library and must not be used elsewhere. 59java_library { 60 name: "android.test.runner-minus-junit", 61 62 srcs: ["src/android/**/*.java"], 63 64 sdk_version: "current", 65 libs: [ 66 "android.test.base_static", 67 "android.test.mock", 68 "junit", 69 ], 70} 71 72// Make the current.txt available for use by the cts/tests/signature and /vendor tests. 73// ======================================================================== 74filegroup { 75 name: "android-test-runner-current.txt", 76 visibility: [ 77 "//cts/tests/signature/api", 78 "//vendor:__subpackages__", 79 ], 80 srcs: [ 81 "api/current.txt", 82 ], 83} 84 85filegroup { 86 name: "android-test-runner-sources", 87 srcs: ["src/**/*.java"], 88 path: "src", 89} 90