blob: 32a5dcb8c9ee9e36da21066aac0871ed80dedef9 [file] [log] [blame]
Tao Bao30e31142019-04-09 00:12:30 -07001// 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
Tao Bao3c7b2a62019-08-07 12:24:20 -070015//
16// Module-specific defaults.
17//
18// For module X, if we need to build it both as a library and an executable:
19// - A default rule `releasetools_X_defaults` is created, which lists `srcs`, `libs` and
20// `required` properties.
21// - `python_library_host` and `python_binary_host` are created by listing
22// `releasetools_X_defaults` in their defaults.
23//
24
Bob Badour03905802021-02-12 21:42:54 -080025package {
26 default_applicable_licenses: ["Android-Apache-2.0"],
27}
28
Tao Bao3c7b2a62019-08-07 12:24:20 -070029python_defaults {
30 name: "releasetools_add_img_to_target_files_defaults",
31 srcs: [
32 "add_img_to_target_files.py",
33 ],
34 libs: [
Kelvin Zhang5f0fcee2021-01-19 15:30:46 -050035 "ota_metadata_proto",
36 "releasetools_apex_utils",
Tao Bao3c7b2a62019-08-07 12:24:20 -070037 "releasetools_build_image",
38 "releasetools_build_super_image",
39 "releasetools_common",
40 ],
41 required: [
42 "care_map_generator",
43 ],
44}
45
46python_defaults {
47 name: "releasetools_build_image_defaults",
48 srcs: [
49 "build_image.py",
50 ],
51 libs: [
52 "releasetools_common",
53 "releasetools_verity_utils",
54 ],
55 required: [
56 "blk_alloc_to_base_fs",
57 "e2fsck",
Gao Xiang961041a2020-06-17 13:59:16 +080058 "mkerofsimage.sh",
Yifan Hong77023452020-08-25 16:15:16 -070059 "mkuserimg_mke2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070060 "simg2img",
61 "tune2fs",
62 ],
63}
64
65python_defaults {
66 name: "releasetools_build_super_image_defaults",
67 srcs: [
68 "build_super_image.py",
69 ],
70 libs: [
71 "releasetools_common",
72 ],
73}
74
75python_defaults {
76 name: "releasetools_img_from_target_files_defaults",
77 srcs: [
78 "img_from_target_files.py",
79 ],
80 libs: [
81 "releasetools_build_super_image",
82 "releasetools_common",
83 ],
84}
85
86python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070087 name: "releasetools_check_target_files_vintf_defaults",
88 srcs: [
89 "check_target_files_vintf.py",
90 ],
91 libs: [
92 "releasetools_common",
93 ],
94 required: [
95 "checkvintf",
96 ],
97}
98
Tianjiea2076132020-08-19 17:25:32 -070099python_library_host {
100 name: "ota_metadata_proto",
101 version: {
102 py2: {
103 enabled: true,
104 },
105 py3: {
106 enabled: true,
107 },
108 },
109 srcs: [
110 "ota_metadata.proto",
111 ],
112 proto: {
113 canonical_path_from_root: false,
114 },
115}
116
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400117cc_library_static {
118 name: "ota_metadata_proto_cc",
119 srcs: [
120 "ota_metadata.proto",
121 ],
122 host_supported: true,
123 recovery_available: true,
124 proto: {
125 canonical_path_from_root: false,
126 type: "lite",
127 export_proto_headers: true,
128 },
129}
130
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400131java_library_static {
132 name: "ota_metadata_proto_java",
133 host_supported: true,
134 proto: {
135 type: "nano",
136 },
137 srcs: ["ota_metadata.proto"],
138 sdk_version: "9",
139 target: {
140 android: {
141 jarjar_rules: "jarjar-rules.txt",
142 },
143 host: {
144 static_libs: ["libprotobuf-java-nano"],
145 },
146 },
147 visibility: ["//frameworks/base:__subpackages__"]
148}
149
Yifan Honge3ba82c2019-08-21 13:29:30 -0700150python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700151 name: "releasetools_ota_from_target_files_defaults",
152 srcs: [
153 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400154 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700155 "ota_from_target_files.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400156 "ota_utils.py",
Tianjiea2076132020-08-19 17:25:32 -0700157 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700158 ],
159 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700160 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700161 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700162 "releasetools_common",
163 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000164 "apex_manifest",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700165 ],
166 required: [
167 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700168 "checkvintf",
jiajia tangf3f842b2021-03-17 21:49:44 +0800169 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700170 "lz4",
171 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000172 "unpack_bootimg",
173 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700174 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000175 target: {
176 darwin: {
177 // required module "brillo_update_payload" is disabled on darwin
178 enabled: false,
179 },
180 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700181}
182
183//
184// Host libraries.
185//
186
Tao Bao30e31142019-04-09 00:12:30 -0700187python_defaults {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700188 name: "releasetools_library_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700189 version: {
190 py2: {
191 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700192 },
193 py3: {
Tao Baoca82fc92019-05-01 21:58:03 -0700194 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700195 },
196 },
197}
198
199python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700200 name: "releasetools_add_img_to_target_files",
201 defaults: [
202 "releasetools_library_defaults",
203 "releasetools_add_img_to_target_files_defaults",
204 ],
205}
206
207python_library_host {
208 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700209 defaults: ["releasetools_library_defaults"],
210 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700211 "apex_utils.py",
212 ],
213 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000214 "apex_manifest",
215 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700216 "releasetools_common",
217 ],
218}
219
220python_library_host {
221 name: "releasetools_build_image",
222 defaults: [
223 "releasetools_library_defaults",
224 "releasetools_build_image_defaults",
225 ],
226}
227
228python_library_host {
229 name: "releasetools_build_super_image",
230 defaults: [
231 "releasetools_library_defaults",
232 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700233 ],
234}
235
236python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700237 name: "releasetools_check_target_files_vintf",
238 defaults: [
239 "releasetools_library_defaults",
240 "releasetools_check_target_files_vintf_defaults",
241 ],
242}
243
244python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700245 name: "releasetools_common",
246 defaults: ["releasetools_library_defaults"],
Tao Bao30e31142019-04-09 00:12:30 -0700247 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700248 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700249 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700250 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700251 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700252 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700253 ],
254 // Only the tools that are referenced directly are listed as required modules. For example,
255 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
256 required: [
changho.shin0f125362019-07-08 10:59:00 +0900257 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700258 "boot_signer",
259 "brotli",
260 "bsdiff",
261 "imgdiff",
262 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000263 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700264 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100265 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800266 "toybox",
267 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700268 ],
269}
270
271python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700272 name: "releasetools_img_from_target_files",
273 defaults: [
274 "releasetools_library_defaults",
275 "releasetools_img_from_target_files_defaults",
276 ],
277}
278
279python_library_host {
280 name: "releasetools_ota_from_target_files",
281 defaults: [
282 "releasetools_library_defaults",
283 "releasetools_ota_from_target_files_defaults",
284 ],
285}
286
287python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700288 name: "releasetools_verity_utils",
289 defaults: ["releasetools_library_defaults"],
290 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700291 "verity_utils.py",
292 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700293 required: [
294 "append2simg",
295 "build_verity_metadata",
296 "build_verity_tree",
297 "fec",
298 ],
299}
300
Tao Bao3c7b2a62019-08-07 12:24:20 -0700301//
302// Host binaries.
303//
304
Tao Bao2bbb07c2019-05-07 13:12:21 -0700305python_defaults {
306 name: "releasetools_binary_defaults",
307 version: {
308 py2: {
309 enabled: true,
310 embedded_launcher: true,
311 },
312 py3: {
313 enabled: false,
314 embedded_launcher: false,
315 },
316 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900317 // TODO (b/140144201) Build imgdiff from releasetools_common
318 required: [
319 "aapt2",
320 "boot_signer",
321 "brotli",
322 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000323 "deapexer",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900324 "imgdiff",
325 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000326 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900327 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000328 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800329 "toybox",
330 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900331 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700332}
333
334python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700335 name: "add_img_to_target_files",
336 defaults: [
337 "releasetools_binary_defaults",
338 "releasetools_add_img_to_target_files_defaults",
339 ],
340}
341
342python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700343 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700344 defaults: [
345 "releasetools_binary_defaults",
346 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700347 ],
348}
349
350python_binary_host {
351 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700352 defaults: [
353 "releasetools_binary_defaults",
354 "releasetools_build_super_image_defaults",
355 ],
356}
357
358python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000359 name: "check_partition_sizes",
360 srcs: [
361 "check_partition_sizes.py",
362 ],
363 libs: [
364 "releasetools_common",
365 ],
366 defaults: [
367 "releasetools_binary_defaults",
368 ],
369}
370
371python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700372 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700373 defaults: ["releasetools_binary_defaults"],
374 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700375 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700376 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700377 libs: [
378 "releasetools_common",
379 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700380 required: [
381 "delta_generator",
382 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000383 target: {
384 darwin: {
385 // required module "delta_generator" is disabled on darwin
386 enabled: false,
387 },
388 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700389}
390
391python_binary_host {
392 name: "check_target_files_signatures",
393 defaults: ["releasetools_binary_defaults"],
394 srcs: [
395 "check_target_files_signatures.py",
396 ],
397 libs: [
398 "releasetools_common",
399 ],
400 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700401 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700402 ],
403}
404
405python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700406 name: "check_target_files_vintf",
407 defaults: [
408 "releasetools_binary_defaults",
409 "releasetools_check_target_files_vintf_defaults"
410 ],
411}
412
413python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700414 name: "img_from_target_files",
415 defaults: [
416 "releasetools_binary_defaults",
417 "releasetools_img_from_target_files_defaults",
418 ],
Tao Bao30e31142019-04-09 00:12:30 -0700419}
420
Daniel Normanb8d52a22020-10-26 17:55:00 -0700421python_defaults {
422 name: "releasetools_find_shareduid_violation_defaults",
423 srcs: [
424 "find_shareduid_violation.py",
425 ],
426 libs: [
427 "releasetools_common",
428 ],
429}
430
431python_binary_host {
432 name: "find_shareduid_violation",
433 defaults: [
434 "releasetools_binary_defaults",
435 "releasetools_find_shareduid_violation_defaults",
436 ],
437}
438
439python_library_host {
440 name: "releasetools_find_shareduid_violation",
441 defaults: [
442 "releasetools_find_shareduid_violation_defaults",
443 "releasetools_library_defaults",
444 ],
445}
446
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700447python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700448 name: "make_recovery_patch",
449 defaults: ["releasetools_binary_defaults"],
450 srcs: [
451 "make_recovery_patch.py",
452 ],
453 libs: [
454 "releasetools_common",
455 ],
456}
457
458python_binary_host {
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700459 name: "merge_builds",
460 defaults: ["releasetools_binary_defaults"],
461 srcs: [
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700462 "merge_builds.py",
463 ],
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700464 libs: [
Tao Bao005305a2019-08-05 13:00:44 -0700465 "releasetools_build_super_image",
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700466 "releasetools_common",
467 ],
468}
469
Tao Bao8821d642019-08-05 12:05:45 -0700470python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700471 name: "merge_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700472 defaults: ["releasetools_binary_defaults"],
473 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700474 "merge_target_files.py",
Tao Bao8821d642019-08-05 12:05:45 -0700475 ],
476 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700477 "releasetools_add_img_to_target_files",
478 "releasetools_build_super_image",
Yifan Hongade0d3f2019-08-21 16:37:11 -0700479 "releasetools_check_target_files_vintf",
Tao Bao8821d642019-08-05 12:05:45 -0700480 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700481 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700482 "releasetools_img_from_target_files",
483 "releasetools_ota_from_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700484 ],
Yifan Hong09298552019-09-04 11:49:01 -0700485 required: [
486 "checkvintf",
Daniel Norman21c34f72020-11-11 17:25:50 -0800487 "host_init_verifier",
Daniel Norman48603ff2021-02-22 15:15:24 -0800488 "secilc",
Yifan Hong09298552019-09-04 11:49:01 -0700489 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000490 target: {
491 darwin: {
492 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
493 enabled: false,
494 },
495 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700496}
497
498python_binary_host {
499 name: "ota_from_target_files",
500 defaults: [
501 "releasetools_binary_defaults",
502 "releasetools_ota_from_target_files_defaults",
503 ],
504}
505
506python_binary_host {
507 name: "ota_package_parser",
508 defaults: ["releasetools_binary_defaults"],
509 srcs: [
510 "ota_package_parser.py",
511 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700512 ],
513}
514
Tao Baoe11a4602019-08-06 23:21:23 -0700515python_binary_host {
516 name: "sparse_img",
517 defaults: ["releasetools_binary_defaults"],
518 srcs: [
519 "rangelib.py",
520 "sparse_img.py",
521 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700522}
523
Tao Bao3c7b2a62019-08-07 12:24:20 -0700524python_binary_host {
525 name: "sign_apex",
526 defaults: ["releasetools_binary_defaults"],
527 srcs: [
528 "sign_apex.py",
529 ],
530 libs: [
531 "releasetools_apex_utils",
532 "releasetools_common",
533 ],
534}
535
536python_binary_host {
537 name: "sign_target_files_apks",
538 defaults: ["releasetools_binary_defaults"],
539 srcs: [
540 "sign_target_files_apks.py",
541 ],
542 libs: [
543 "releasetools_add_img_to_target_files",
544 "releasetools_apex_utils",
545 "releasetools_common",
546 ],
547}
548
549python_binary_host {
550 name: "validate_target_files",
551 defaults: ["releasetools_binary_defaults"],
552 srcs: [
553 "validate_target_files.py",
554 ],
555 libs: [
556 "releasetools_common",
557 ],
558}
559
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900560python_binary_host {
561 name: "verity_utils",
562 defaults: ["releasetools_binary_defaults"],
563 srcs: [
564 "verity_utils.py",
565 ],
566 libs: [
567 "releasetools_common",
568 ],
569 required: [
570 "append2simg",
571 "build_verity_metadata",
572 "build_verity_tree",
573 "fec",
574 ],
575}
576
Tao Bao3c7b2a62019-08-07 12:24:20 -0700577//
578// Tests.
579//
580
Tao Baoca82fc92019-05-01 21:58:03 -0700581python_defaults {
582 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700583 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700584 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000585 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700586 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700587 "make_recovery_patch.py",
588 "merge_target_files.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700589 "ota_package_parser.py",
590 "sign_apex.py",
591 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700592 "validate_target_files.py",
593
Tao Bao30e31142019-04-09 00:12:30 -0700594 "test_*.py",
595 ],
596 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700597 "releasetools_add_img_to_target_files",
598 "releasetools_apex_utils",
599 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700600 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700601 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700602 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700603 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700604 "releasetools_img_from_target_files",
605 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700606 "releasetools_verity_utils",
Tao Bao30e31142019-04-09 00:12:30 -0700607 ],
608 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700609 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000610 ":com.android.apex.compressed.v1",
611 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700612 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000613 target: {
614 darwin: {
615 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
616 enabled: false,
617 },
618 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000619 required: [
620 "deapexer",
621 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700622}
623
624python_test_host {
625 name: "releasetools_test",
626 defaults: ["releasetools_test_defaults"],
627 main: "test_utils.py",
628 version: {
629 py2: {
630 enabled: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700631 // When using embedded launcher, atest will try (but may fail) to load libc++.so from
632 // host, because the test executable won't be able to find the needed libs via its
633 // runpath.
Tao Baoca82fc92019-05-01 21:58:03 -0700634 embedded_launcher: false,
635 },
636 py3: {
637 enabled: false,
638 embedded_launcher: false,
639 },
640 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800641 test_options: {
642 unit_test: true,
643 },
Tao Baoca82fc92019-05-01 21:58:03 -0700644}
645
646python_test_host {
647 name: "releasetools_py3_test",
648 defaults: ["releasetools_test_defaults"],
649 main: "test_utils.py",
Kelvin Zhang553efca2021-02-01 17:25:41 -0500650 test_suites: ["general-tests"],
Tao Baoca82fc92019-05-01 21:58:03 -0700651 version: {
652 py2: {
653 enabled: false,
654 embedded_launcher: false,
655 },
656 py3: {
657 enabled: true,
658 embedded_launcher: false,
659 },
660 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800661 test_options: {
662 unit_test: true,
663 },
Tao Bao30e31142019-04-09 00:12:30 -0700664}