1// Copyright (C) 2023 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_wifi_hal", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20python_library_host { 21 name: "wifi_aware_constants", 22 srcs: ["aware/constants.py"], 23} 24 25python_library_host { 26 name: "aware_lib_utils", 27 srcs: ["aware/aware_lib_utils.py"], 28 libs: ["wifi_aware_constants"], 29} 30 31python_library_host { 32 name: "wifi_test_utils", 33 srcs: ["wifi_test_utils.py"], 34} 35 36python_defaults { 37 name: "CtsWifiMultiDevicePythonDefaults", 38 libs: [ 39 "mobly", 40 ], 41 test_suites: [ 42 "cts", 43 "general-tests", 44 ], 45 version: { 46 py3: { 47 embedded_launcher: true, 48 }, 49 }, 50} 51 52python_test_host { 53 name: "CtsWifiAwareTestCases", 54 main: "aware/wifi_aware_test.py", 55 srcs: ["aware/wifi_aware_test.py"], 56 test_config: "aware/AndroidTest.xml", 57 device_common_data: [ 58 // Package the snippet with the mobly test 59 ":wifi_aware_snippet", 60 "requirements.txt", 61 ], 62 test_options: { 63 unit_test: false, 64 }, 65 defaults: ["CtsWifiMultiDevicePythonDefaults"], 66} 67 68python_test_host { 69 name: "WifiAwareManagerTestCases", 70 main: "aware/wifi_aware_manager_test.py", 71 srcs: ["aware/wifi_aware_manager_test.py"], 72 device_common_data: [":wifi_mobly_snippet"], 73 libs: [ 74 "aware_lib_utils", 75 "mobly", 76 "wifi_aware_constants", 77 "wifi_test_utils", 78 ], 79 test_suites: [ 80 "general-tests", 81 ], 82 test_options: { 83 unit_test: false, 84 tags: ["mobly"], 85 }, 86} 87 88python_library_host { 89 name: "wifi_direct_constants", 90 srcs: ["direct/constants.py"], 91} 92 93python_test_host { 94 name: "WifiDirectMoblyTests", 95 main: "direct/wifi_direct_test.py", 96 srcs: ["direct/wifi_direct_test.py"], 97 libs: [ 98 "mobly", 99 "wifi_direct_constants", 100 ], 101 device_common_data: [":wifi_direct_mobly_snippet"], 102 test_options: { 103 unit_test: false, 104 tags: ["mobly"], 105 }, 106 test_suites: ["general-tests"], 107 version: { 108 py3: { 109 embedded_launcher: true, 110 }, 111 }, 112} 113 114python_test_host { 115 name: "WifiDirectGoNegTests", 116 main: "direct/group_owner_negotiation_test.py", 117 srcs: ["direct/group_owner_negotiation_test.py"], 118 libs: [ 119 "mobly", 120 "wifi_direct_constants", 121 "wifi_test_utils", 122 ], 123 device_common_data: [":wifi_mobly_snippet"], 124 test_options: { 125 unit_test: false, 126 tags: ["mobly"], 127 }, 128 test_suites: ["general-tests"], 129 version: { 130 py3: { 131 embedded_launcher: true, 132 }, 133 }, 134} 135