diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-07-16 16:27:48 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-07-16 16:33:32 -0700 |
commit | bf6b626f909af873c77c156dafd592512a1f18a2 (patch) | |
tree | 334aafdf0a0d32c6d4f2aa42c7cf24d9ffde5c42 | |
parent | 2712e5727d219ddccacef4e2481d310ce25c7450 (diff) | |
download | paste-impl-bf6b626f909af873c77c156dafd592512a1f18a2.tar.gz |
Test: atest -c --include-subdirs external/rust/crates
Change-Id: I7b5dace931c81514ec1f67007cddfe49e03e485f
-rw-r--r-- | Android.bp | 14 | ||||
-rw-r--r-- | TEST_MAPPING | 9 |
2 files changed, 22 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_proc_macro { name: "libpaste_impl", @@ -10,5 +10,17 @@ rust_proc_macro { ], } +rust_test_host { + name: "paste-impl_host_test_src_lib", + crate_name: "paste_impl", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + edition: "2018", + proc_macros: [ + "libproc_macro_hack", + ], +} + // dependent_library ["feature_list"] // proc-macro-hack-0.5.16 diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..c791286 --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,9 @@ +// Generated by cargo2android.py for tests in Android.bp +{ + "presubmit": [ + { + "name": "paste-impl_host_test_src_lib", + "host": true + } + ] +} |