blob: 6b2438d18e86ce08c67dfac8631b3eefc9c9433b [file] [log] [blame]
Chen Zhu5d42dd32018-11-07 14:22:53 -08001// 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
15java_test_host {
Yu Wu051298b2018-12-27 17:00:16 -080016 name: "timezone_data_e2e_tests",
17
18 srcs: ["src/**/TimezoneDataHostTest.java"],
19
20 libs: ["tradefed"],
21
Neil Fuller7e8336b2019-02-12 19:19:09 +000022 static_libs: [
23 "apex_e2e_base_test",
24 "platformprotos",
25 ],
Yu Wu051298b2018-12-27 17:00:16 -080026
Andreas Gampefcecff72019-02-08 18:36:01 -080027 data: [
28 ":test1_com.android.tzdata",
Andreas Gampefcecff72019-02-08 18:36:01 -080029 ],
Chen Zhud4bbc142019-02-08 00:27:22 -080030
Yu Wu051298b2018-12-27 17:00:16 -080031 test_config: "timezone-data-e2e-tests.xml",
32
33 test_suites: ["general-tests"],
34}
35
Chen Zhu1348a6c2019-01-30 13:57:20 -080036java_test_host {
Dongwon Kang39b3af62019-02-17 21:14:34 -080037 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 Kang39b3af62019-02-17 21:14:34 -080047 ],
48
49 test_config: "media-e2e-tests.xml",
50
51 test_suites: ["general-tests"],
52}
53
54java_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 Kang39b3af62019-02-17 21:14:34 -080065 ],
66
67 test_config: "media-swcodec-e2e-tests.xml",
68
69 test_suites: ["general-tests"],
70}
71
72java_test_host {
Pete Bentley0e843b02019-02-27 15:03:41 +000073 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 Bentley0e843b02019-02-27 15:03:41 +000083 ],
84
85 test_config: "conscrypt-e2e-tests.xml",
86
87 test_suites: ["general-tests"],
88}
89
90java_test_host {
Chen Zhu1348a6c2019-01-30 13:57:20 -080091 name: "apex_targetprep_tests",
92
93 libs: ["tradefed"],
94
Chen Zhu1a8cac82019-03-25 14:24:25 -070095 srcs: ["src/**/ApexTargetPrepTest.java"],
96
Dario Frenib7742a22019-05-23 14:21:06 +010097 data: [":StagedInstallTestApexV2"],
Chen Zhu1348a6c2019-01-30 13:57:20 -080098
99 test_config: "apex-targetprep-tests.xml",
100
101 test_suites: ["general-tests"],
102}
103
Yu Wu051298b2018-12-27 17:00:16 -0800104java_library_host {
105 name: "apex_e2e_base_test",
shafikcf412622019-02-27 17:51:37 +0000106 srcs: ["src/**/ApexE2EBaseHostTest.java","src/**/ApexTestUtils.java"],
Yu Wu051298b2018-12-27 17:00:16 -0800107 libs: ["tradefed"],
108}
109
Jiyong Parkef3bf762018-12-04 14:34:03 +0900110apex {
111 name: "apex.test",
112 manifest: "testdata/apex_manifest.json",
Dario Freni2333f0f2019-01-23 14:52:23 +0000113 prebuilts: ["sample_prebuilt_file"],
Jiyong Parkef3bf762018-12-04 14:34:03 +0900114 key: "apex.test.key",
115 certificate: ":apex.test.certificate",
Dario Frenic85ca582019-01-21 23:28:42 +0000116 installable: false,
Jiyong Parkef3bf762018-12-04 14:34:03 +0900117}
118
Mohammad Samiul Islamd14481c2019-01-30 14:24:30 +0000119// This target is not consumed by anyone. It's a sanity
120// check for the build features.
121apex {
122 name: "apex_test_build_features",
123 file_contexts: "apex.test",
124 manifest: "testdata/apex_manifest.json",
Jiyong Park1c4605a2019-02-08 02:49:59 +0900125 androidManifest: "testdata/AndroidManifest.xml",
Jiyong Parke9173d62019-02-07 11:19:46 +0900126 binaries: ["surfaceflinger", "vold"],
Mohammad Samiul Islamd14481c2019-01-30 14:24:30 +0000127 multilib: {
128 prefer32: {
129 binaries: ["dex2oat"],
130 },
131 },
Jiyong Parkeff0c482019-02-05 20:08:50 +0900132 native_shared_libs: ["libc", "libcutils"],
Mohammad Samiul Islamd14481c2019-01-30 14:24:30 +0000133 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 Parkef3bf762018-12-04 14:34:03 +0900141apex_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 Park997fcbf2018-12-27 16:07:49 +0900145 installable: false,
Jiyong Parkef3bf762018-12-04 14:34:03 +0900146}
147
148android_app_certificate {
149 name: "apex.test.certificate",
150 // will use testcert.pk8 and testcert.x509.pem
151 certificate: "testdata/testcert",
152}
153
154prebuilt_etc {
155 name: "apex.test.ld.config.txt",
156 src: "testdata/ld.config.txt",
157 filename: "ld.config.txt",
158 installable: false,
159}
160
161prebuilt_etc {
162 name: "sample_prebuilt_file",
163 src: "testdata/sample_prebuilt_file",
164}
165
166prebuilt_etc {
167 name: "apex.test.init.rc",
168 src: "testdata/init.rc",
169 filename: "init.rc",
170 installable: false,
171}