Chen Zhu | 5d42dd3 | 2018-11-07 14:22:53 -0800 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | java_test_host { |
Yu Wu | 051298b | 2018-12-27 17:00:16 -0800 | [diff] [blame] | 16 | name: "timezone_data_e2e_tests", |
| 17 | |
| 18 | srcs: ["src/**/TimezoneDataHostTest.java"], |
| 19 | |
| 20 | libs: ["tradefed"], |
| 21 | |
Neil Fuller | 7e8336b | 2019-02-12 19:19:09 +0000 | [diff] [blame] | 22 | static_libs: [ |
| 23 | "apex_e2e_base_test", |
| 24 | "platformprotos", |
| 25 | ], |
Yu Wu | 051298b | 2018-12-27 17:00:16 -0800 | [diff] [blame] | 26 | |
Andreas Gampe | fcecff7 | 2019-02-08 18:36:01 -0800 | [diff] [blame] | 27 | data: [ |
| 28 | ":test1_com.android.tzdata", |
Andreas Gampe | fcecff7 | 2019-02-08 18:36:01 -0800 | [diff] [blame] | 29 | ], |
Chen Zhu | d4bbc14 | 2019-02-08 00:27:22 -0800 | [diff] [blame] | 30 | |
Yu Wu | 051298b | 2018-12-27 17:00:16 -0800 | [diff] [blame] | 31 | test_config: "timezone-data-e2e-tests.xml", |
| 32 | |
| 33 | test_suites: ["general-tests"], |
| 34 | } |
| 35 | |
Chen Zhu | 1348a6c | 2019-01-30 13:57:20 -0800 | [diff] [blame] | 36 | java_test_host { |
Dongwon Kang | 39b3af6 | 2019-02-17 21:14:34 -0800 | [diff] [blame] | 37 | name: "media_e2e_tests", |
| 38 | |
| 39 | srcs: ["src/**/MediaHostTest.java"], |
| 40 | |
| 41 | libs: ["tradefed"], |
| 42 | |
| 43 | static_libs: ["apex_e2e_base_test"], |
| 44 | |
| 45 | data: [ |
| 46 | ":test_com.android.media", |
Dongwon Kang | 39b3af6 | 2019-02-17 21:14:34 -0800 | [diff] [blame] | 47 | ], |
| 48 | |
| 49 | test_config: "media-e2e-tests.xml", |
| 50 | |
| 51 | test_suites: ["general-tests"], |
| 52 | } |
| 53 | |
| 54 | java_test_host { |
| 55 | name: "media_swcodec_e2e_tests", |
| 56 | |
| 57 | srcs: ["src/**/MediaSwCodecHostTest.java"], |
| 58 | |
| 59 | libs: ["tradefed"], |
| 60 | |
| 61 | static_libs: ["apex_e2e_base_test"], |
| 62 | |
| 63 | data: [ |
| 64 | ":test_com.android.media.swcodec", |
Dongwon Kang | 39b3af6 | 2019-02-17 21:14:34 -0800 | [diff] [blame] | 65 | ], |
| 66 | |
| 67 | test_config: "media-swcodec-e2e-tests.xml", |
| 68 | |
| 69 | test_suites: ["general-tests"], |
| 70 | } |
| 71 | |
| 72 | java_test_host { |
Pete Bentley | 0e843b0 | 2019-02-27 15:03:41 +0000 | [diff] [blame] | 73 | name: "conscrypt_e2e_tests", |
| 74 | |
| 75 | srcs: ["src/**/ConscryptHostTest.java"], |
| 76 | |
| 77 | libs: ["tradefed"], |
| 78 | |
| 79 | static_libs: ["apex_e2e_base_test"], |
| 80 | |
| 81 | data: [ |
| 82 | ":test_com.android.conscrypt", |
Pete Bentley | 0e843b0 | 2019-02-27 15:03:41 +0000 | [diff] [blame] | 83 | ], |
| 84 | |
| 85 | test_config: "conscrypt-e2e-tests.xml", |
| 86 | |
| 87 | test_suites: ["general-tests"], |
| 88 | } |
| 89 | |
| 90 | java_test_host { |
Chen Zhu | 1348a6c | 2019-01-30 13:57:20 -0800 | [diff] [blame] | 91 | name: "apex_targetprep_tests", |
| 92 | |
| 93 | libs: ["tradefed"], |
| 94 | |
Chen Zhu | 1a8cac8 | 2019-03-25 14:24:25 -0700 | [diff] [blame] | 95 | srcs: ["src/**/ApexTargetPrepTest.java"], |
| 96 | |
Dario Freni | b7742a2 | 2019-05-23 14:21:06 +0100 | [diff] [blame] | 97 | data: [":StagedInstallTestApexV2"], |
Chen Zhu | 1348a6c | 2019-01-30 13:57:20 -0800 | [diff] [blame] | 98 | |
| 99 | test_config: "apex-targetprep-tests.xml", |
| 100 | |
| 101 | test_suites: ["general-tests"], |
| 102 | } |
| 103 | |
Yu Wu | 051298b | 2018-12-27 17:00:16 -0800 | [diff] [blame] | 104 | java_library_host { |
| 105 | name: "apex_e2e_base_test", |
shafik | cf41262 | 2019-02-27 17:51:37 +0000 | [diff] [blame] | 106 | srcs: ["src/**/ApexE2EBaseHostTest.java","src/**/ApexTestUtils.java"], |
Yu Wu | 051298b | 2018-12-27 17:00:16 -0800 | [diff] [blame] | 107 | libs: ["tradefed"], |
| 108 | } |
| 109 | |
Jiyong Park | ef3bf76 | 2018-12-04 14:34:03 +0900 | [diff] [blame] | 110 | apex { |
| 111 | name: "apex.test", |
| 112 | manifest: "testdata/apex_manifest.json", |
Dario Freni | 2333f0f | 2019-01-23 14:52:23 +0000 | [diff] [blame] | 113 | prebuilts: ["sample_prebuilt_file"], |
Jiyong Park | ef3bf76 | 2018-12-04 14:34:03 +0900 | [diff] [blame] | 114 | key: "apex.test.key", |
| 115 | certificate: ":apex.test.certificate", |
Dario Freni | c85ca58 | 2019-01-21 23:28:42 +0000 | [diff] [blame] | 116 | installable: false, |
Jiyong Park | ef3bf76 | 2018-12-04 14:34:03 +0900 | [diff] [blame] | 117 | } |
| 118 | |
Mohammad Samiul Islam | d14481c | 2019-01-30 14:24:30 +0000 | [diff] [blame] | 119 | // This target is not consumed by anyone. It's a sanity |
| 120 | // check for the build features. |
| 121 | apex { |
| 122 | name: "apex_test_build_features", |
| 123 | file_contexts: "apex.test", |
| 124 | manifest: "testdata/apex_manifest.json", |
Jiyong Park | 1c4605a | 2019-02-08 02:49:59 +0900 | [diff] [blame] | 125 | androidManifest: "testdata/AndroidManifest.xml", |
Jiyong Park | e9173d6 | 2019-02-07 11:19:46 +0900 | [diff] [blame] | 126 | binaries: ["surfaceflinger", "vold"], |
Mohammad Samiul Islam | d14481c | 2019-01-30 14:24:30 +0000 | [diff] [blame] | 127 | multilib: { |
| 128 | prefer32: { |
| 129 | binaries: ["dex2oat"], |
| 130 | }, |
| 131 | }, |
Jiyong Park | eff0c48 | 2019-02-05 20:08:50 +0900 | [diff] [blame] | 132 | native_shared_libs: ["libc", "libcutils"], |
Mohammad Samiul Islam | d14481c | 2019-01-30 14:24:30 +0000 | [diff] [blame] | 133 | java_libs: ["conscrypt"], |
| 134 | prebuilts: ["sample_prebuilt_file", "apex.test.ld.config.txt", "apex.test.init.rc"], |
| 135 | compile_multilib: "both", |
| 136 | key: "apex.test.key", |
| 137 | certificate: ":apex.test.certificate", |
| 138 | installable: false, |
| 139 | } |
| 140 | |
Jiyong Park | ef3bf76 | 2018-12-04 14:34:03 +0900 | [diff] [blame] | 141 | apex_key { |
| 142 | name: "apex.test.key", |
| 143 | public_key: "testdata/com.android.apex.test.avbpubkey", |
| 144 | private_key: "testdata/com.android.apex.test.pem", |
Jiyong Park | 997fcbf | 2018-12-27 16:07:49 +0900 | [diff] [blame] | 145 | installable: false, |
Jiyong Park | ef3bf76 | 2018-12-04 14:34:03 +0900 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | android_app_certificate { |
| 149 | name: "apex.test.certificate", |
| 150 | // will use testcert.pk8 and testcert.x509.pem |
| 151 | certificate: "testdata/testcert", |
| 152 | } |
| 153 | |
| 154 | prebuilt_etc { |
| 155 | name: "apex.test.ld.config.txt", |
| 156 | src: "testdata/ld.config.txt", |
| 157 | filename: "ld.config.txt", |
| 158 | installable: false, |
| 159 | } |
| 160 | |
| 161 | prebuilt_etc { |
| 162 | name: "sample_prebuilt_file", |
| 163 | src: "testdata/sample_prebuilt_file", |
| 164 | } |
| 165 | |
| 166 | prebuilt_etc { |
| 167 | name: "apex.test.init.rc", |
| 168 | src: "testdata/init.rc", |
| 169 | filename: "init.rc", |
| 170 | installable: false, |
| 171 | } |