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