blob: 5172935e60744345df8160a328c5173b12f78e29 [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
Richard Uhlera7291342019-03-07 14:51:05 +000081android_test {
82 name: "RollbackTest",
83 manifest: "RollbackTest/AndroidManifest.xml",
84 srcs: ["RollbackTest/src/**/*.java"],
85 static_libs: ["androidx.test.rules"],
86 test_suites: ["general-tests"],
87 java_resources: [
88 ":RollbackTestAppAv1",
89 ":RollbackTestAppAv2",
Richard Uhler2124d4b2019-04-25 13:01:39 +010090 ":RollbackTestAppAv3",
Richard Uhlera7291342019-03-07 14:51:05 +000091 ":RollbackTestAppACrashingV2",
92 ":RollbackTestAppBv1",
93 ":RollbackTestAppBv2",
94 ":RollbackTestAppASplitV1",
95 ":RollbackTestAppASplitV2",
Richard Uhlera7291342019-03-07 14:51:05 +000096 ],
97 test_config: "RollbackTest.xml",
Zimuzoe77a3e12019-04-16 09:59:40 +010098 // TODO: sdk_version: "test_current" when Intent#resolveSystemservice is TestApi
Richard Uhlera7291342019-03-07 14:51:05 +000099}
100
101java_test_host {
102 name: "StagedRollbackTest",
103 srcs: ["StagedRollbackTest/src/**/*.java"],
104 libs: ["tradefed"],
105 test_suites: ["general-tests"],
106 test_config: "StagedRollbackTest.xml",
107}
shafik2340e8b2019-05-30 15:15:43 +0100108
109java_test_host {
110 name: "SecondaryUserRollbackTest",
111 srcs: ["SecondaryUserRollbackTest/src/**/*.java"],
112 libs: ["tradefed"],
113 test_suites: ["general-tests"],
114 test_config: "SecondaryUserRollbackTest.xml",
115}