Andreas Gampe | 5bec214 | 2018-05-09 15:11:06 -0700 | [diff] [blame] | 1 | // 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 Badour | f7cf305 | 2021-02-12 17:13:45 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Andreas Gampe | 5bec214 | 2018-05-09 15:11:06 -0700 | [diff] [blame] | 19 | python_library_host { |
| 20 | name: "python-symbol", |
| 21 | srcs: [ |
| 22 | "symbol.py", |
| 23 | ], |
Andreas Gampe | 5bec214 | 2018-05-09 15:11:06 -0700 | [diff] [blame] | 24 | } |
| 25 | |
Andreas Gampe | 3ee240c | 2018-10-29 18:30:20 -0700 | [diff] [blame] | 26 | python_test_host { |
Andreas Gampe | e547eb3 | 2018-10-29 18:31:37 -0700 | [diff] [blame] | 27 | 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 Weksteen | 8da4911 | 2021-02-19 11:59:49 +0100 | [diff] [blame] | 35 | |
| 36 | python_test_host { |
Krzysztof Kosiński | b136111 | 2021-03-11 18:05:01 -0800 | [diff] [blame] | 37 | name: "python-stack_core_test", |
| 38 | main: "stack_core.py", |
| 39 | srcs: [ |
| 40 | "example_crashes.py", |
| 41 | "stack_core.py", |
| 42 | ], |
Julien Desprez | fd06c73 | 2021-04-20 14:31:19 -0700 | [diff] [blame] | 43 | data: [ |
| 44 | ":llvm-tools", |
| 45 | ], |
Krzysztof Kosiński | b136111 | 2021-03-11 18:05:01 -0800 | [diff] [blame] | 46 | libs: ["python-symbol"], |
Julien Desprez | fd06c73 | 2021-04-20 14:31:19 -0700 | [diff] [blame] | 47 | test_options: { |
| 48 | unit_test: true, |
| 49 | }, |
Krzysztof Kosiński | b136111 | 2021-03-11 18:05:01 -0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | python_test_host { |
Thiébaud Weksteen | 8da4911 | 2021-02-19 11:59:49 +0100 | [diff] [blame] | 53 | name: "add3prf_test", |
| 54 | srcs: [ |
| 55 | "add3prf.py", |
| 56 | "add3prf_test.py", |
| 57 | ], |
| 58 | libs: [ |
| 59 | "pyfakefs", |
| 60 | ] |
| 61 | } |
Nikita Putikhin | 9aa3bc6 | 2023-05-19 20:39:51 +0000 | [diff] [blame] | 62 | |
| 63 | python_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 | } |