blob: 45011d6ebde68293d03d136f0c7c290ec8bc2cb8 [file] [log] [blame]
Andreas Gampe5bec2142018-05-09 15:11:06 -07001// Copyright (C) 2018 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
Bob Badourf7cf3052021-02-12 17:13:45 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Andreas Gampe5bec2142018-05-09 15:11:06 -070019python_library_host {
20 name: "python-symbol",
21 srcs: [
22 "symbol.py",
23 ],
Andreas Gampe5bec2142018-05-09 15:11:06 -070024}
25
Andreas Gampe3ee240c2018-10-29 18:30:20 -070026python_test_host {
Andreas Gampee547eb32018-10-29 18:31:37 -070027 name: "python-symbol_test",
28 main: "symbol.py",
29 // Would be nice to use the library above, but as it's single-source
30 // this doesn't work.
31 srcs: ["symbol.py"],
32 test_config: "symbol-tests.xml",
33 test_suites: ["general-tests"],
34}
Thiébaud Weksteen8da49112021-02-19 11:59:49 +010035
36python_test_host {
Krzysztof Kosińskib1361112021-03-11 18:05:01 -080037 name: "python-stack_core_test",
38 main: "stack_core.py",
39 srcs: [
40 "example_crashes.py",
41 "stack_core.py",
42 ],
Julien Desprezfd06c732021-04-20 14:31:19 -070043 data: [
44 ":llvm-tools",
45 ],
Krzysztof Kosińskib1361112021-03-11 18:05:01 -080046 libs: ["python-symbol"],
Julien Desprezfd06c732021-04-20 14:31:19 -070047 test_options: {
48 unit_test: true,
49 },
Krzysztof Kosińskib1361112021-03-11 18:05:01 -080050}
51
52python_test_host {
Thiébaud Weksteen8da49112021-02-19 11:59:49 +010053 name: "add3prf_test",
54 srcs: [
55 "add3prf.py",
56 "add3prf_test.py",
57 ],
58 libs: [
59 "pyfakefs",
60 ]
61}
Nikita Putikhin9aa3bc62023-05-19 20:39:51 +000062
63python_test_host {
64 name: "gdbclient_test",
65 srcs: [
66 "gdbclient.py",
67 "gdbclient_test.py",
68 ],
69 libs: [
70 "adb_py",
71 "gdbrunner",
72 ],
73 test_options: {
74 unit_test: true,
75 },
76 version: {
77 py3: {
78 embedded_launcher: true,
79 },
80 },
81}