| package { |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| default_team: "trendy_team_system_performance", |
| } |
| |
| filegroup { |
| name: "uprobestats-test-sources", |
| srcs: ["*.java"], |
| exclude_srcs: select(release_flag("RELEASE_UPROBESTATS_RUST"), { |
| true: [], |
| false: [ |
| "SmokeTestRustOnly.java", |
| ], |
| }), |
| } |
| |
| java_test_host { |
| name: "uprobestats-test", |
| srcs: [":uprobestats-test-sources"], |
| java_resources: ["test/*.textproto"], |
| libs: [ |
| "compatibility-host-util", |
| "core_cts_test_resources", |
| "cts-tradefed", |
| "host-libprotobuf-java-full", |
| "tradefed", |
| "truth", |
| ], |
| static_libs: [ |
| "android.hardware.usb.flags-aconfig-java-host", |
| "android.os.flags-aconfig-java-host", |
| "cts-statsd-atom-host-test-utils", |
| "flag-junit-host", |
| "perfetto_config-full", |
| "art_flags_uprobestats_java_lib", |
| "uprobestats_flags_java_lib", |
| "uprobestats_mainline_flags_java_lib", |
| "uprobestats-protos", |
| ], |
| proto: { |
| type: "full", |
| }, |
| test_suites: [ |
| "general-tests", |
| "mts-uprobestats", |
| ], |
| device_common_data: [ |
| ":DisruptiveTestApp", |
| ":BitmapTestApp", |
| ], |
| } |
| |
| python_binary_host { |
| name: "hello_uprobestats", |
| main: "hello_uprobestats.py", |
| srcs: [ |
| "hello_uprobestats.py", |
| ":uprobestats-proto-files", |
| ], |
| data: ["test/*.textproto"], |
| libs: ["libprotobuf-python"], |
| proto: { |
| canonical_path_from_root: false, |
| }, |
| } |