aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-07-21 20:43:25 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-21 20:43:25 +0000
commitcf9eabb1bafbd95c7228384862b835a17790f46e (patch)
treee53d777a5722b1c8f2378fcf93b8efbbb739f78f
parent39f90d5c0be831302dd277e21f290b74759191d1 (diff)
parent6b6b9af4c41070a53d804bdd2f0b652e4c343dda (diff)
downloadthread_local-cf9eabb1bafbd95c7228384862b835a17790f46e.tar.gz
Add rust_test and update TEST_MAPPING am: f9dadd41ff am: 6b6b9af4c4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/thread_local/+/1365223 Change-Id: Ib15f518bdea77347d959dfdd5ae8f8ed53f9d35d
-rw-r--r--Android.bp14
-rw-r--r--TEST_MAPPING9
2 files changed, 22 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index b8fe6c6..e042ea0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --dependencies.
+// This file is generated by cargo2android.py --run --dependencies --tests.
rust_library_host {
name: "libthread_local",
@@ -10,5 +10,17 @@ rust_library_host {
],
}
+rust_test_host {
+ name: "thread_local_host_test_src_lib",
+ crate_name: "thread_local",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2015",
+ rustlibs: [
+ "liblazy_static",
+ ],
+}
+
// dependent_library ["feature_list"]
// lazy_static-1.4.0
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..ef632cf
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,9 @@
+// Generated by cargo2android.py for tests in Android.bp
+{
+ "presubmit": [
+ {
+ "name": "thread_local_host_test_src_lib",
+ "host": true
+ }
+ ]
+}