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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_defaults { 20 name: "CtsWifiMultiDevicePythonDefaults", 21 libs: [ 22 "mobly", 23 ], 24 test_suites: [ 25 "cts", 26 "general-tests", 27 ], 28 version: { 29 py3: { 30 embedded_launcher: true, 31 }, 32 }, 33} 34 35python_test_host { 36 name: "CtsWifiAwareTestCases", 37 main: "aware/wifi_aware_test.py", 38 srcs: ["aware/wifi_aware_test.py"], 39 test_config: "aware/AndroidTest.xml", 40 data: [ 41 // Package the snippet with the mobly test 42 ":wifi_aware_snippet", 43 "requirements.txt", 44 ], 45 test_options: { 46 unit_test: false, 47 }, 48 defaults: ["CtsWifiMultiDevicePythonDefaults"], 49} 50 51python_library_host { 52 name: "wifi_direct_constants", 53 srcs: ["direct/constants.py"], 54} 55 56python_test_host { 57 name: "WifiDirectMoblyTests", 58 main: "direct/wifi_direct_test.py", 59 srcs: ["direct/wifi_direct_test.py"], 60 libs: [ 61 "mobly", 62 "wifi_direct_constants", 63 ], 64 data: [":wifi_direct_mobly_snippet"], 65 test_options: { 66 unit_test: false, 67 tags: ["mobly"], 68 }, 69 test_suites: ["general-tests"], 70 version: { 71 py3: { 72 embedded_launcher: true, 73 }, 74 }, 75} 76 77