diff options
author | Chih-hung Hsieh <chh@google.com> | 2019-12-04 09:40:28 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-12-04 09:40:28 -0800 |
commit | 7636bbbbe67f23ac268e402c2adb6d4d3ca9531d (patch) | |
tree | c522aecaa562186be0acbc65da2acb2eb932e3ec | |
parent | 6767cb6c7411395ce736b966f23d4e24a230b779 (diff) | |
parent | 9d7cf926efeecd1ab96863471428d0373133bf49 (diff) | |
download | platform_external_rust_crates_unicode-xid-7636bbbbe67f23ac268e402c2adb6d4d3ca9531d.tar.gz platform_external_rust_crates_unicode-xid-7636bbbbe67f23ac268e402c2adb6d4d3ca9531d.tar.bz2 platform_external_rust_crates_unicode-xid-7636bbbbe67f23ac268e402c2adb6d4d3ca9531d.zip |
Merge "Add auto_gen_config and TEST_MAPPING."
am: 9d7cf926ef
Change-Id: I9ef7cd761f65c3ce74194df37262a054f22f3454
-rw-r--r-- | Android.bp | 28 | ||||
-rw-r--r-- | TEST_MAPPING | 11 |
2 files changed, 35 insertions, 4 deletions
@@ -1,4 +1,5 @@ -// This file is generated by cargo2android.py. +// This file is generated by cargo2android.py, edited with on device tests. +// Limitation: on device tests must be statically linked. rust_library_rlib { name: "libunicode_xid", @@ -12,11 +13,30 @@ rust_library_rlib { } rust_test { - name: "unicode-xid_test_src_lib", - host_supported: true, + name: "unicode-xid_device_tests_unicode_xid", + crate_name: "unicode_xid", + srcs: ["src/lib.rs"], + // relative_install_path not used for device test + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2015", + features: [ + "default", + ], + rlibs: [ + "libstd.static", + "libtest.static", + "libterm.static", + ], +} + +rust_test_host { + name: "unicode-xid_host_tests_unicode_xid", crate_name: "unicode_xid", srcs: ["src/lib.rs"], - relative_install_path: "rust/unicode-xid", + relative_install_path: "unicode-xid_tests", + test_suites: ["general-tests"], + auto_gen_config: true, edition: "2015", features: [ "default", diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..cbf5b0d --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,11 @@ +{ + "presubmit": [ + { + "name": "unicode-xid_device_tests_unicode_xid" + }, + { + "name": "unicode-xid_host_tests_unicode_xid", + "host": true + } + ] +} |