blob: 75f5b5a96eb15e1c78c5ea435d12c87520eb70d0 [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
17// Build the android.test.runner library
18// =====================================
Sundong Ahne933ced2018-07-31 16:54:41 +090019java_sdk_library {
Colin Crossfc7ba9e2017-12-07 13:11:06 -080020 name: "android.test.runner",
21
22 srcs: ["src/**/*.java"],
23
Paul Duffin2d86c7a2018-02-16 13:11:05 +000024 errorprone: {
Paul Duffinbedfae92018-02-22 12:16:31 +000025 javacflags: ["-Xep:DepAnn:ERROR"],
Paul Duffin2d86c7a2018-02-16 13:11:05 +000026 },
27
Colin Crossfc7ba9e2017-12-07 13:11:06 -080028 libs: [
Paul Duffine95a8952017-11-16 15:53:09 +000029 "android.test.base",
Sundong Ahne933ced2018-07-31 16:54:41 +090030 "android.test.mock",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080031 ],
Sundong Ahne933ced2018-07-31 16:54:41 +090032 stub_only_libs: [
33 "android.test.base",
34 "android.test.mock",
35 ],
36 api_packages: [
37 "android.test",
38 "android.test.suitebuilder",
39 "junit.runner",
40 "junit.textui",
41 ],
42
Paul Duffincd35de32019-05-30 15:12:47 +010043 compile_dex: true,
Colin Crossfc7ba9e2017-12-07 13:11:06 -080044}
45
Paul Duffina88eb292018-01-12 16:08:35 +000046// Build the android.test.runner-minus-junit library
47// =================================================
Paul Duffin79d7ba22019-02-25 19:18:37 +000048// This is only intended for inclusion in the android.test.legacy static
Paul Duffin001d87c2018-02-14 10:36:16 +000049// library and must not be used elsewhere.
Paul Duffina88eb292018-01-12 16:08:35 +000050java_library {
51 name: "android.test.runner-minus-junit",
52
53 srcs: ["src/android/**/*.java"],
54
Jiyong Park029925a2018-02-22 14:16:35 +090055 sdk_version: "current",
Paul Duffina88eb292018-01-12 16:08:35 +000056 libs: [
Sundong Ahne933ced2018-07-31 16:54:41 +090057 "android.test.base_static",
58 "android.test.mock",
Paul Duffina88eb292018-01-12 16:08:35 +000059 "junit",
60 ],
61}
62
Colin Crossfc7ba9e2017-12-07 13:11:06 -080063// Build the repackaged.android.test.runner library
64// ================================================
65java_library_static {
66 name: "repackaged.android.test.runner",
67
Paul Duffinbedfae92018-02-22 12:16:31 +000068 srcs: ["src/**/*.java"],
69 exclude_srcs: [
70 "src/android/test/ActivityUnitTestCase.java",
71 "src/android/test/ApplicationTestCase.java",
72 "src/android/test/IsolatedContext.java",
73 "src/android/test/ProviderTestCase.java",
74 "src/android/test/ProviderTestCase2.java",
75 "src/android/test/RenamingDelegatingContext.java",
76 "src/android/test/ServiceTestCase.java",
77 ],
78
Jiyong Park029925a2018-02-22 14:16:35 +090079 sdk_version: "current",
Paul Duffinbedfae92018-02-22 12:16:31 +000080 libs: [
Sundong Ahne933ced2018-07-31 16:54:41 +090081 "android.test.base_static",
Paul Duffinbedfae92018-02-22 12:16:31 +000082 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080083
84 jarjar_rules: "jarjar-rules.txt",
Tobias Thiererd65595a2018-02-05 15:49:52 +000085 // Pin java_version until jarjar is certified to support later versions. http://b/72703434
86 java_version: "1.8",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080087}
Nan Zhang4a139d02018-04-26 14:55:41 -070088
Paul Duffincd35de32019-05-30 15:12:47 +010089// Make the current.txt available for use by the cts/tests/signature tests.
90// ========================================================================
91filegroup {
92 name: "android-test-runner-current.txt",
93 visibility: [
94 "//cts/tests/signature/api",
95 ],
96 srcs: [
97 "api/current.txt",
98 ],
99}