blob: 8be721a04305220ca06d5b4e44aea386eec3679a [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
91apex_key {
92 name: "RollbackTestApex.key",
93 public_key: "TestApex/com.android.tests.rollback.testapex.avbpubkey",
94 private_key: "TestApex/com.android.tests.rollback.testapex.pem",
95 installable: false,
96}
97
98prebuilt_etc {
99 name: "RollbackTestApex.prebuilt.txt",
100 src: "TestApex/RollbackTestApex.prebuilt.txt",
101}
102
103android_test {
104 name: "RollbackTest",
105 manifest: "RollbackTest/AndroidManifest.xml",
106 srcs: ["RollbackTest/src/**/*.java"],
107 static_libs: ["androidx.test.rules"],
108 test_suites: ["general-tests"],
109 java_resources: [
110 ":RollbackTestAppAv1",
111 ":RollbackTestAppAv2",
112 ":RollbackTestAppACrashingV2",
113 ":RollbackTestAppBv1",
114 ":RollbackTestAppBv2",
115 ":RollbackTestAppASplitV1",
116 ":RollbackTestAppASplitV2",
117 ":com.android.tests.rollback.testapex.RollbackTestApexV1",
118 ":com.android.tests.rollback.testapex.RollbackTestApexV2",
119 ],
120 test_config: "RollbackTest.xml",
121 sdk_version: "system_current",
122}
123
124java_test_host {
125 name: "StagedRollbackTest",
126 srcs: ["StagedRollbackTest/src/**/*.java"],
127 libs: ["tradefed"],
128 test_suites: ["general-tests"],
129 test_config: "StagedRollbackTest.xml",
130}