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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_library_host { 20 name: "python-symbol", 21 srcs: [ 22 "symbol.py", 23 ], 24} 25 26python_test_host { 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} 35 36python_test_host { 37 name: "python-stack_core_test", 38 main: "stack_core.py", 39 srcs: [ 40 "example_crashes.py", 41 "stack_core.py", 42 ], 43 data: [ 44 ":llvm-tools", 45 ], 46 libs: ["python-symbol"], 47 test_options: { 48 unit_test: true, 49 }, 50} 51 52python_test_host { 53 name: "add3prf_test", 54 srcs: [ 55 "add3prf.py", 56 "add3prf_test.py", 57 ], 58 libs: [ 59 "pyfakefs", 60 ] 61} 62