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-native_heapdump_viewer_test", 28 main: "native_heapdump_viewer_tests.py", 29 srcs: [ 30 "native_heapdump_viewer.py", 31 "native_heapdump_viewer_tests.py", 32 ], 33 test_config: "native_heapdump_viewer-tests.xml", 34 test_suites: ["general-tests"], 35} 36 37python_test_host { 38 name: "python-symbol_test", 39 main: "symbol.py", 40 // Would be nice to use the library above, but as it's single-source 41 // this doesn't work. 42 srcs: ["symbol.py"], 43 test_config: "symbol-tests.xml", 44 test_suites: ["general-tests"], 45} 46 47python_test_host { 48 name: "python-stack_core_test", 49 main: "stack_core.py", 50 srcs: [ 51 "example_crashes.py", 52 "stack_core.py", 53 ], 54 libs: ["python-symbol"], 55 test_suites: ["general-tests"], 56} 57 58python_test_host { 59 name: "add3prf_test", 60 srcs: [ 61 "add3prf.py", 62 "add3prf_test.py", 63 ], 64 libs: [ 65 "pyfakefs", 66 ] 67} 68