Jim Tang | ec94b16 | 2018-05-04 07:17:23 +0000 | [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 | |
yangbill | 78ef63e | 2018-08-31 00:11:25 +0800 | [diff] [blame] | 15 | python_defaults { |
| 16 | name: "atest_lib_default", |
| 17 | pkg_path: "atest", |
| 18 | version: { |
| 19 | py2: { |
| 20 | enabled: false, |
| 21 | embedded_launcher: false, |
| 22 | }, |
| 23 | py3: { |
| 24 | enabled: true, |
| 25 | embedded_launcher: false, |
| 26 | }, |
| 27 | }, |
| 28 | } |
| 29 | |
Jim Tang | ec94b16 | 2018-05-04 07:17:23 +0000 | [diff] [blame] | 30 | python_binary_host { |
| 31 | name: "atest", |
| 32 | main: "atest.py", |
| 33 | srcs: [ |
| 34 | "**/*.py", |
| 35 | ], |
| 36 | exclude_srcs: [ |
| 37 | "*_unittest.py", |
| 38 | "*/*_unittest.py", |
| 39 | ], |
| 40 | defaults: ["py2_only"], |
| 41 | } |
yangbill | 78ef63e | 2018-08-31 00:11:25 +0800 | [diff] [blame] | 42 | |
| 43 | python_library_host { |
| 44 | name: "atest_module_info", |
| 45 | defaults: ["atest_lib_default"], |
| 46 | srcs: [ |
| 47 | "module_info.py", |
| 48 | "atest_utils.py", |
| 49 | "constants.py", |
| 50 | "constants_default.py" |
| 51 | ], |
| 52 | } |
Kevin Cheng | 5d6e157 | 2018-10-23 11:43:42 -0700 | [diff] [blame] | 53 | |
| 54 | // Move asuite_default and asuite_metrics to //tools/asuite when atest is |
| 55 | // running as a prebuilt. |
| 56 | python_defaults { |
| 57 | name: "asuite_default", |
| 58 | pkg_path: "asuite", |
| 59 | version: { |
| 60 | py2: { |
| 61 | enabled: true, |
| 62 | embedded_launcher: false, |
| 63 | }, |
| 64 | py3: { |
| 65 | enabled: true, |
| 66 | embedded_launcher: false, |
| 67 | }, |
| 68 | }, |
| 69 | } |
| 70 | |
| 71 | python_library_host { |
| 72 | name: "asuite_metrics", |
| 73 | defaults: ["asuite_default"], |
| 74 | srcs: [ |
| 75 | "asuite_metrics.py", |
| 76 | ], |
| 77 | } |