diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 02:06:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 02:06:47 +0000 |
commit | 2073e7ea8cf3d30386adbe671e0776c5a7ac0211 (patch) | |
tree | fda1c50f59d696ff26bf23591e8a56d58f55aba2 | |
parent | a5a8d3caf4c64330cb36e0cfa95e3f144a9639aa (diff) | |
parent | b345902525130ad6ebbe052cae74cc673a5df93c (diff) | |
download | bencher-android13-release.tar.gz |
Snap for 8006021 from b345902525130ad6ebbe052cae74cc673a5df93c to tm-releaseandroid-vts-13.0_r8android-vts-13.0_r7android-vts-13.0_r6android-vts-13.0_r5android-vts-13.0_r4android-vts-13.0_r3android-vts-13.0_r2android-vts-13.0_r1android-security-13.0.0_r9android-security-13.0.0_r8android-security-13.0.0_r7android-security-13.0.0_r6android-security-13.0.0_r5android-security-13.0.0_r4android-security-13.0.0_r3android-security-13.0.0_r2android-security-13.0.0_r17android-security-13.0.0_r16android-security-13.0.0_r15android-security-13.0.0_r14android-security-13.0.0_r13android-security-13.0.0_r12android-security-13.0.0_r11android-security-13.0.0_r10android-security-13.0.0_r1android-platform-13.0.0_r9android-platform-13.0.0_r8android-platform-13.0.0_r7android-platform-13.0.0_r6android-platform-13.0.0_r5android-platform-13.0.0_r4android-platform-13.0.0_r3android-platform-13.0.0_r2android-platform-13.0.0_r19android-platform-13.0.0_r18android-platform-13.0.0_r17android-platform-13.0.0_r16android-platform-13.0.0_r15android-platform-13.0.0_r14android-platform-13.0.0_r13android-platform-13.0.0_r12android-platform-13.0.0_r11android-platform-13.0.0_r10android-platform-13.0.0_r1android-cts-13.0_r8android-cts-13.0_r7android-cts-13.0_r6android-cts-13.0_r5android-cts-13.0_r4android-cts-13.0_r3android-cts-13.0_r2android-cts-13.0_r1android-13.0.0_r8android-13.0.0_r7android-13.0.0_r6android-13.0.0_r5android-13.0.0_r4android-13.0.0_r31android-13.0.0_r3android-13.0.0_r2android-13.0.0_r12android-13.0.0_r1android13-tests-releaseandroid13-security-releaseandroid13-s3-releaseandroid13-s2-releaseandroid13-s1-releaseandroid13-releaseandroid13-platform-releaseandroid13-gsi
Change-Id: Ib4ec5bf1ef5c4b80a4e1ffa6d277761a4f04238c
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | TEST_MAPPING | 18 | ||||
-rw-r--r-- | cargo2android.json | 5 |
3 files changed, 29 insertions, 21 deletions
@@ -1,4 +1,5 @@ -// This file is generated by cargo2android.py --run --device --dependencies --tests. +// This file is generated by cargo2android.py --config cargo2android.json. +// Do not modify this file as changes will be overridden on upgrade. package { default_applicable_licenses: ["external_rust_crates_bencher_license"], @@ -36,31 +37,29 @@ license { ], } -rust_defaults { - name: "bencher_defaults", - crate_name: "bencher", +rust_test { + name: "bencher_test_lib", // has rustc warnings + host_supported: true, + crate_name: "bencher", + cargo_env_compat: true, + cargo_pkg_version: "0.1.5", srcs: ["lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, + test_options: { + unit_test: true, + }, edition: "2015", } -rust_test_host { - name: "bencher_host_test_lib", - defaults: ["bencher_defaults"], -} - -rust_test { - name: "bencher_device_test_lib", - defaults: ["bencher_defaults"], -} - rust_library { name: "libbencher", // has rustc warnings host_supported: true, crate_name: "bencher", + cargo_env_compat: true, + cargo_pkg_version: "0.1.5", srcs: ["lib.rs"], edition: "2015", } diff --git a/TEST_MAPPING b/TEST_MAPPING index 9211dc4..6ea76c5 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -1,17 +1,21 @@ // Generated by update_crate_tests.py for tests that depend on this crate. { - "presubmit": [ + "imports": [ { - "name": "bencher_device_test_lib" + "path": "external/rust/crates/crc32fast" }, { - "name": "url_device_test_src_lib" - }, + "path": "external/rust/crates/url" + } + ], + "presubmit": [ { - "name": "url_device_test_tests_data" - }, + "name": "bencher_test_lib" + } + ], + "presubmit-rust": [ { - "name": "url_device_test_tests_unit" + "name": "bencher_test_lib" } ] } 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 |