blob: aa6ec83f076bc3a497d071f0e9682a5ac73d652a [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",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400165 "care_map_proto_py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700166 ],
167 required: [
168 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700169 "checkvintf",
jiajia tangf3f842b2021-03-17 21:49:44 +0800170 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700171 "lz4",
172 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000173 "unpack_bootimg",
174 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700175 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000176 target: {
177 darwin: {
178 // required module "brillo_update_payload" is disabled on darwin
179 enabled: false,
180 },
181 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700182}
183
184//
185// Host libraries.
186//
187
Tao Bao30e31142019-04-09 00:12:30 -0700188python_defaults {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700189 name: "releasetools_library_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700190 version: {
191 py2: {
192 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700193 },
194 py3: {
Tao Baoca82fc92019-05-01 21:58:03 -0700195 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700196 },
197 },
198}
199
200python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700201 name: "releasetools_add_img_to_target_files",
202 defaults: [
203 "releasetools_library_defaults",
204 "releasetools_add_img_to_target_files_defaults",
205 ],
206}
207
208python_library_host {
209 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700210 defaults: ["releasetools_library_defaults"],
211 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700212 "apex_utils.py",
213 ],
214 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000215 "apex_manifest",
216 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700217 "releasetools_common",
218 ],
219}
220
221python_library_host {
222 name: "releasetools_build_image",
223 defaults: [
224 "releasetools_library_defaults",
225 "releasetools_build_image_defaults",
226 ],
227}
228
229python_library_host {
230 name: "releasetools_build_super_image",
231 defaults: [
232 "releasetools_library_defaults",
233 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700234 ],
235}
236
237python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700238 name: "releasetools_check_target_files_vintf",
239 defaults: [
240 "releasetools_library_defaults",
241 "releasetools_check_target_files_vintf_defaults",
242 ],
243}
244
245python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700246 name: "releasetools_common",
247 defaults: ["releasetools_library_defaults"],
Tao Bao30e31142019-04-09 00:12:30 -0700248 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700249 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700250 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700251 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700252 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700253 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700254 ],
255 // Only the tools that are referenced directly are listed as required modules. For example,
256 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
257 required: [
changho.shin0f125362019-07-08 10:59:00 +0900258 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700259 "boot_signer",
260 "brotli",
261 "bsdiff",
262 "imgdiff",
263 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000264 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700265 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100266 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800267 "toybox",
268 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700269 ],
270}
271
272python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700273 name: "releasetools_img_from_target_files",
274 defaults: [
275 "releasetools_library_defaults",
276 "releasetools_img_from_target_files_defaults",
277 ],
278}
279
280python_library_host {
281 name: "releasetools_ota_from_target_files",
282 defaults: [
283 "releasetools_library_defaults",
284 "releasetools_ota_from_target_files_defaults",
285 ],
286}
287
288python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700289 name: "releasetools_verity_utils",
290 defaults: ["releasetools_library_defaults"],
291 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700292 "verity_utils.py",
293 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700294 required: [
295 "append2simg",
296 "build_verity_metadata",
297 "build_verity_tree",
298 "fec",
299 ],
300}
301
Tao Bao3c7b2a62019-08-07 12:24:20 -0700302//
303// Host binaries.
304//
305
Tao Bao2bbb07c2019-05-07 13:12:21 -0700306python_defaults {
307 name: "releasetools_binary_defaults",
308 version: {
309 py2: {
310 enabled: true,
311 embedded_launcher: true,
312 },
313 py3: {
314 enabled: false,
315 embedded_launcher: false,
316 },
317 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900318 // TODO (b/140144201) Build imgdiff from releasetools_common
319 required: [
320 "aapt2",
321 "boot_signer",
322 "brotli",
323 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000324 "deapexer",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900325 "imgdiff",
326 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000327 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900328 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000329 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800330 "toybox",
331 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900332 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700333}
334
335python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700336 name: "add_img_to_target_files",
337 defaults: [
338 "releasetools_binary_defaults",
339 "releasetools_add_img_to_target_files_defaults",
340 ],
341}
342
343python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700344 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700345 defaults: [
346 "releasetools_binary_defaults",
347 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700348 ],
349}
350
351python_binary_host {
352 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700353 defaults: [
354 "releasetools_binary_defaults",
355 "releasetools_build_super_image_defaults",
356 ],
357}
358
359python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000360 name: "check_partition_sizes",
361 srcs: [
362 "check_partition_sizes.py",
363 ],
364 libs: [
365 "releasetools_common",
366 ],
367 defaults: [
368 "releasetools_binary_defaults",
369 ],
370}
371
372python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700373 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700374 defaults: ["releasetools_binary_defaults"],
375 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700376 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700377 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700378 libs: [
379 "releasetools_common",
380 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700381 required: [
382 "delta_generator",
383 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000384 target: {
385 darwin: {
386 // required module "delta_generator" is disabled on darwin
387 enabled: false,
388 },
389 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700390}
391
392python_binary_host {
393 name: "check_target_files_signatures",
394 defaults: ["releasetools_binary_defaults"],
395 srcs: [
396 "check_target_files_signatures.py",
397 ],
398 libs: [
399 "releasetools_common",
400 ],
401 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700402 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700403 ],
404}
405
406python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700407 name: "check_target_files_vintf",
408 defaults: [
409 "releasetools_binary_defaults",
410 "releasetools_check_target_files_vintf_defaults"
411 ],
412}
413
414python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700415 name: "img_from_target_files",
416 defaults: [
417 "releasetools_binary_defaults",
418 "releasetools_img_from_target_files_defaults",
419 ],
Tao Bao30e31142019-04-09 00:12:30 -0700420}
421
Daniel Normanb8d52a22020-10-26 17:55:00 -0700422python_defaults {
423 name: "releasetools_find_shareduid_violation_defaults",
424 srcs: [
425 "find_shareduid_violation.py",
426 ],
427 libs: [
428 "releasetools_common",
429 ],
430}
431
432python_binary_host {
433 name: "find_shareduid_violation",
434 defaults: [
435 "releasetools_binary_defaults",
436 "releasetools_find_shareduid_violation_defaults",
437 ],
438}
439
440python_library_host {
441 name: "releasetools_find_shareduid_violation",
442 defaults: [
443 "releasetools_find_shareduid_violation_defaults",
444 "releasetools_library_defaults",
445 ],
446}
447
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700448python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700449 name: "make_recovery_patch",
450 defaults: ["releasetools_binary_defaults"],
451 srcs: [
452 "make_recovery_patch.py",
453 ],
454 libs: [
455 "releasetools_common",
456 ],
457}
458
459python_binary_host {
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700460 name: "merge_builds",
461 defaults: ["releasetools_binary_defaults"],
462 srcs: [
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700463 "merge_builds.py",
464 ],
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700465 libs: [
Tao Bao005305a2019-08-05 13:00:44 -0700466 "releasetools_build_super_image",
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700467 "releasetools_common",
468 ],
469}
470
Tao Bao8821d642019-08-05 12:05:45 -0700471python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700472 name: "merge_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700473 defaults: ["releasetools_binary_defaults"],
474 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700475 "merge_target_files.py",
Tao Bao8821d642019-08-05 12:05:45 -0700476 ],
477 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700478 "releasetools_add_img_to_target_files",
479 "releasetools_build_super_image",
Yifan Hongade0d3f2019-08-21 16:37:11 -0700480 "releasetools_check_target_files_vintf",
Tao Bao8821d642019-08-05 12:05:45 -0700481 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700482 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700483 "releasetools_img_from_target_files",
484 "releasetools_ota_from_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700485 ],
Yifan Hong09298552019-09-04 11:49:01 -0700486 required: [
487 "checkvintf",
Daniel Norman21c34f72020-11-11 17:25:50 -0800488 "host_init_verifier",
Daniel Norman48603ff2021-02-22 15:15:24 -0800489 "secilc",
Yifan Hong09298552019-09-04 11:49:01 -0700490 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000491 target: {
492 darwin: {
493 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
494 enabled: false,
495 },
496 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700497}
498
499python_binary_host {
500 name: "ota_from_target_files",
501 defaults: [
502 "releasetools_binary_defaults",
503 "releasetools_ota_from_target_files_defaults",
504 ],
505}
506
507python_binary_host {
508 name: "ota_package_parser",
509 defaults: ["releasetools_binary_defaults"],
510 srcs: [
511 "ota_package_parser.py",
512 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700513 ],
514}
515
Tao Baoe11a4602019-08-06 23:21:23 -0700516python_binary_host {
517 name: "sparse_img",
518 defaults: ["releasetools_binary_defaults"],
519 srcs: [
520 "rangelib.py",
521 "sparse_img.py",
522 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700523}
524
Tao Bao3c7b2a62019-08-07 12:24:20 -0700525python_binary_host {
526 name: "sign_apex",
527 defaults: ["releasetools_binary_defaults"],
528 srcs: [
529 "sign_apex.py",
530 ],
531 libs: [
532 "releasetools_apex_utils",
533 "releasetools_common",
534 ],
535}
536
537python_binary_host {
538 name: "sign_target_files_apks",
539 defaults: ["releasetools_binary_defaults"],
540 srcs: [
541 "sign_target_files_apks.py",
542 ],
543 libs: [
544 "releasetools_add_img_to_target_files",
545 "releasetools_apex_utils",
546 "releasetools_common",
547 ],
548}
549
550python_binary_host {
551 name: "validate_target_files",
552 defaults: ["releasetools_binary_defaults"],
553 srcs: [
554 "validate_target_files.py",
555 ],
556 libs: [
557 "releasetools_common",
558 ],
559}
560
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900561python_binary_host {
562 name: "verity_utils",
563 defaults: ["releasetools_binary_defaults"],
564 srcs: [
565 "verity_utils.py",
566 ],
567 libs: [
568 "releasetools_common",
569 ],
570 required: [
571 "append2simg",
572 "build_verity_metadata",
573 "build_verity_tree",
574 "fec",
575 ],
576}
577
Tao Bao3c7b2a62019-08-07 12:24:20 -0700578//
579// Tests.
580//
581
Tao Baoca82fc92019-05-01 21:58:03 -0700582python_defaults {
583 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700584 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700585 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000586 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700587 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700588 "make_recovery_patch.py",
589 "merge_target_files.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700590 "ota_package_parser.py",
591 "sign_apex.py",
592 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700593 "validate_target_files.py",
594
Tao Bao30e31142019-04-09 00:12:30 -0700595 "test_*.py",
596 ],
597 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700598 "releasetools_add_img_to_target_files",
599 "releasetools_apex_utils",
600 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700601 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700602 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700603 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700604 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700605 "releasetools_img_from_target_files",
606 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700607 "releasetools_verity_utils",
Tao Bao30e31142019-04-09 00:12:30 -0700608 ],
609 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700610 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000611 ":com.android.apex.compressed.v1",
612 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700613 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000614 target: {
615 darwin: {
616 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
617 enabled: false,
618 },
619 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000620 required: [
621 "deapexer",
622 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700623}
624
625python_test_host {
626 name: "releasetools_test",
627 defaults: ["releasetools_test_defaults"],
628 main: "test_utils.py",
629 version: {
630 py2: {
631 enabled: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700632 // When using embedded launcher, atest will try (but may fail) to load libc++.so from
633 // host, because the test executable won't be able to find the needed libs via its
634 // runpath.
Tao Baoca82fc92019-05-01 21:58:03 -0700635 embedded_launcher: false,
636 },
637 py3: {
638 enabled: false,
639 embedded_launcher: false,
640 },
641 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800642 test_options: {
643 unit_test: true,
644 },
Tao Baoca82fc92019-05-01 21:58:03 -0700645}
646
647python_test_host {
648 name: "releasetools_py3_test",
649 defaults: ["releasetools_test_defaults"],
650 main: "test_utils.py",
Kelvin Zhang553efca2021-02-01 17:25:41 -0500651 test_suites: ["general-tests"],
Tao Baoca82fc92019-05-01 21:58:03 -0700652 version: {
653 py2: {
654 enabled: false,
655 embedded_launcher: false,
656 },
657 py3: {
658 enabled: true,
659 embedded_launcher: false,
660 },
661 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800662 test_options: {
663 unit_test: true,
664 },
Tao Bao30e31142019-04-09 00:12:30 -0700665}