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 "platform-test-py-annotations", 25 ], 26 test_suites: [ 27 "cts", 28 "general-tests", 29 "mts-uwb", 30 "mcts-uwb", 31 ], 32} 33 34python_test_host { 35 name: "CtsUwbMultiDeviceTestCase_UwbManagerTests", 36 main: "UwbManagerTests/uwb_manager_test.py", 37 srcs: [ 38 "UwbManagerTests/uwb_manager_test.py", 39 "lib/uwb_base_test.py", 40 "lib/uwb_ranging_decorator.py", 41 "lib/uwb_ranging_params.py", 42 "test_utils/uwb_test_utils.py", 43 ], 44 test_config: "UwbManagerTests/AndroidTest.xml", 45 test_options: { 46 unit_test: false, 47 }, 48 device_common_data: [ 49 // Package the snippet with the mobly test 50 ":uwb_snippet", 51 "README.md", 52 ], 53 defaults: ["CtsUwbMultiDevicePythonDefaults"], 54} 55 56python_test_host { 57 name: "CtsUwbMultiDeviceTestCase_FiraRangingTests", 58 main: "FiraRangingTests/ranging_test.py", 59 srcs: [ 60 "FiraRangingTests/ranging_test.py", 61 "lib/uwb_base_test.py", 62 "lib/uwb_ranging_decorator.py", 63 "lib/uwb_ranging_params.py", 64 "test_utils/uwb_test_utils.py", 65 ], 66 test_config: "FiraRangingTests/AndroidTest.xml", 67 test_options: { 68 unit_test: false, 69 }, 70 device_common_data: [ 71 // Package the snippet with the mobly test 72 ":uwb_snippet", 73 "README.md", 74 ], 75 defaults: ["CtsUwbMultiDevicePythonDefaults"], 76} 77 78// Modules for CTS-Verifier (cts-v-host) 79python_test_host { 80 name: "CtsUwbMultiDeviceUwbManagerTests", 81 main: "UwbManagerTests/uwb_manager_test.py", 82 srcs: [ 83 "UwbManagerTests/uwb_manager_test.py", 84 "lib/uwb_base_test.py", 85 "lib/uwb_ranging_decorator.py", 86 "lib/uwb_ranging_params.py", 87 "test_utils/uwb_test_utils.py", 88 ], 89 test_suites: [ 90 "cts-v-host", 91 ], 92 test_config: "UwbManagerTests/AndroidTestV2.xml", 93 test_options: { 94 runner: "mobly", 95 unit_test: false, 96 }, 97 device_common_data: [ 98 // Package the snippet with the mobly test 99 ":uwb_snippet", 100 "README.md", 101 ], 102 defaults: ["CtsUwbMultiDevicePythonDefaults"], 103} 104 105python_test_host { 106 name: "CtsUwbMultiDeviceFiraRangingTests", 107 main: "FiraRangingTests/ranging_test.py", 108 srcs: [ 109 "FiraRangingTests/ranging_test.py", 110 "lib/uwb_base_test.py", 111 "lib/uwb_ranging_decorator.py", 112 "lib/uwb_ranging_params.py", 113 "test_utils/uwb_test_utils.py", 114 ], 115 test_suites: [ 116 "cts-v-host", 117 ], 118 test_config: "FiraRangingTests/AndroidTestV2.xml", 119 test_options: { 120 runner: "mobly", 121 unit_test: false, 122 }, 123 device_common_data: [ 124 // Package the snippet with the mobly test 125 ":uwb_snippet", 126 "README.md", 127 ], 128 defaults: ["CtsUwbMultiDevicePythonDefaults"], 129} 130