diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-07-21 20:43:03 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-21 20:43:03 +0000 |
commit | 9cd6feda6d21307339762e9d3b7064fd10914450 (patch) | |
tree | f317ddd76e7997fd97d243338b3818986c906285 | |
parent | 595abdc930477d0458b9399f5c38ed8e9d06ae3a (diff) | |
parent | e47269984a97ceb681b104fccf5cecb3f9e19c58 (diff) | |
download | shlex-9cd6feda6d21307339762e9d3b7064fd10914450.tar.gz |
Add rust_test and update TEST_MAPPING am: 25207b9171 am: e47269984a
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/shlex/+/1365397
Change-Id: If3e53e1a8d0e3892baae6647dec6e3ba13a4798c
-rw-r--r-- | Android.bp | 11 | ||||
-rw-r--r-- | TEST_MAPPING | 9 |
2 files changed, 19 insertions, 1 deletions
@@ -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: "libshlex", @@ -6,3 +6,12 @@ rust_library_host { srcs: ["src/lib.rs"], edition: "2015", } + +rust_test_host { + name: "shlex_host_test_src_lib", + crate_name: "shlex", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", +} diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..8f317d7 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,9 @@ +// Generated by cargo2android.py for tests in Android.bp +{ + "presubmit": [ + { + "name": "shlex_host_test_src_lib", + "host": true + } + ] +} |