diff options
author | Chih-Hung Hsieh <chh@google.com> | 2019-10-01 13:22:15 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2019-10-29 10:43:29 -0700 |
commit | bc731e2778d4cb550b4205cd9177e220f8f115b5 (patch) | |
tree | 34af63ea025161a9504f9e4a30a4ad4b359d3aff /Android.bp | |
parent | eb69723579ae53e30436252934897305894bf765 (diff) | |
download | proc-macro2-bc731e2778d4cb550b4205cd9177e220f8f115b5.tar.gz |
Add rust_test modules.
Bug: 140938178
Test: mm in project directory or make checkbuild
Change-Id: I9f33a7509d343b312b0ac368b560be2c598e9a80
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -19,3 +19,52 @@ rust_library_rlib { "libunicode_xid", ], } + +rust_test { + name: "proc-macro2_test_src_lib", + host_supported: true, + crate_name: "proc_macro2", + srcs: ["src/lib.rs"], + relative_install_path: "rust/proc-macro2", + edition: "2018", + features: [ + "default", + "proc-macro", + ], + flags: [ + "--cfg proc_macro_span", + "--cfg use_proc_macro", + "--cfg wrap_proc_macro", + ], + rlibs: [ + "libquote", + "libunicode_xid", + ], +} + +rust_test { + name: "proc-macro2_tests_test", + host_supported: true, + crate_name: "proc_macro2", + srcs: [ + "tests/features.rs", + "tests/marker.rs", + "tests/test.rs", + ], + relative_install_path: "rust/proc-macro2", + edition: "2018", + features: [ + "default", + "proc-macro", + ], + flags: [ + "--cfg proc_macro_span", + "--cfg use_proc_macro", + "--cfg wrap_proc_macro", + ], + rlibs: [ + "libproc_macro2", + "libquote", + "libunicode_xid", + ], +} |