blob: fc588e437d2186be905542fb0b57d7827e05b5c8 [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",
Jaegeuk Kim1f50a362021-06-08 18:24:46 -070062 "mkf2fsuserimg.sh",
63 "fsck.f2fs",
Tao Bao3c7b2a62019-08-07 12:24:20 -070064 ],
65}
66
67python_defaults {
68 name: "releasetools_build_super_image_defaults",
69 srcs: [
70 "build_super_image.py",
71 ],
72 libs: [
73 "releasetools_common",
74 ],
75}
76
77python_defaults {
78 name: "releasetools_img_from_target_files_defaults",
79 srcs: [
80 "img_from_target_files.py",
81 ],
82 libs: [
83 "releasetools_build_super_image",
84 "releasetools_common",
85 ],
86}
87
88python_defaults {
Yifan Honge3ba82c2019-08-21 13:29:30 -070089 name: "releasetools_check_target_files_vintf_defaults",
90 srcs: [
91 "check_target_files_vintf.py",
92 ],
93 libs: [
94 "releasetools_common",
95 ],
96 required: [
97 "checkvintf",
98 ],
99}
100
Tianjiea2076132020-08-19 17:25:32 -0700101python_library_host {
102 name: "ota_metadata_proto",
103 version: {
104 py2: {
105 enabled: true,
106 },
107 py3: {
108 enabled: true,
109 },
110 },
111 srcs: [
112 "ota_metadata.proto",
113 ],
114 proto: {
115 canonical_path_from_root: false,
116 },
117}
118
Kelvin Zhanga3a74b62021-05-14 17:18:43 -0400119cc_library_static {
120 name: "ota_metadata_proto_cc",
121 srcs: [
122 "ota_metadata.proto",
123 ],
124 host_supported: true,
125 recovery_available: true,
126 proto: {
127 canonical_path_from_root: false,
128 type: "lite",
129 export_proto_headers: true,
130 },
131}
132
Kelvin Zhang2b6a9c32021-04-12 17:24:26 -0400133java_library_static {
134 name: "ota_metadata_proto_java",
135 host_supported: true,
136 proto: {
137 type: "nano",
138 },
139 srcs: ["ota_metadata.proto"],
140 sdk_version: "9",
141 target: {
142 android: {
143 jarjar_rules: "jarjar-rules.txt",
144 },
145 host: {
146 static_libs: ["libprotobuf-java-nano"],
147 },
148 },
149 visibility: ["//frameworks/base:__subpackages__"]
150}
151
Yifan Honge3ba82c2019-08-21 13:29:30 -0700152python_defaults {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700153 name: "releasetools_ota_from_target_files_defaults",
154 srcs: [
155 "edify_generator.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400156 "non_ab_ota.py",
Tianjiea2076132020-08-19 17:25:32 -0700157 "ota_from_target_files.py",
Kelvin Zhangcff4d762020-07-29 16:37:51 -0400158 "ota_utils.py",
Tianjiea2076132020-08-19 17:25:32 -0700159 "target_files_diff.py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700160 ],
161 libs: [
Tianjiea2076132020-08-19 17:25:32 -0700162 "ota_metadata_proto",
Yifan Hong9276cf02019-08-21 16:37:04 -0700163 "releasetools_check_target_files_vintf",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700164 "releasetools_common",
165 "releasetools_verity_utils",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000166 "apex_manifest",
Kelvin Zhang766eea72021-06-03 09:36:08 -0400167 "care_map_proto_py",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700168 ],
169 required: [
170 "brillo_update_payload",
Yifan Hong09298552019-09-04 11:49:01 -0700171 "checkvintf",
jiajia tangf3f842b2021-03-17 21:49:44 +0800172 "minigzip",
Yifan Hong125d0b62020-09-24 17:07:03 -0700173 "lz4",
174 "toybox",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000175 "unpack_bootimg",
176 "deapexer",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700177 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000178 target: {
179 darwin: {
180 // required module "brillo_update_payload" is disabled on darwin
181 enabled: false,
182 },
183 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700184}
185
186//
187// Host libraries.
188//
189
Tao Bao30e31142019-04-09 00:12:30 -0700190python_defaults {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700191 name: "releasetools_library_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700192 version: {
193 py2: {
194 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700195 },
196 py3: {
Tao Baoca82fc92019-05-01 21:58:03 -0700197 enabled: true,
Tao Bao30e31142019-04-09 00:12:30 -0700198 },
199 },
200}
201
202python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700203 name: "releasetools_add_img_to_target_files",
204 defaults: [
205 "releasetools_library_defaults",
206 "releasetools_add_img_to_target_files_defaults",
207 ],
208}
209
210python_library_host {
211 name: "releasetools_apex_utils",
Tao Bao005305a2019-08-05 13:00:44 -0700212 defaults: ["releasetools_library_defaults"],
213 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700214 "apex_utils.py",
215 ],
216 libs: [
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000217 "apex_manifest",
218 "ota_metadata_proto",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700219 "releasetools_common",
220 ],
221}
222
223python_library_host {
224 name: "releasetools_build_image",
225 defaults: [
226 "releasetools_library_defaults",
227 "releasetools_build_image_defaults",
228 ],
229}
230
231python_library_host {
232 name: "releasetools_build_super_image",
233 defaults: [
234 "releasetools_library_defaults",
235 "releasetools_build_super_image_defaults",
Tao Bao005305a2019-08-05 13:00:44 -0700236 ],
237}
238
239python_library_host {
Yifan Hongccb86fe2019-08-22 15:52:26 -0700240 name: "releasetools_check_target_files_vintf",
241 defaults: [
242 "releasetools_library_defaults",
243 "releasetools_check_target_files_vintf_defaults",
244 ],
245}
246
247python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700248 name: "releasetools_common",
249 defaults: ["releasetools_library_defaults"],
Tao Bao30e31142019-04-09 00:12:30 -0700250 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700251 "blockimgdiff.py",
Tao Bao30e31142019-04-09 00:12:30 -0700252 "common.py",
Tianjie Xu41976c72019-07-03 13:57:01 -0700253 "images.py",
Tao Bao30e31142019-04-09 00:12:30 -0700254 "rangelib.py",
Tao Bao30e31142019-04-09 00:12:30 -0700255 "sparse_img.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700256 ],
257 // Only the tools that are referenced directly are listed as required modules. For example,
258 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].
259 required: [
changho.shin0f125362019-07-08 10:59:00 +0900260 "aapt2",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700261 "boot_signer",
262 "brotli",
263 "bsdiff",
264 "imgdiff",
265 "minigzip",
J. Avila98cd4cc2020-06-10 20:09:10 +0000266 "lz4",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700267 "mkbootfs",
Luca Stefani3e4b4482020-03-27 14:00:23 +0100268 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800269 "toybox",
270 "unpack_bootimg",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700271 ],
272}
273
274python_library_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700275 name: "releasetools_img_from_target_files",
276 defaults: [
277 "releasetools_library_defaults",
278 "releasetools_img_from_target_files_defaults",
279 ],
280}
281
282python_library_host {
283 name: "releasetools_ota_from_target_files",
284 defaults: [
285 "releasetools_library_defaults",
286 "releasetools_ota_from_target_files_defaults",
287 ],
288}
289
290python_library_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700291 name: "releasetools_verity_utils",
292 defaults: ["releasetools_library_defaults"],
293 srcs: [
Tao Bao30e31142019-04-09 00:12:30 -0700294 "verity_utils.py",
295 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700296 required: [
297 "append2simg",
298 "build_verity_metadata",
299 "build_verity_tree",
300 "fec",
301 ],
302}
303
Tao Bao3c7b2a62019-08-07 12:24:20 -0700304//
305// Host binaries.
306//
307
Tao Bao2bbb07c2019-05-07 13:12:21 -0700308python_defaults {
309 name: "releasetools_binary_defaults",
310 version: {
311 py2: {
312 enabled: true,
313 embedded_launcher: true,
314 },
315 py3: {
316 enabled: false,
317 embedded_launcher: false,
318 },
319 },
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900320 // TODO (b/140144201) Build imgdiff from releasetools_common
321 required: [
322 "aapt2",
323 "boot_signer",
324 "brotli",
325 "bsdiff",
Mohammad Samiul Islamf4909b42021-02-01 20:43:41 +0000326 "deapexer",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900327 "imgdiff",
328 "minigzip",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000329 "lz4",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900330 "mkbootfs",
Luca Stefanie0fc4ca2020-09-12 06:08:16 +0000331 "signapk",
Yifan Hong14a87122021-01-12 13:26:25 -0800332 "toybox",
333 "unpack_bootimg",
Kiyoung Kim0a8d2622020-03-24 09:36:03 +0900334 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700335}
336
337python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700338 name: "add_img_to_target_files",
339 defaults: [
340 "releasetools_binary_defaults",
341 "releasetools_add_img_to_target_files_defaults",
342 ],
343}
344
345python_binary_host {
Tao Bao2bbb07c2019-05-07 13:12:21 -0700346 name: "build_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700347 defaults: [
348 "releasetools_binary_defaults",
349 "releasetools_build_image_defaults",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700350 ],
351}
352
353python_binary_host {
354 name: "build_super_image",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700355 defaults: [
356 "releasetools_binary_defaults",
357 "releasetools_build_super_image_defaults",
358 ],
359}
360
361python_binary_host {
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000362 name: "check_partition_sizes",
363 srcs: [
364 "check_partition_sizes.py",
365 ],
366 libs: [
367 "releasetools_common",
368 ],
369 defaults: [
370 "releasetools_binary_defaults",
371 ],
372}
373
374python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700375 name: "check_ota_package_signature",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700376 defaults: ["releasetools_binary_defaults"],
377 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700378 "check_ota_package_signature.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700379 ],
Tao Bao2bbb07c2019-05-07 13:12:21 -0700380 libs: [
381 "releasetools_common",
382 ],
Tao Bao3c7b2a62019-08-07 12:24:20 -0700383 required: [
384 "delta_generator",
385 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000386 target: {
387 darwin: {
388 // required module "delta_generator" is disabled on darwin
389 enabled: false,
390 },
391 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700392}
393
394python_binary_host {
395 name: "check_target_files_signatures",
396 defaults: ["releasetools_binary_defaults"],
397 srcs: [
398 "check_target_files_signatures.py",
399 ],
400 libs: [
401 "releasetools_common",
402 ],
403 required: [
Elliott Hughes16a5cac2021-05-14 15:27:23 -0700404 "aapt2",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700405 ],
406}
407
408python_binary_host {
Yifan Honge3ba82c2019-08-21 13:29:30 -0700409 name: "check_target_files_vintf",
410 defaults: [
411 "releasetools_binary_defaults",
412 "releasetools_check_target_files_vintf_defaults"
413 ],
414}
415
416python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700417 name: "img_from_target_files",
418 defaults: [
419 "releasetools_binary_defaults",
420 "releasetools_img_from_target_files_defaults",
421 ],
Tao Bao30e31142019-04-09 00:12:30 -0700422}
423
Daniel Normanb8d52a22020-10-26 17:55:00 -0700424python_defaults {
425 name: "releasetools_find_shareduid_violation_defaults",
426 srcs: [
427 "find_shareduid_violation.py",
428 ],
429 libs: [
430 "releasetools_common",
431 ],
432}
433
434python_binary_host {
435 name: "find_shareduid_violation",
436 defaults: [
437 "releasetools_binary_defaults",
438 "releasetools_find_shareduid_violation_defaults",
439 ],
440}
441
442python_library_host {
443 name: "releasetools_find_shareduid_violation",
444 defaults: [
445 "releasetools_find_shareduid_violation_defaults",
446 "releasetools_library_defaults",
447 ],
448}
449
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700450python_binary_host {
Tao Baoe11a4602019-08-06 23:21:23 -0700451 name: "make_recovery_patch",
452 defaults: ["releasetools_binary_defaults"],
453 srcs: [
454 "make_recovery_patch.py",
455 ],
456 libs: [
457 "releasetools_common",
458 ],
459}
460
461python_binary_host {
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700462 name: "merge_builds",
463 defaults: ["releasetools_binary_defaults"],
464 srcs: [
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700465 "merge_builds.py",
466 ],
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700467 libs: [
Tao Bao005305a2019-08-05 13:00:44 -0700468 "releasetools_build_super_image",
Daniel Normanbfc51ef2019-07-24 14:34:54 -0700469 "releasetools_common",
470 ],
471}
472
Tao Bao8821d642019-08-05 12:05:45 -0700473python_binary_host {
Tao Bao3c7b2a62019-08-07 12:24:20 -0700474 name: "merge_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700475 defaults: ["releasetools_binary_defaults"],
476 srcs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700477 "merge_target_files.py",
Tao Bao8821d642019-08-05 12:05:45 -0700478 ],
479 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700480 "releasetools_add_img_to_target_files",
481 "releasetools_build_super_image",
Yifan Hongade0d3f2019-08-21 16:37:11 -0700482 "releasetools_check_target_files_vintf",
Tao Bao8821d642019-08-05 12:05:45 -0700483 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700484 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700485 "releasetools_img_from_target_files",
486 "releasetools_ota_from_target_files",
Tao Bao8821d642019-08-05 12:05:45 -0700487 ],
Yifan Hong09298552019-09-04 11:49:01 -0700488 required: [
489 "checkvintf",
Daniel Norman21c34f72020-11-11 17:25:50 -0800490 "host_init_verifier",
Daniel Norman48603ff2021-02-22 15:15:24 -0800491 "secilc",
Yifan Hong09298552019-09-04 11:49:01 -0700492 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000493 target: {
494 darwin: {
495 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
496 enabled: false,
497 },
498 },
Tao Bao3c7b2a62019-08-07 12:24:20 -0700499}
500
501python_binary_host {
502 name: "ota_from_target_files",
503 defaults: [
504 "releasetools_binary_defaults",
505 "releasetools_ota_from_target_files_defaults",
506 ],
507}
508
509python_binary_host {
510 name: "ota_package_parser",
511 defaults: ["releasetools_binary_defaults"],
512 srcs: [
513 "ota_package_parser.py",
514 "rangelib.py",
Tao Bao8821d642019-08-05 12:05:45 -0700515 ],
516}
517
Tao Baoe11a4602019-08-06 23:21:23 -0700518python_binary_host {
519 name: "sparse_img",
520 defaults: ["releasetools_binary_defaults"],
521 srcs: [
522 "rangelib.py",
523 "sparse_img.py",
524 ],
Tao Baoe11a4602019-08-06 23:21:23 -0700525}
526
Tao Bao3c7b2a62019-08-07 12:24:20 -0700527python_binary_host {
528 name: "sign_apex",
529 defaults: ["releasetools_binary_defaults"],
530 srcs: [
531 "sign_apex.py",
532 ],
533 libs: [
534 "releasetools_apex_utils",
535 "releasetools_common",
536 ],
537}
538
539python_binary_host {
540 name: "sign_target_files_apks",
541 defaults: ["releasetools_binary_defaults"],
542 srcs: [
543 "sign_target_files_apks.py",
544 ],
545 libs: [
546 "releasetools_add_img_to_target_files",
547 "releasetools_apex_utils",
548 "releasetools_common",
549 ],
550}
551
552python_binary_host {
553 name: "validate_target_files",
554 defaults: ["releasetools_binary_defaults"],
555 srcs: [
556 "validate_target_files.py",
557 ],
558 libs: [
559 "releasetools_common",
560 ],
561}
562
Jiyong Parkb92b8f42021-03-15 23:13:42 +0900563python_binary_host {
564 name: "verity_utils",
565 defaults: ["releasetools_binary_defaults"],
566 srcs: [
567 "verity_utils.py",
568 ],
569 libs: [
570 "releasetools_common",
571 ],
572 required: [
573 "append2simg",
574 "build_verity_metadata",
575 "build_verity_tree",
576 "fec",
577 ],
578}
579
Tao Bao3c7b2a62019-08-07 12:24:20 -0700580//
581// Tests.
582//
583
Tao Baoca82fc92019-05-01 21:58:03 -0700584python_defaults {
585 name: "releasetools_test_defaults",
Tao Bao30e31142019-04-09 00:12:30 -0700586 srcs: [
Tao Bao2bbb07c2019-05-07 13:12:21 -0700587 "check_ota_package_signature.py",
Yifan Hong3a7c2ef2019-11-01 18:23:19 +0000588 "check_partition_sizes.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700589 "check_target_files_signatures.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700590 "make_recovery_patch.py",
591 "merge_target_files.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700592 "ota_package_parser.py",
593 "sign_apex.py",
594 "sign_target_files_apks.py",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700595 "validate_target_files.py",
596
Tao Bao30e31142019-04-09 00:12:30 -0700597 "test_*.py",
598 ],
599 libs: [
Tao Bao3c7b2a62019-08-07 12:24:20 -0700600 "releasetools_add_img_to_target_files",
601 "releasetools_apex_utils",
602 "releasetools_build_image",
Tao Bao005305a2019-08-05 13:00:44 -0700603 "releasetools_build_super_image",
Yifan Hongccb86fe2019-08-22 15:52:26 -0700604 "releasetools_check_target_files_vintf",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700605 "releasetools_common",
Daniel Normanb8d52a22020-10-26 17:55:00 -0700606 "releasetools_find_shareduid_violation",
Tao Bao3c7b2a62019-08-07 12:24:20 -0700607 "releasetools_img_from_target_files",
608 "releasetools_ota_from_target_files",
Tao Bao2bbb07c2019-05-07 13:12:21 -0700609 "releasetools_verity_utils",
Tao Bao30e31142019-04-09 00:12:30 -0700610 ],
611 data: [
Yifan Hongccb86fe2019-08-22 15:52:26 -0700612 "testdata/**/*",
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000613 ":com.android.apex.compressed.v1",
614 ":com.android.apex.compressed.v1_original",
Tao Bao30e31142019-04-09 00:12:30 -0700615 ],
Yo Chiang096c5152020-08-07 04:22:18 +0000616 target: {
617 darwin: {
618 // libs dep "releasetools_ota_from_target_files" is disabled on darwin
619 enabled: false,
620 },
621 },
Mohammad Samiul Islam9fd58862021-01-06 13:33:25 +0000622 required: [
623 "deapexer",
624 ],
Tao Baoca82fc92019-05-01 21:58:03 -0700625}
626
627python_test_host {
628 name: "releasetools_test",
629 defaults: ["releasetools_test_defaults"],
630 main: "test_utils.py",
631 version: {
632 py2: {
633 enabled: true,
Tao Bao2bbb07c2019-05-07 13:12:21 -0700634 // When using embedded launcher, atest will try (but may fail) to load libc++.so from
635 // host, because the test executable won't be able to find the needed libs via its
636 // runpath.
Tao Baoca82fc92019-05-01 21:58:03 -0700637 embedded_launcher: false,
638 },
639 py3: {
640 enabled: false,
641 embedded_launcher: false,
642 },
643 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800644 test_options: {
645 unit_test: true,
646 },
Tao Baoca82fc92019-05-01 21:58:03 -0700647}
648
649python_test_host {
650 name: "releasetools_py3_test",
651 defaults: ["releasetools_test_defaults"],
652 main: "test_utils.py",
Kelvin Zhang553efca2021-02-01 17:25:41 -0500653 test_suites: ["general-tests"],
Tao Baoca82fc92019-05-01 21:58:03 -0700654 version: {
655 py2: {
656 enabled: false,
657 embedded_launcher: false,
658 },
659 py3: {
660 enabled: true,
661 embedded_launcher: false,
662 },
663 },
Julien Desprez6d9e78f2020-12-21 13:56:05 -0800664 test_options: {
665 unit_test: true,
666 },
Tao Bao30e31142019-04-09 00:12:30 -0700667}