diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-07-21 20:54:05 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-21 20:54:05 +0000 |
commit | de7e3eb603502fbfe7a5d05fa9da503fcdf4db2a (patch) | |
tree | 2efd551d11aec2a5673d4af57c2db5bea082dc52 | |
parent | e039ab0b20dd23c0748be671b0db52f3ee736357 (diff) | |
parent | 3bfefd5d00a8e720473bba260eb81a67c1d89233 (diff) | |
download | unicode-width-de7e3eb603502fbfe7a5d05fa9da503fcdf4db2a.tar.gz |
Add rust_test and update TEST_MAPPING am: ad5b93b26c am: 71c283f243 am: 3bfefd5d00
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-width/+/1365107
Change-Id: I56d929b7ddd0487e6e19b8c6910db0ceefa4ca80
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | TEST_MAPPING | 12 |
2 files changed, 38 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --dependencies --device. +// This file is generated by cargo2android.py --run --dependencies --device --tests. rust_library { name: "libunicode_width", @@ -11,3 +11,28 @@ rust_library { "default", ], } + +rust_defaults { + name: "unicode-width_defaults", + crate_name: "unicode_width", + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + ], +} + +rust_test_host { + name: "unicode-width_host_test_src_lib", + defaults: ["unicode-width_defaults"], + // has rustc warnings + srcs: ["src/lib.rs"], +} + +rust_test { + name: "unicode-width_device_test_src_lib", + defaults: ["unicode-width_defaults"], + // has rustc warnings + srcs: ["src/lib.rs"], +} diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..df5b82f --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,12 @@ +// Generated by cargo2android.py for tests in Android.bp +{ + "presubmit": [ + { + "name": "unicode-width_host_test_src_lib", + "host": true + }, + { + "name": "unicode-width_device_test_src_lib" + } + ] +} |