1// Copyright (C) 2022 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_team: "trendy_team_fwk_uwb",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20python_defaults {
21    name: "CtsUwbMultiDevicePythonDefaults",
22    libs: [
23        "mobly",
24    ],
25    test_suites: [
26        "cts",
27        "general-tests",
28        "mts-uwb",
29        "mcts-uwb",
30    ],
31    version: {
32        py3: {
33            embedded_launcher: true,
34        },
35    },
36}
37
38python_test_host {
39    name: "CtsUwbMultiDeviceTestCase_UwbManagerTests",
40    main: "UwbManagerTests/uwb_manager_test.py",
41    srcs: [
42        "UwbManagerTests/uwb_manager_test.py",
43        "lib/uwb_base_test.py",
44        "lib/uwb_ranging_decorator.py",
45        "lib/uwb_ranging_params.py",
46        "test_utils/uwb_test_utils.py",
47    ],
48    test_config: "UwbManagerTests/AndroidTest.xml",
49    test_options: {
50        unit_test: false,
51    },
52    data: [
53        // Package the snippet with the mobly test
54        ":uwb_snippet",
55        "README.md",
56    ],
57    defaults: ["CtsUwbMultiDevicePythonDefaults"],
58}
59
60python_test_host {
61    name: "CtsUwbMultiDeviceTestCase_FiraRangingTests",
62    main: "FiraRangingTests/ranging_test.py",
63    srcs: [
64        "FiraRangingTests/ranging_test.py",
65        "lib/uwb_base_test.py",
66        "lib/uwb_ranging_decorator.py",
67        "lib/uwb_ranging_params.py",
68        "test_utils/uwb_test_utils.py",
69    ],
70    test_config: "FiraRangingTests/AndroidTest.xml",
71    test_options: {
72        unit_test: false,
73    },
74    data: [
75        // Package the snippet with the mobly test
76        ":uwb_snippet",
77        "README.md",
78    ],
79    defaults: ["CtsUwbMultiDevicePythonDefaults"],
80}
81