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_binary_host { 20 name: "atest-py2", 21 main: "atest.py", 22 srcs: [ 23 "**/*.py", 24 ], 25 exclude_srcs: [ 26 "*_unittest.py", 27 "*/*_unittest.py", 28 "asuite_lib_test/*.py", 29 "proto/*_pb2.py", 30 "proto/__init__.py", 31 ], 32 libs: [ 33 "atest_py2_proto", 34 ], 35 data: [ 36 "tools/updatedb_darwin.sh", 37 ], 38 // Make atest's built name to atest-py2-dev 39 stem: "atest-py2-dev", 40 defaults: ["atest_py2_default"], 41 dist: { 42 targets: ["droidcore"], 43 }, 44} 45 46//python_test_host { 47// name: "atest-py2_unittests", 48// main: "atest_run_unittests.py", 49// pkg_path: "atest", 50// srcs: [ 51// "**/*.py", 52// ], 53// data: [ 54// "tools/updatedb_darwin.sh", 55// "unittest_data/**/*", 56// "unittest_data/**/.*", 57// ], 58// exclude_srcs: [ 59// "asuite_lib_test/*.py", 60// "proto/*_pb2.py", 61// "proto/__init__.py", 62// ], 63// libs: [ 64// "py-mock", 65// "atest_py2_proto", 66// ], 67// test_config: "atest_unittests.xml", 68// defaults: ["atest_py2_default"], 69//} 70 71python_library_host { 72 name: "atest_py2_proto", 73 defaults: ["atest_py2_default"], 74 srcs: [ 75 "proto/*.proto", 76 ], 77 proto: { 78 canonical_path_from_root: false, 79 }, 80} 81 82python_defaults { 83 name: "atest_py2_default", 84 version: { 85 py2: { 86 enabled: true, 87 embedded_launcher: false, 88 }, 89 py3: { 90 enabled: false, 91 embedded_launcher: false, 92 }, 93 }, 94} 95