diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-10-29 09:03:40 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-10-29 09:03:40 +0000 |
commit | e71c74c998073b65415e138331864c570603d4d1 (patch) | |
tree | d8dd94da14c8bbf0372bada09af964e336acb0a4 | |
parent | 840ccc81bdb0abfcb5edc8097e88dd37ea751439 (diff) | |
parent | b772482d75395488950c84acdcc2a73866829825 (diff) | |
download | grpcio-e71c74c998073b65415e138331864c570603d4d1.tar.gz |
Enable tests am: 814e79a85b am: f794b12db2 am: 9214371806 am: 0194de73cf am: b772482d75
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/grpcio/+/1860935
Change-Id: Ib707e6b3401adc95e844c2b62382efe715568213
-rw-r--r-- | Android.bp | 38 | ||||
-rw-r--r-- | TEST_MAPPING | 8 |
2 files changed, 45 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --device --features=protobuf,protobuf-codec. +// This file is generated by cargo2android.py --run --device --features=protobuf,protobuf-codec --tests. // Do not modify this file as changes will be overridden on upgrade. package { @@ -18,6 +18,42 @@ license { ], } +rust_defaults { + name: "grpcio_test_defaults", + crate_name: "grpcio", + srcs: ["src/lib.rs"], + cargo_env_compat: true, + cargo_pkg_version: "0.9.1", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2018", + features: [ + "protobuf", + "protobuf-codec", + ], + rustlibs: [ + "libfutures", + "libgrpcio_sys", + "liblibc", + "liblog_rust", + "libparking_lot", + "libprotobuf", + ], +} + +rust_test_host { + name: "grpcio_host_test_src_lib", + defaults: ["grpcio_test_defaults"], + test_options: { + unit_test: true, + }, +} + +rust_test { + name: "grpcio_device_test_src_lib", + defaults: ["grpcio_test_defaults"], +} + rust_library { name: "libgrpcio", host_supported: true, diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..2784e7f --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,8 @@ +// Generated by update_crate_tests.py for tests that depend on this crate. +{ + "presubmit": [ + { + "name": "grpcio_device_test_src_lib" + } + ] +} |