diff options
author | Joel Galenson <jgalenson@google.com> | 2021-11-29 14:04:07 -0800 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-12-10 15:32:53 -0800 |
commit | 1fef06453ab9e361e199cd662c74de6987da6996 (patch) | |
tree | c76731f80d33effafa20d23f668be11b34d66da2 | |
parent | b51ade7241a319b7948cf38e6082cfa03c9e102b (diff) | |
download | lazycell-1fef06453ab9e361e199cd662c74de6987da6996.tar.gz |
Refresh Android.bp, cargo2android.json, TEST_MAPPING.
Test: None
Change-Id: Ib86edad67c83c58f85e48b9a03633877ab451e6a
-rw-r--r-- | Android.bp | 23 | ||||
-rw-r--r-- | TEST_MAPPING | 16 | ||||
-rw-r--r-- | cargo2android.json | 5 |
3 files changed, 25 insertions, 19 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --dependencies --device --tests. +// This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. package { @@ -37,29 +37,20 @@ license { ], } -rust_defaults { - name: "lazycell_test_defaults", - crate_name: "lazycell", +rust_test { + name: "lazycell_test_src_lib", // has rustc warnings - srcs: ["src/lib.rs"], + host_supported: true, + crate_name: "lazycell", cargo_env_compat: true, cargo_pkg_version: "1.3.0", + srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, - edition: "2015", -} - -rust_test_host { - name: "lazycell_host_test_src_lib", - defaults: ["lazycell_test_defaults"], test_options: { unit_test: true, }, -} - -rust_test { - name: "lazycell_device_test_src_lib", - defaults: ["lazycell_test_defaults"], + edition: "2015", } rust_library { diff --git a/TEST_MAPPING b/TEST_MAPPING index e548a18..ff34c26 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -1,20 +1,30 @@ // Generated by update_crate_tests.py for tests that depend on this crate. { + "imports": [ + { + "path": "external/rust/crates/libsqlite3-sys" + } + ], "presubmit": [ { "name": "keystore2_test" }, { - "name": "lazycell_device_test_src_lib" + "name": "lazycell_test_src_lib" }, { "name": "legacykeystore_test" + } + ], + "presubmit-rust": [ + { + "name": "keystore2_test" }, { - "name": "libsqlite3-sys_device_test_src_lib" + "name": "lazycell_test_src_lib" }, { - "name": "libsqlite3_bindgen_test" + "name": "legacykeystore_test" } ] } diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..d36fb44 --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,5 @@ +{ + "device": true, + "run": true, + "tests": true +}
\ No newline at end of file |