Richard Uhler | a729134 | 2019-03-07 14:51:05 +0000 | [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 | android_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 | |
| 23 | android_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 | |
| 31 | android_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 | |
| 39 | android_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 | |
| 47 | android_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 | |
| 55 | android_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 | |
| 64 | android_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 | |
| 73 | apex { |
| 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 | |
| 82 | apex { |
| 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 Uhler | 1924d6d | 2019-04-26 10:20:12 +0100 | [diff] [blame^] | 91 | apex { |
| 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 Uhler | a729134 | 2019-03-07 14:51:05 +0000 | [diff] [blame] | 100 | apex_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 | |
| 107 | prebuilt_etc { |
| 108 | name: "RollbackTestApex.prebuilt.txt", |
| 109 | src: "TestApex/RollbackTestApex.prebuilt.txt", |
| 110 | } |
| 111 | |
| 112 | android_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 Uhler | 1924d6d | 2019-04-26 10:20:12 +0100 | [diff] [blame^] | 128 | ":com.android.tests.rollback.testapex.RollbackTestApexV3", |
Richard Uhler | a729134 | 2019-03-07 14:51:05 +0000 | [diff] [blame] | 129 | ], |
| 130 | test_config: "RollbackTest.xml", |
Richard Uhler | 8a97745 | 2019-03-08 13:27:17 +0000 | [diff] [blame] | 131 | sdk_version: "test_current", |
Richard Uhler | a729134 | 2019-03-07 14:51:05 +0000 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | java_test_host { |
| 135 | name: "StagedRollbackTest", |
| 136 | srcs: ["StagedRollbackTest/src/**/*.java"], |
| 137 | libs: ["tradefed"], |
| 138 | test_suites: ["general-tests"], |
| 139 | test_config: "StagedRollbackTest.xml", |
| 140 | } |