shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 1 | // 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 | |
| 16 | android_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 Hansson | c891430 | 2020-01-14 13:17:42 +0000 | [diff] [blame] | 22 | apex_available: [ "com.android.apex.apkrollback.test_v1" ], |
shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | android_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 Hansson | c891430 | 2020-01-14 13:17:42 +0000 | [diff] [blame] | 31 | apex_available: [ "com.android.apex.apkrollback.test_v2" ], |
shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 32 | } |
| 33 | |
shafik | 6d4ceeb | 2019-06-06 19:11:51 +0100 | [diff] [blame] | 34 | android_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 | |
| 42 | android_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 Islam | e9842dd | 2020-01-16 13:51:22 +0000 | [diff] [blame] | 48 | apex_available: [ "com.android.apex.apkrollback.test_v2Crashing" ], |
shafik | 6d4ceeb | 2019-06-06 19:11:51 +0100 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | android_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 | |
| 59 | android_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 | |
| 67 | android_test_helper_app { |
Mohammad Samiul Islam | c4e84de | 2019-10-09 14:30:55 +0100 | [diff] [blame] | 68 | name: "TestAppCv1", |
| 69 | manifest: "testapp/Cv1.xml", |
| 70 | sdk_version: "current", |
| 71 | srcs: ["testapp/src/**/*.java"], |
| 72 | resource_dirs: ["testapp/res_v1"], |
| 73 | } |
| 74 | |
| 75 | android_test_helper_app { |
shafik | 6d4ceeb | 2019-06-06 19:11:51 +0100 | [diff] [blame] | 76 | 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 | |
| 84 | android_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 | |
shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 93 | java_library { |
Patrick Baumann | 4545f2c | 2020-08-28 17:08:09 +0000 | [diff] [blame] | 94 | name: "cts-install-lib-java", |
Mohammad Samiul Islam | 5308884 | 2020-07-27 15:53:18 +0100 | [diff] [blame] | 95 | srcs: ["src/**/lib/*.java"], |
Ivan Chiang | be5ca8c | 2020-05-19 14:57:57 +0800 | [diff] [blame] | 96 | static_libs: [ |
| 97 | "androidx.test.rules", |
| 98 | "compatibility-device-util-axt", |
| 99 | "cts-shim-lib", |
| 100 | "truth-prebuilt" |
| 101 | ], |
shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 102 | sdk_version: "test_current", |
| 103 | java_resources: [ |
| 104 | ":TestAppAv1", |
| 105 | ":TestAppAv2", |
Mohammad Samiul Islam | c4e84de | 2019-10-09 14:30:55 +0100 | [diff] [blame] | 106 | ":TestAppAv3", |
shafik | 6d4ceeb | 2019-06-06 19:11:51 +0100 | [diff] [blame] | 107 | ":TestAppBv1", |
| 108 | ":TestAppBv2", |
Mohammad Samiul Islam | c4e84de | 2019-10-09 14:30:55 +0100 | [diff] [blame] | 109 | ":TestAppCv1", |
| 110 | ":TestAppACrashingV2", |
| 111 | ":TestAppASplitV1", |
| 112 | ":TestAppASplitV2", |
Jackal Guo | 339db70 | 2020-03-18 11:56:39 +0800 | [diff] [blame] | 113 | ":StagedInstallTestApexV1", |
| 114 | ":StagedInstallTestApexV2", |
| 115 | ":StagedInstallTestApexV3", |
shafik | 8b55c4c | 2019-06-04 12:41:19 +0100 | [diff] [blame] | 116 | ], |
| 117 | } |
Patrick Baumann | 4545f2c | 2020-08-28 17:08:09 +0000 | [diff] [blame] | 118 | |
| 119 | android_library { |
| 120 | name: "cts-install-lib", |
| 121 | manifest: "AndroidManifest.xml", |
| 122 | static_libs: [ |
| 123 | "cts-install-lib-java", |
| 124 | ], |
| 125 | } |
Mohammad Samiul Islam | 5308884 | 2020-07-27 15:53:18 +0100 | [diff] [blame] | 126 | |
| 127 | java_library_host { |
| 128 | name: "cts-install-lib-host", |
| 129 | srcs: ["src/**/host/InstallUtilsHost.java"], |
Mohammad Samiul Islam | 5ea00c2 | 2020-07-27 18:51:19 +0100 | [diff] [blame] | 130 | libs: ["tradefed", "cts-shim-host-lib",], |
Mohammad Samiul Islam | 5308884 | 2020-07-27 15:53:18 +0100 | [diff] [blame] | 131 | } |