blob: b5ae009511b38d6481b7ac7d8c3207dc44f466aa [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
15python_defaults {
16 name: "releasetools_test_defaults",
17 version: {
18 py2: {
19 enabled: true,
20 embedded_launcher: false,
21 },
22 py3: {
23 enabled: false,
24 },
25 },
26}
27
28python_library_host {
29 name: "releasetools_lib",
30 defaults: ["releasetools_test_defaults"],
31 srcs: [
32 "add_img_to_target_files.py",
33 "apex_utils.py",
34 "blockimgdiff.py",
35 "build_image.py",
36 "build_super_image.py",
37 "check_ota_package_signature.py",
38 "check_target_files_signatures.py",
39 "common.py",
40 "edify_generator.py",
41 "img_from_target_files.py",
42 "make_recovery_patch.py",
43 "merge_target_files.py",
44 "ota_from_target_files.py",
45 "ota_package_parser.py",
46 "rangelib.py",
47 "sign_target_files_apks.py",
48 "sparse_img.py",
49 "target_files_diff.py",
50 "validate_target_files.py",
51 "verity_utils.py",
52 ],
53}
54
55python_test_host {
56 name: "releasetools_test",
57 defaults: ["releasetools_test_defaults"],
58 main: "test_utils.py",
59 srcs: [
60 "test_*.py",
61 ],
62 libs: [
63 "releasetools_lib",
64 ],
65 data: [
66 "testdata/*",
67 ],
68 required: [
69 "otatools",
70 ],
71 test_suites: ["general-tests"],
72}