1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_bt_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_bt_license"], 8} 9 10android_test_helper_app { 11 name: "BumbleBluetoothTestsApp", 12 defaults: ["framework-bluetooth-tests-defaults"], 13 14 min_sdk_version: "current", 15 target_sdk_version: "current", 16 libs: [ 17 "android.test.base", 18 "libprotobuf-java-micro", 19 ], 20 21 static_libs: [ 22 "TestParameterInjector", 23 "androidx.core_core", 24 "androidx.test.espresso.intents", 25 "androidx.test.ext.junit", 26 "androidx.test.ext.truth", 27 "androidx.test.rules", 28 "bluetooth-test-util-lib", 29 "bluetooth_flags_java_lib", 30 "compatibility-device-util-axt", 31 "flag-junit", 32 "grpc-java-lite", 33 "grpc-java-okhttp-client-lite", 34 "mockito-kotlin2", 35 "opencensus-java-contrib-grpc-metrics", 36 "pandora_experimental-grpc-java", 37 "pandora_experimental-proto-java", 38 "truth-java8-extension", 39 ], 40 41 // Include all test java and kotlin files. 42 srcs: [ 43 "src/**/*.java", 44 "src/**/*.kt", 45 ], 46} 47 48// This empty test host is needed for building required host binary 49// "bumble_pandora_server" and include it in test zip 50java_test_host { 51 name: "BumbleBluetoothTests", 52 53 libs: [ 54 "tradefed", 55 ], 56 57 data: [ 58 ":BumbleBluetoothTestsApp", 59 "bumble_config.json", 60 ], 61 data_native_bins: [ 62 "bumble_pandora_server", 63 ], 64 65 required: ["bumble_pandora_server"], 66 67 test_suites: [ 68 "general-tests", 69 ], 70} 71 72// Runs the Bumble Bluetooth tests on a USB Bluetooth dongle. 73java_test_host { 74 name: "BumbleBluetoothTestsPhy", 75 76 test_config: "AndroidPhyTest.xml", 77 78 libs: [ 79 "tradefed", 80 ], 81 82 data: [ 83 ":BumbleBluetoothTestsApp", 84 "bumble_config.json", 85 ], 86 data_native_bins: [ 87 "bumble_pandora_server", 88 ], 89 90 required: ["bumble_pandora_server"], 91 92 test_suites: [ 93 "general-tests", 94 ], 95} 96 97python_binary_host { 98 name: "bumble_pandora_server", 99 main: "src/bumble_server.py", 100 srcs: [ 101 "src/bumble_server.py", 102 ], 103 version: { 104 py3: { 105 embedded_launcher: false, 106 }, 107 }, 108 libs: [ 109 "bumble-pandora", 110 "bumble_services_experimental-python", 111 "pandora-python", 112 "pandora_experimental-python", 113 ], 114} 115