blob: 8cf3faba35b3a6165a932487b30b54e03ceb3b4d [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",
Tao Baoc9c1b862019-06-26 14:54:14 -070047 "sign_apex.py",
Tao Bao30e31142019-04-09 00:12:30 -070048 "sign_target_files_apks.py",
49 "sparse_img.py",
50 "target_files_diff.py",
51 "validate_target_files.py",
52 "verity_utils.py",
53 ],
54}
55
56python_test_host {
57 name: "releasetools_test",
58 defaults: ["releasetools_test_defaults"],
59 main: "test_utils.py",
60 srcs: [
61 "test_*.py",
62 ],
63 libs: [
64 "releasetools_lib",
65 ],
66 data: [
67 "testdata/*",
68 ],
69 required: [
70 "otatools",
71 ],
72 test_suites: ["general-tests"],
73}