// Copyright (C) 2024 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package { default_applicable_licenses: ["Android-Apache-2.0"], default_team: "trendy_team_fwk_uwb", } python_defaults { name: "betocq_lib_defaults", pkg_path: "betocq", } python_defaults { name: "betocq_test_defaults", version: { py3: { embedded_launcher: false, }, }, } // Libraries python_library_host { name: "betocq_lib", defaults: ["betocq_lib_defaults"], srcs: [ "android_wifi_utils.py", "gms_auto_updates_util.py", "nc_constants.py", "nearby_connection_wrapper.py", "setup_utils.py", "iperf_utils.py", "version.py", ], libs: [ "mobly", ], } python_library_host { name: "base_betocq_suite", defaults: ["betocq_lib_defaults"], srcs: [ "base_betocq_suite.py", ], libs: [ "mobly", "pyyaml", ], } python_library_host { name: "d2d_performance_test_base", defaults: ["betocq_lib_defaults"], srcs: [ "d2d_performance_test_base.py", ], libs: [ "betocq_lib", "mobly", "betocq_nc_base_test", ], } python_library_host { name: "betocq_nc_base_test", defaults: ["betocq_lib_defaults"], srcs: [ "nc_base_test.py", ], libs: [ "betocq_lib", "mobly", "pyyaml", ], } python_library_host { name: "betocq_compound_tests", defaults: ["betocq_lib_defaults"], srcs: ["compound_tests/*.py"], libs: [ "betocq_lib", "d2d_performance_test_base", "mobly", ], } python_library_host { name: "betocq_directed_tests", defaults: ["betocq_lib_defaults"], srcs: ["directed_tests/*.py"], libs: [ "betocq_lib", "d2d_performance_test_base", "mobly", ], } python_library_host { name: "betocq_function_tests", defaults: ["betocq_lib_defaults"], srcs: ["function_tests/*.py"], libs: [ "betocq_lib", "mobly", ], } // TODO: Add modules for individual test classes. // Test suites python_test_host { name: "betocq_test_suite", defaults: ["betocq_test_defaults"], main: "betocq_test_suite.py", srcs: ["betocq_test_suite.py"], libs: [ "base_betocq_suite", "betocq_compound_tests", "betocq_directed_tests", "betocq_function_tests", "betocq_lib", "mobly", ], data: [ "cuj_and_test_config.yml", // package the snippets for atest ":nearby_snippet", ":nearby_snippet_2", ":nearby_snippet_3p", ], test_suites: [], test_options: { unit_test: false, // as Mobly tests require device(s) // This tag is used to enable the ATest Mobly runner tags: ["mobly"], }, }