aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-12-15 15:28:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-12-15 15:28:00 +0000
commitc5722320e44eca3e35e2d9183ec56c2d6275a7af (patch)
tree00f6e9d07b020c077f6647cf415c577b69a7eb84
parenta7e6e25174794fb4abf231c22386f1e0e361e98b (diff)
parenta36bf387855e3e5bbbb7e1a61b190dcf53dbc4f0 (diff)
downloadshared_child-android-t-preview-1.tar.gz
-rw-r--r--Android.bp28
-rw-r--r--TEST_MAPPING10
2 files changed, 19 insertions, 19 deletions
diff --git a/Android.bp b/Android.bp
index b6d9bf8..02272a3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -22,6 +22,8 @@ rust_library {
name: "libshared_child",
host_supported: true,
crate_name: "shared_child",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.3.5",
srcs: ["src/lib.rs"],
edition: "2018",
rustlibs: [
@@ -34,30 +36,20 @@ rust_library {
],
}
-rust_defaults {
- name: "shared_child_defaults",
+rust_test {
+ name: "shared_child_test_src_lib",
+ host_supported: true,
crate_name: "shared_child",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.3.5",
srcs: ["src/lib.rs"],
test_suites: ["general-tests"],
auto_gen_config: true,
+ test_options: {
+ unit_test: true,
+ },
edition: "2018",
rustlibs: [
"liblibc",
],
}
-
-rust_test_host {
- name: "shared_child_host_test_src_lib",
- defaults: ["shared_child_defaults"],
- test_options: {
- unit_test: true,
- },
-}
-
-rust_test {
- name: "shared_child_device_test_src_lib",
- defaults: ["shared_child_defaults"],
-}
-
-// dependent_library ["feature_list"]
-// libc-0.2.94 "default,std"
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 94d2224..078d2ff 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -2,7 +2,15 @@
{
"presubmit": [
{
- "name": "shared_child_device_test_src_lib"
+ "name": "shared_child_test_src_lib"
+ },
+ {
+ "name": "virtualizationservice_device_test"
+ }
+ ],
+ "presubmit-rust": [
+ {
+ "name": "shared_child_test_src_lib"
},
{
"name": "virtualizationservice_device_test"