• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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}
41
42// TODO(b/243602514): Python data should not be put in testcases dir.
43python_library_host {
44    name: "vts_vndk_abi_dump_lib",
45    data: [
46        ":vts_vndk_abi_dump_zip",
47    ],
48}
49
50python_test_host {
51    name: "vts_vndk_abi_test",
52    defaults: ["vts_vndk_default"],
53    main: "abi/vts_vndk_abi_test.py",
54    srcs: [
55        "abi/vts_vndk_abi_test.py",
56    ],
57    libs: [
58        "vts_vndk_abi_dump_lib",
59    ],
60    test_suites: [
61        "vts",
62    ],
63    test_config: "abi/vts_vndk_abi_test.xml",
64    test_options: {
65        unit_test: false,
66    },
67}
68
69python_test {
70    name: "vts_vndk_dependency_test",
71    // vts_vndk_dependency_test.xml refers to the file name. It needs to be
72    // different from the directory name so that the test runner can find a
73    // unique path.
74    stem: "vts_vndk_dependency_test_bin",
75    defaults: ["vts_vndk_default"],
76    main: "dependency/vts_vndk_dependency_test.py",
77    srcs: [
78        "dependency/vts_vndk_dependency_test.py",
79    ],
80    test_suites: [
81        "general-tests",
82        "vts",
83    ],
84    test_config: "dependency/vts_vndk_dependency_test.xml",
85    test_options: {
86        unit_test: false,
87    },
88}
89
90python_test_host {
91    name: "vts_vndk_files_test",
92    defaults: ["vts_vndk_default"],
93    main: "files/vts_vndk_files_test.py",
94    srcs: [
95        "files/vts_vndk_files_test.py",
96    ],
97    test_suites: [
98        "general-tests",
99        "vts",
100    ],
101    test_config: "files/vts_vndk_files_test.xml",
102    test_options: {
103        unit_test: false,
104    },
105}
106