diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:49:30 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-04-30 21:49:30 +0000 |
commit | 3099a42a9f898c14aeb982749ff64fa08082ef88 (patch) | |
tree | 4e5cabe2df948b601aa56a1afd8742449b098ab4 | |
parent | 129a25ea4ab73730d6aa31af9a93746db6395eb7 (diff) | |
parent | f9e1a9d87bb29d96e6e12fc24718d9d128ef789e (diff) | |
download | parking_lot-build-tools-release.tar.gz |
Snap for 11784721 from f9e1a9d87bb29d96e6e12fc24718d9d128ef789e to build-tools-releasebuild-tools-release
Change-Id: I7130d1544834467100e31e1ce050ee86a977beb5
-rw-r--r-- | Android.bp | 49 | ||||
-rw-r--r-- | cargo_embargo.json | 3 |
2 files changed, 50 insertions, 2 deletions
@@ -1,5 +1,7 @@ // This file is generated by cargo_embargo. -// Do not modify this file as changes will be overridden on upgrade. +// Do not modify this file after the first "rust_*" or "genrule" module +// because the changes will be overridden on upgrade. +// Content before the first "rust_*" or "genrule" module is preserved. package { default_applicable_licenses: ["external_rust_crates_parking_lot_license"], @@ -59,3 +61,48 @@ rust_library { vendor_available: true, min_sdk_version: "29", } + +rust_test { + name: "parking_lot_test_src_lib", + host_supported: true, + crate_name: "parking_lot", + cargo_env_compat: true, + cargo_pkg_version: "0.12.1", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2018", + features: ["default"], + rustlibs: [ + "libbincode", + "liblock_api", + "libparking_lot_core", + "librand", + ], +} + +rust_test { + name: "parking_lot_test_tests_issue_203", + host_supported: true, + crate_name: "issue_203", + cargo_env_compat: true, + cargo_pkg_version: "0.12.1", + srcs: ["tests/issue_203.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2018", + features: ["default"], + rustlibs: [ + "libbincode", + "liblock_api", + "libparking_lot", + "libparking_lot_core", + "librand", + ], +} diff --git a/cargo_embargo.json b/cargo_embargo.json index 85d370f..c9aea70 100644 --- a/cargo_embargo.json +++ b/cargo_embargo.json @@ -5,5 +5,6 @@ "com.android.virt" ], "min_sdk_version": "29", - "run_cargo": false + "run_cargo": false, + "tests": true } |