blob: 4ca412ad941398d593899c99aba8a5f56ba66321 [file] [log] [blame]
shafik8b55c4c2019-06-04 12:41:19 +01001// Copyright (C) 2019 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
15
16android_test_helper_app {
17 name: "TestAppAv1",
18 manifest: "testapp/Av1.xml",
19 sdk_version: "current",
20 srcs: ["testapp/src/**/*.java"],
21 resource_dirs: ["testapp/res_v1"],
Anton Hanssonc8914302020-01-14 13:17:42 +000022 apex_available: [ "com.android.apex.apkrollback.test_v1" ],
shafik8b55c4c2019-06-04 12:41:19 +010023}
24
25android_test_helper_app {
26 name: "TestAppAv2",
27 manifest: "testapp/Av2.xml",
28 sdk_version: "current",
29 srcs: ["testapp/src/**/*.java"],
30 resource_dirs: ["testapp/res_v2"],
Anton Hanssonc8914302020-01-14 13:17:42 +000031 apex_available: [ "com.android.apex.apkrollback.test_v2" ],
shafik8b55c4c2019-06-04 12:41:19 +010032}
33
shafik6d4ceeb2019-06-06 19:11:51 +010034android_test_helper_app {
35 name: "TestAppAv3",
36 manifest: "testapp/Av3.xml",
37 sdk_version: "current",
38 srcs: ["testapp/src/**/*.java"],
39 resource_dirs: ["testapp/res_v3"],
40}
41
42android_test_helper_app {
43 name: "TestAppACrashingV2",
44 manifest: "testapp/ACrashingV2.xml",
45 sdk_version: "current",
46 srcs: ["testapp/src/**/*.java"],
47 resource_dirs: ["testapp/res_v2"],
Mohammad Samiul Islame9842dd2020-01-16 13:51:22 +000048 apex_available: [ "com.android.apex.apkrollback.test_v2Crashing" ],
shafik6d4ceeb2019-06-06 19:11:51 +010049}
50
51android_test_helper_app {
52 name: "TestAppBv1",
53 manifest: "testapp/Bv1.xml",
54 sdk_version: "current",
55 srcs: ["testapp/src/**/*.java"],
56 resource_dirs: ["testapp/res_v1"],
57}
58
59android_test_helper_app {
60 name: "TestAppBv2",
61 manifest: "testapp/Bv2.xml",
62 sdk_version: "current",
63 srcs: ["testapp/src/**/*.java"],
64 resource_dirs: ["testapp/res_v2"],
65}
66
67android_test_helper_app {
Mohammad Samiul Islamc4e84de2019-10-09 14:30:55 +010068 name: "TestAppCv1",
69 manifest: "testapp/Cv1.xml",
70 sdk_version: "current",
71 srcs: ["testapp/src/**/*.java"],
72 resource_dirs: ["testapp/res_v1"],
73}
74
75android_test_helper_app {
shafik6d4ceeb2019-06-06 19:11:51 +010076 name: "TestAppASplitV1",
77 manifest: "testapp/Av1.xml",
78 sdk_version: "current",
79 srcs: ["testapp/src/**/*.java"],
80 resource_dirs: ["testapp/res_v1"],
81 package_splits: ["anydpi"],
82}
83
84android_test_helper_app {
85 name: "TestAppASplitV2",
86 manifest: "testapp/Av2.xml",
87 sdk_version: "current",
88 srcs: ["testapp/src/**/*.java"],
89 resource_dirs: ["testapp/res_v2"],
90 package_splits: ["anydpi"],
91}
92
shafik8b55c4c2019-06-04 12:41:19 +010093java_library {
Patrick Baumann4545f2c2020-08-28 17:08:09 +000094 name: "cts-install-lib-java",
Mohammad Samiul Islam53088842020-07-27 15:53:18 +010095 srcs: ["src/**/lib/*.java"],
Ivan Chiangbe5ca8c2020-05-19 14:57:57 +080096 static_libs: [
97 "androidx.test.rules",
98 "compatibility-device-util-axt",
99 "cts-shim-lib",
100 "truth-prebuilt"
101 ],
shafik8b55c4c2019-06-04 12:41:19 +0100102 sdk_version: "test_current",
103 java_resources: [
104 ":TestAppAv1",
105 ":TestAppAv2",
Mohammad Samiul Islamc4e84de2019-10-09 14:30:55 +0100106 ":TestAppAv3",
shafik6d4ceeb2019-06-06 19:11:51 +0100107 ":TestAppBv1",
108 ":TestAppBv2",
Mohammad Samiul Islamc4e84de2019-10-09 14:30:55 +0100109 ":TestAppCv1",
110 ":TestAppACrashingV2",
111 ":TestAppASplitV1",
112 ":TestAppASplitV2",
Jackal Guo339db702020-03-18 11:56:39 +0800113 ":StagedInstallTestApexV1",
114 ":StagedInstallTestApexV2",
115 ":StagedInstallTestApexV3",
shafik8b55c4c2019-06-04 12:41:19 +0100116 ],
117}
Patrick Baumann4545f2c2020-08-28 17:08:09 +0000118
119android_library {
120 name: "cts-install-lib",
121 manifest: "AndroidManifest.xml",
122 static_libs: [
123 "cts-install-lib-java",
124 ],
125}
Mohammad Samiul Islam53088842020-07-27 15:53:18 +0100126
127java_library_host {
128 name: "cts-install-lib-host",
129 srcs: ["src/**/host/InstallUtilsHost.java"],
Mohammad Samiul Islam5ea00c22020-07-27 18:51:19 +0100130 libs: ["tradefed", "cts-shim-host-lib",],
Mohammad Samiul Islam53088842020-07-27 15:53:18 +0100131}