1// Copyright 2020 Google Inc. All rights reserved. 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 { 20 name: "vts_vndk_utils", 21 host_supported: true, 22 pkg_path: "vts/testcases/vndk", 23 srcs: [ 24 "utils.py", 25 "golden/vndk_data.py", 26 ], 27 data: [ 28 ":vndk_lib_lists", 29 ":vndk_lib_extra_lists" 30 ], 31} 32 33python_defaults { 34 name: "vts_vndk_default", 35 libs: [ 36 "vndk_utils", 37 "vts_vndk_utils", 38 ], 39 version: { 40 py3: { 41 embedded_launcher: true, 42 } 43 } 44} 45 46// TODO(b/243602514): Python data should not be put in testcases dir. 47python_library_host { 48 name: "vts_vndk_abi_dump_lib", 49 data: [ 50 ":vts_vndk_abi_dump_zip", 51 ], 52} 53 54python_test_host { 55 name: "vts_vndk_abi_test", 56 defaults: ["vts_vndk_default"], 57 main: "abi/vts_vndk_abi_test.py", 58 srcs: [ 59 "abi/vts_vndk_abi_test.py", 60 ], 61 libs: [ 62 "vts_vndk_abi_dump_lib", 63 ], 64 test_suites: [ 65 "vts", 66 ], 67 test_config: "abi/vts_vndk_abi_test.xml", 68 test_options: { 69 unit_test: false, 70 }, 71} 72 73python_test { 74 name: "vts_vndk_dependency_test", 75 // vts_vndk_dependency_test.xml refers to the file name. It needs to be 76 // different from the directory name so that the test runner can find a 77 // unique path. 78 stem: "vts_vndk_dependency_test_bin", 79 defaults: ["vts_vndk_default"], 80 main: "dependency/vts_vndk_dependency_test.py", 81 srcs: [ 82 "dependency/vts_vndk_dependency_test.py", 83 ], 84 test_suites: [ 85 "general-tests", 86 "vts", 87 ], 88 test_config: "dependency/vts_vndk_dependency_test.xml", 89 test_options: { 90 unit_test: false, 91 }, 92} 93 94python_test_host { 95 name: "vts_vndk_files_test", 96 defaults: ["vts_vndk_default"], 97 main: "files/vts_vndk_files_test.py", 98 srcs: [ 99 "files/vts_vndk_files_test.py", 100 ], 101 test_suites: [ 102 "general-tests", 103 "vts", 104 ], 105 test_config: "files/vts_vndk_files_test.xml", 106 test_options: { 107 unit_test: false, 108 }, 109} 110