blob: 1932871d86b9fea387f9e969a6cb1d262390af2f [file] [log] [blame]
Richard Uhlera7291342019-03-07 14:51:05 +00001// 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
15android_test_helper_app {
16 name: "RollbackTestAppAv1",
17 manifest: "TestApp/Av1.xml",
18 sdk_version: "current",
19 srcs: ["TestApp/src/**/*.java"],
20 resource_dirs: ["TestApp/res_v1"],
21}
22
23android_test_helper_app {
24 name: "RollbackTestAppAv2",
25 manifest: "TestApp/Av2.xml",
26 sdk_version: "current",
27 srcs: ["TestApp/src/**/*.java"],
28 resource_dirs: ["TestApp/res_v2"],
29}
30
31android_test_helper_app {
Richard Uhler2124d4b2019-04-25 13:01:39 +010032 name: "RollbackTestAppAv3",
33 manifest: "TestApp/Av3.xml",
34 sdk_version: "current",
35 srcs: ["TestApp/src/**/*.java"],
36 resource_dirs: ["TestApp/res_v3"],
37}
38
39android_test_helper_app {
Richard Uhlera7291342019-03-07 14:51:05 +000040 name: "RollbackTestAppACrashingV2",
41 manifest: "TestApp/ACrashingV2.xml",
42 sdk_version: "current",
43 srcs: ["TestApp/src/**/*.java"],
44 resource_dirs: ["TestApp/res_v2"],
45}
46
47android_test_helper_app {
48 name: "RollbackTestAppBv1",
49 manifest: "TestApp/Bv1.xml",
50 sdk_version: "current",
51 srcs: ["TestApp/src/**/*.java"],
52 resource_dirs: ["TestApp/res_v1"],
53}
54
55android_test_helper_app {
56 name: "RollbackTestAppBv2",
57 manifest: "TestApp/Bv2.xml",
58 sdk_version: "current",
59 srcs: ["TestApp/src/**/*.java"],
60 resource_dirs: ["TestApp/res_v2"],
61}
62
63android_test_helper_app {
64 name: "RollbackTestAppASplitV1",
65 manifest: "TestApp/Av1.xml",
66 sdk_version: "current",
67 srcs: ["TestApp/src/**/*.java"],
68 resource_dirs: ["TestApp/res_v1"],
69 package_splits: ["anydpi"],
70}
71
72android_test_helper_app {
73 name: "RollbackTestAppASplitV2",
74 manifest: "TestApp/Av2.xml",
75 sdk_version: "current",
76 srcs: ["TestApp/src/**/*.java"],
77 resource_dirs: ["TestApp/res_v2"],
78 package_splits: ["anydpi"],
79}
80
81apex {
82 name: "com.android.tests.rollback.testapex.RollbackTestApexV1",
83 manifest: "TestApex/RollbackTestApexV1.json",
84 file_contexts: "apex.test",
85 prebuilts: ["RollbackTestApex.prebuilt.txt"],
86 key: "RollbackTestApex.key",
87 installable: false,
88}
89
90apex {
91 name: "com.android.tests.rollback.testapex.RollbackTestApexV2",
92 manifest: "TestApex/RollbackTestApexV2.json",
93 file_contexts: "apex.test",
94 prebuilts: ["RollbackTestApex.prebuilt.txt"],
95 key: "RollbackTestApex.key",
96 installable: false,
97}
98
Richard Uhler1924d6d2019-04-26 10:20:12 +010099apex {
100 name: "com.android.tests.rollback.testapex.RollbackTestApexV3",
101 manifest: "TestApex/RollbackTestApexV3.json",
102 file_contexts: "apex.test",
103 prebuilts: ["RollbackTestApex.prebuilt.txt"],
104 key: "RollbackTestApex.key",
105 installable: false,
106}
107
Richard Uhlera7291342019-03-07 14:51:05 +0000108apex_key {
109 name: "RollbackTestApex.key",
110 public_key: "TestApex/com.android.tests.rollback.testapex.avbpubkey",
111 private_key: "TestApex/com.android.tests.rollback.testapex.pem",
112 installable: false,
113}
114
115prebuilt_etc {
116 name: "RollbackTestApex.prebuilt.txt",
117 src: "TestApex/RollbackTestApex.prebuilt.txt",
118}
119
120android_test {
121 name: "RollbackTest",
122 manifest: "RollbackTest/AndroidManifest.xml",
123 srcs: ["RollbackTest/src/**/*.java"],
124 static_libs: ["androidx.test.rules"],
125 test_suites: ["general-tests"],
126 java_resources: [
127 ":RollbackTestAppAv1",
128 ":RollbackTestAppAv2",
Richard Uhler2124d4b2019-04-25 13:01:39 +0100129 ":RollbackTestAppAv3",
Richard Uhlera7291342019-03-07 14:51:05 +0000130 ":RollbackTestAppACrashingV2",
131 ":RollbackTestAppBv1",
132 ":RollbackTestAppBv2",
133 ":RollbackTestAppASplitV1",
134 ":RollbackTestAppASplitV2",
135 ":com.android.tests.rollback.testapex.RollbackTestApexV1",
136 ":com.android.tests.rollback.testapex.RollbackTestApexV2",
Richard Uhler1924d6d2019-04-26 10:20:12 +0100137 ":com.android.tests.rollback.testapex.RollbackTestApexV3",
Richard Uhlera7291342019-03-07 14:51:05 +0000138 ],
139 test_config: "RollbackTest.xml",
Richard Uhler8a977452019-03-08 13:27:17 +0000140 sdk_version: "test_current",
Richard Uhlera7291342019-03-07 14:51:05 +0000141}
142
143java_test_host {
144 name: "StagedRollbackTest",
145 srcs: ["StagedRollbackTest/src/**/*.java"],
146 libs: ["tradefed"],
147 test_suites: ["general-tests"],
148 test_config: "StagedRollbackTest.xml",
149}