blob: bb2c4d97c87ae0edf16c66e98ebc49fe0ffeb4a4 [file] [log] [blame]
Colin Crossfc7ba9e2017-12-07 13:11:06 -08001//
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
Wei Li4cf550d2024-03-07 21:27:35 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Colin Crossfc7ba9e2017-12-07 13:11:06 -080021// Build the android.test.runner library
22// =====================================
Sundong Ahne933ced2018-07-31 16:54:41 +090023java_sdk_library {
Colin Crossfc7ba9e2017-12-07 13:11:06 -080024 name: "android.test.runner",
25
Wei Li4cf550d2024-03-07 21:27:35 -080026 srcs: [
27 ":android-test-runner-sources",
28 ":frameworks-base-test-junit-runner",
29 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080030
Paul Duffin2d86c7a2018-02-16 13:11:05 +000031 errorprone: {
Paul Duffinbedfae92018-02-22 12:16:31 +000032 javacflags: ["-Xep:DepAnn:ERROR"],
Paul Duffin2d86c7a2018-02-16 13:11:05 +000033 },
34
Jihoon Kange07d73c2024-08-30 00:29:12 +000035 impl_only_libs: [
36 "android.test.base.impl",
37 "android.test.mock.impl",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080038 ],
Jihoon Kange07d73c2024-08-30 00:29:12 +000039 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 },
Sundong Ahne933ced2018-07-31 16:54:41 +090057 api_packages: [
58 "android.test",
59 "android.test.suitebuilder",
60 "junit.runner",
61 "junit.textui",
62 ],
63
Paul Duffincd35de32019-05-30 15:12:47 +010064 compile_dex: true,
Jiyong Park912db8d2020-05-29 10:51:18 +090065 default_to_stubs: true,
Colin Cross5959ec02021-05-10 10:38:53 -070066 dist_group: "android",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080067}
68
Paul Duffina88eb292018-01-12 16:08:35 +000069// Build the android.test.runner-minus-junit library
70// =================================================
Paul Duffin79d7ba22019-02-25 19:18:37 +000071// This is only intended for inclusion in the android.test.legacy static
Paul Duffin001d87c2018-02-14 10:36:16 +000072// library and must not be used elsewhere.
Paul Duffina88eb292018-01-12 16:08:35 +000073java_library {
74 name: "android.test.runner-minus-junit",
75
76 srcs: ["src/android/**/*.java"],
77
Jiyong Park029925a2018-02-22 14:16:35 +090078 sdk_version: "current",
Paul Duffina88eb292018-01-12 16:08:35 +000079 libs: [
Sundong Ahne933ced2018-07-31 16:54:41 +090080 "android.test.base_static",
Jihoon Kange07d73c2024-08-30 00:29:12 +000081 "android.test.mock.stubs",
Paul Duffina88eb292018-01-12 16:08:35 +000082 "junit",
83 ],
84}
85
Nelson Lia23f2af2024-01-17 06:57:58 +000086// Make the current.txt available for use by the cts/tests/signature and /vendor tests.
Paul Duffincd35de32019-05-30 15:12:47 +010087// ========================================================================
88filegroup {
89 name: "android-test-runner-current.txt",
90 visibility: [
91 "//cts/tests/signature/api",
Nelson Lia23f2af2024-01-17 06:57:58 +000092 "//vendor:__subpackages__",
Paul Duffincd35de32019-05-30 15:12:47 +010093 ],
94 srcs: [
95 "api/current.txt",
96 ],
97}
Anton Hansson2e25fdc2021-05-10 12:40:05 +010098
99filegroup {
100 name: "android-test-runner-sources",
101 srcs: ["src/**/*.java"],
102 path: "src",
103}