diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-07-16 16:27:45 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-07-16 16:33:29 -0700 |
commit | 25207b9171391d5b7cb8b99d186845e8aaa95a9f (patch) | |
tree | f317ddd76e7997fd97d243338b3818986c906285 | |
parent | 98db55aa020c7ff8442652aac3f114bd6a654ae6 (diff) | |
download | shlex-25207b9171391d5b7cb8b99d186845e8aaa95a9f.tar.gz |
Add rust_test and update TEST_MAPPING
Test: atest -c --include-subdirs external/rust/crates
Change-Id: I52de09f1a053b4c93436276a1df0b35baf510afe
-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 + } + ] +} |