blob: e556b0acb1a3d9c5b3e9c1298049df45f67d594b [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 {
32 name: "RollbackTestAppACrashingV2",
33 manifest: "TestApp/ACrashingV2.xml",
34 sdk_version: "current",
35 srcs: ["TestApp/src/**/*.java"],
36 resource_dirs: ["TestApp/res_v2"],
37}
38
39android_test_helper_app {
40 name: "RollbackTestAppBv1",
41 manifest: "TestApp/Bv1.xml",
42 sdk_version: "current",
43 srcs: ["TestApp/src/**/*.java"],
44 resource_dirs: ["TestApp/res_v1"],
45}
46
47android_test_helper_app {
48 name: "RollbackTestAppBv2",
49 manifest: "TestApp/Bv2.xml",
50 sdk_version: "current",
51 srcs: ["TestApp/src/**/*.java"],
52 resource_dirs: ["TestApp/res_v2"],
53}
54
55android_test_helper_app {
56 name: "RollbackTestAppASplitV1",
57 manifest: "TestApp/Av1.xml",
58 sdk_version: "current",
59 srcs: ["TestApp/src/**/*.java"],
60 resource_dirs: ["TestApp/res_v1"],
61 package_splits: ["anydpi"],
62}
63
64android_test_helper_app {
65 name: "RollbackTestAppASplitV2",
66 manifest: "TestApp/Av2.xml",
67 sdk_version: "current",
68 srcs: ["TestApp/src/**/*.java"],
69 resource_dirs: ["TestApp/res_v2"],
70 package_splits: ["anydpi"],
71}
72
73apex {
74 name: "com.android.tests.rollback.testapex.RollbackTestApexV1",
75 manifest: "TestApex/RollbackTestApexV1.json",
76 file_contexts: "apex.test",
77 prebuilts: ["RollbackTestApex.prebuilt.txt"],
78 key: "RollbackTestApex.key",
79 installable: false,
80}
81
82apex {
83 name: "com.android.tests.rollback.testapex.RollbackTestApexV2",
84 manifest: "TestApex/RollbackTestApexV2.json",
85 file_contexts: "apex.test",
86 prebuilts: ["RollbackTestApex.prebuilt.txt"],
87 key: "RollbackTestApex.key",
88 installable: false,
89}
90
Richard Uhler1924d6d2019-04-26 10:20:12 +010091apex {
92 name: "com.android.tests.rollback.testapex.RollbackTestApexV3",
93 manifest: "TestApex/RollbackTestApexV3.json",
94 file_contexts: "apex.test",
95 prebuilts: ["RollbackTestApex.prebuilt.txt"],
96 key: "RollbackTestApex.key",
97 installable: false,
98}
99
Richard Uhlera7291342019-03-07 14:51:05 +0000100apex_key {
101 name: "RollbackTestApex.key",
102 public_key: "TestApex/com.android.tests.rollback.testapex.avbpubkey",
103 private_key: "TestApex/com.android.tests.rollback.testapex.pem",
104 installable: false,
105}
106
107prebuilt_etc {
108 name: "RollbackTestApex.prebuilt.txt",
109 src: "TestApex/RollbackTestApex.prebuilt.txt",
110}
111
112android_test {
113 name: "RollbackTest",
114 manifest: "RollbackTest/AndroidManifest.xml",
115 srcs: ["RollbackTest/src/**/*.java"],
116 static_libs: ["androidx.test.rules"],
117 test_suites: ["general-tests"],
118 java_resources: [
119 ":RollbackTestAppAv1",
120 ":RollbackTestAppAv2",
121 ":RollbackTestAppACrashingV2",
122 ":RollbackTestAppBv1",
123 ":RollbackTestAppBv2",
124 ":RollbackTestAppASplitV1",
125 ":RollbackTestAppASplitV2",
126 ":com.android.tests.rollback.testapex.RollbackTestApexV1",
127 ":com.android.tests.rollback.testapex.RollbackTestApexV2",
Richard Uhler1924d6d2019-04-26 10:20:12 +0100128 ":com.android.tests.rollback.testapex.RollbackTestApexV3",
Richard Uhlera7291342019-03-07 14:51:05 +0000129 ],
130 test_config: "RollbackTest.xml",
Richard Uhler8a977452019-03-08 13:27:17 +0000131 sdk_version: "test_current",
Richard Uhlera7291342019-03-07 14:51:05 +0000132}
133
134java_test_host {
135 name: "StagedRollbackTest",
136 srcs: ["StagedRollbackTest/src/**/*.java"],
137 libs: ["tradefed"],
138 test_suites: ["general-tests"],
139 test_config: "StagedRollbackTest.xml",
140}