diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-15 04:05:51 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-02-15 04:05:51 +0000 |
commit | 4b73fc76734b559075ba140f98d58a7a7a957b5b (patch) | |
tree | c76731f80d33effafa20d23f668be11b34d66da2 | |
parent | b1dd0caec5e28853cdab329308e1a330c9f9809a (diff) | |
parent | 84f74a3737bc6acce9f2c12e731ebeddd0271014 (diff) | |
download | lazycell-4b73fc76734b559075ba140f98d58a7a7a957b5b.tar.gz |
Snap for 8183730 from 84f74a3737bc6acce9f2c12e731ebeddd0271014 to udc-release
Change-Id: Idc5ccf87eab6907cbb8c5454448f9686884612c1
-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 |