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 | |
| 15 | python_library_host { |
| 16 | name: "python-symbol", |
| 17 | srcs: [ |
| 18 | "symbol.py", |
| 19 | ], |
| 20 | version: { |
| 21 | py2: { |
| 22 | enabled: true, |
| 23 | }, |
| 24 | py3: { |
| 25 | enabled: true, |
| 26 | }, |
| 27 | }, |
| 28 | } |
| 29 | |
Andreas Gampe | 3ee240c | 2018-10-29 18:30:20 -0700 | [diff] [blame] | 30 | python_test_host { |
| 31 | name: "python-native_heapdump_viewer_test", |
| 32 | main: "native_heapdump_viewer_tests.py", |
| 33 | srcs: [ |
| 34 | "native_heapdump_viewer.py", |
| 35 | "native_heapdump_viewer_tests.py", |
| 36 | ], |
| 37 | test_config: "native_heapdump_viewer-tests.xml", |
| 38 | test_suites: ["general-tests"], |
| 39 | } |
Andreas Gampe | e547eb3 | 2018-10-29 18:31:37 -0700 | [diff] [blame] | 40 | |
| 41 | python_test_host { |
| 42 | name: "python-symbol_test", |
| 43 | main: "symbol.py", |
| 44 | // Would be nice to use the library above, but as it's single-source |
| 45 | // this doesn't work. |
| 46 | srcs: ["symbol.py"], |
| 47 | test_config: "symbol-tests.xml", |
| 48 | test_suites: ["general-tests"], |
| 49 | } |