diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-06-11 13:43:42 -0400 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2020-06-11 16:47:22 -0400 |
commit | 962d301f33607c4d68b4596f273d48798c5bf817 (patch) | |
tree | 15499a907c04c8b754b99b9cd5918e6e2b0f68ec | |
parent | e91253e831e0721816a821bc5514ad31c93c7fae (diff) | |
download | proc-macro2-aosp-emu-30-release.tar.gz |
Update Android.bp files to not use test_per_src.aosp-emu-30-release
Each rust_test module corresponds to a single test binary now.
Bug: 158500462
Test: Affected test modules build.
Change-Id: Ib6fb6c87ad3093580516724cf6f34c8d29fb220e
-rw-r--r-- | Android.bp | 40 |
1 files changed, 33 insertions, 7 deletions
@@ -19,15 +19,9 @@ rust_library_host_rlib { compile_multilib: "first", // added } -rust_test_host { +rust_defaults { name: "proc-macro2_tests", crate_name: "proc_macro2", - srcs: [ - "tests/comments.rs", - "tests/features.rs", - "tests/marker.rs", - "tests/test.rs", - ], test_suites: ["general-tests"], auto_gen_config: true, edition: "2018", @@ -47,6 +41,38 @@ rust_test_host { } rust_test_host { + name: "proc-macro2_tests_comments", + defaults: ["proc-macro2_tests"], + srcs: [ + "tests/comments.rs", + ], +} + +rust_test_host { + name: "proc-macro2_tests_features", + defaults: ["proc-macro2_tests"], + srcs: [ + "tests/features.rs", + ], +} + +rust_test_host { + name: "proc-macro2_tests_marker", + defaults: ["proc-macro2_tests"], + srcs: [ + "tests/marker.rs", + ], +} + +rust_test_host { + name: "proc-macro2_tests_test", + defaults: ["proc-macro2_tests"], + srcs: [ + "tests/test.rs", + ], +} + +rust_test_host { name: "proc-macro2_tests_proc_macro2", crate_name: "proc_macro2", srcs: ["src/lib.rs"], |